mardi 24 novembre 2015

Get Entity By TYpe in Entity Framework

I Have a Type witch that contain a Entity Table .

I want Get All Record By Type .

My method like this :

public void read(Type tablename)
{

// read data in context by type
}

I use this code but dont work :

var test=  new CmsContext().Set(_tableName);





Aucun commentaire:

Enregistrer un commentaire