Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Linq to Sql dynamic

$
0
0

I have dropdown that will have a text and a value which will be used as the tablename.

How would I do a linq to Sql

string TName = ViewBag.Name;

var get = (from  p in db.[TName]  .Where etc


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>