How can be possible to use anonymous type fields without know them ?
- by Freshblood
Hello everybody
It is really looks so cool to me how GridView's DataSource property gets anonymous type and shows results in Grid .
Simply
Grid.DataSource = from order in db.OrdersSet
select new { order.PersonSet.Name,order.PersonSet.SurName};
How this mechanism work? how can i do something like this ?