This project is read-only.

Linq to Sql - table name as string.

Mar 2, 2011 at 8: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 2: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.