This is my code
public List<string> GetColumnNames(string tablename)
{
using (var Context = new MCPEntities())
{
PropertyInfo info = Context.GetType().GetProperty(tableName);
IQueryable table = info.GetValue(Context, null) as IQueryable;
return table;
}
}