Hello
Wondered if there is a way to provide table name for linq query at runtime. I am interested in simple quert like "select * from @someTableName".
I've searched a lot for the answer but couldnt find any help on the net. There was a post on stackOverflow --> link
Dave Russel suggested to do:
"var p = ctx.GetType.GetProperty(oName).getValue(ctx,null)"
But apart from getting property with Reflection I dunno how to work out the rest in order to be able execute querries against that property like:
from x in p select x;
I'd be greateful if u could point me towards some solution how to solve this issue.