i want to display column names by passing table name in mvc using entity frame work
please give me solution regarding this .
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Seshu BPosted Jun 2, 2017, 8:20 AM
Dharmraj ThakurPosted Jun 2, 2017, 6:06 AM
Select().Where(property => property.Name = "table1")
Seshu BPosted Jun 2, 2017, 5:24 AM
{
using (var Context = new MCPEntities())
{
var names = typeof(tablename).GetProperties().Select(property => property.Name).ToArray();
return names.ToList();
}
}
Dharmraj ThakurPosted Jun 2, 2017, 4:57 AM