Greg
unread,Nov 24, 2009, 6:10:09 AM11/24/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I have another question (a question a day keep the dumbass at bay!).
Suppose I have a string variable called TableName.
And I have three tables called Tom, Dick, Harry
I determine through code that
Now the table name can match the name of some tables I have in my
database.
How could I query that table with LINQ using the variable name?
So instead of this . . .
var query = from s in db.Tom
select s;
it would be . . .
var query = from s in db.TableName
select s;
I have tried to google this, but I am probably phrasing the question
wrong because I don't seem to come up relevant pages.
Thanks again.
Greg