How do i get an instance of the entity type based on MetaTable
Posted
by dimak
on Stack Overflow
See other posts from Stack Overflow
or by dimak
Published on 2010-03-11T17:46:22Z
Indexed on
2010/03/11
17:49 UTC
Read the original article
Hit count: 155
dynamic-data
|c#
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
© Stack Overflow or respective owner