Partial classes created when running DbMetal.exe

20 views
Skip to first unread message

MavhirNetivim

unread,
Jan 10, 2011, 8:49:27 AM1/10/11
to DbLinq
Hello,

I worked with Dblinq on a few projects, with Oracle DB. For some
reason sometimes the classes created by DbMetal contain the tables of
Database schema and sometimes, they just contain the DB itself without
any tables.

When it does contain the table, I can run a query using the table
properties -
var row = from p in _db.TABLENAME where p.FIELDNAME== VALUE select p;
When it doesn't contain the table, I have to write a SQL query and
execute it -
IEnumerable<TYPE> results = _db.ExecuteQuery<TYPE>(query);

How can I make sure that the table would always be available?

Thank you
Reply all
Reply to author
Forward
0 new messages