tags:

views:

20

answers:

3

How can i dynamically get a list of Column 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;
}
A: 

use reflection on db? (get the fields)

Nestor
A: 
from rec in Db.syscolumns ....
David B
A: 

I'm new to the concept of Reflection. How do I go about doing that with the model query above?

Dan