Hi all
i want to pass tablename as dynamically to get column names list in mvc5
i have tried like this
C#
public List<string> GetColumnNames(string tablename)
{
using (var Context = new MCPEntities())
{
var names = typeof(AdministratorInformation).GetProperties().Select(property => property.Name).ToArray();
return names.ToList();
}
}
Vivek KumarRank #272 · 9.3K pointsPosted Jun 5, 2017, 12:01 PM EDT