Do you need to dynamically construct instances of the Entity Framework-generated Model class by supplying the table name as a parameter? (Model generated in DB first approach and using EF 6.0)
// Input Param string tableName // Context always same DBContext dbContext= new DBContext(); //Need to create object query dynamically by passing //table name from front end as below IQueryable<"tableName"> query = dbContext."tableName ";
Over 100 tables must be supplied as input parameters, and each table's structure is the same.