开发者

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 ....
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜