mardi 19 mai 2015

retrieve an object model from a string with entity framework

I have a problem , in practice, I would like to draw the string through the table from the model , of course, the table name is given to me by a string in json .

I would make um generic method , anyone can help me ? thanks

String tbl = "tbl_customer"; //json receive
Object table;
localDBEntities db = new localDBEntities();
table = db.tbl;

the code above is a simulation of what I need , someone help me know ?





Aucun commentaire:

Enregistrer un commentaire