LINQ: Get Table Column Names

.net, c#, linq, linq-to-sql

Solution

I assume you mean by using LINQ to SQL, in which case look at the DataContext.Mapping property. That's what I use.

If you don't mean that, perhaps you can elaborate on what you are trying to achieve?

Problem

Using LINQ, how can I get the column names of a table? C# 3.0, 3.5 framework

Original source