Vote count:
0
I have web-application in MVC with entity-framework..
I have following code:
MotionSoftEntities msEntity = new MotionSoftEntities();
var resultData = msEntity.REP_MM_DEMOGRAPHIC.AsEnumerable();
Above code gets data from REP_MM_DEMOGRAPHIC
Entity dataTable.
now the problem is that, i want to get data from table which is not known at compile time. is it possible something like follows :
private void GetData(string tableName)
{
MotionSoftEntities msEntity = new MotionSoftEntities();
var resultData = msEntity.tableName.AsEnumerable();
}
the table name will know at runtime.. how can i achieve it??
Thanks
asked 35 secs ago
Issue related to getting data from UnKnown EntityType
Aucun commentaire:
Enregistrer un commentaire