Linq to Sql - table name as string.

Mar 2, 2011 at 7:41 AM

Is it possible to generate Linq statements where the table name is a string aswell. Your sample passes binds to db.products "hard coded"

Apr 28, 2011 at 1:50 AM

No. It is a "feature" of Linq. It can't operate tables without mapping to some classes.

But If you have mapping to classes, you can get tables via reflection easily.