How do I get a list of column name using Linq to Sql
How can i dynamically get a list of Colum开发者_StackOverflow社区n names based on my query model below using Linq to SQL. Example of query below.
public void GetColumnName()
{
var db = from ci in Db.CatalogItems
join i in Items
on ci.ItemId equals i.ItemId
select i;
}
I'm new to the concept of Reflection. How do I go about doing that with the model query above?
use reflection on db? (get the fields)
from rec in Db.syscolumns ....
精彩评论