views:

41

answers:

0

is there a way to go from a MetaTable to an instance of an entity type so it can be queried with LINQ? What I want to do is this:

MetaTable table = GridDataSource.GetTable ();
var entity = table.GetInstanceOfEntity();
var test = (from t in entity select t).ToList();

where table.GetInstanceOfEntity() is something that I'm not sure how to implement.

Thank you