How can I use LINQ to SQL to provide a table name at runtime?

dynamic-linq linq-to-sql

Question

I have to use LINQ to SQL and along with it a pure SQL classic query. And this SQL query has the Table from where my data will be generated, but I will not know this Table previously. It will be known in compile time.

So how can I make LINQ understand from what Table I want to make the query?

1
1
5/11/2009 3:23:59 PM

Popular Answer

Good discussion here: Dynamic SQL table name

1
5/11/2009 4:12:29 PM


Related Questions





Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow