I wish to get a list of columns names, types and whether the column is a PK of a table object in Entity Framework.
How do I do this in C# (4.0) (ideally generically)
typeof(TableName).GetProperties().Select(x => x.Name).ToList();