I want to call method with Table name like db.users.select(x=> x.FirstName)
, but i made a mistake somewhere , i write like this but this returns detail about table on one row , not return table data which i want, help please
public void LoadToGrid(string dbTableName)
{
dataGridView1.DataSource = db.GetType().GetMember(dbTableName).ToList();
}
See Question&Answers more detail:os