Does the Entity Framework have an equivalent of DataContext.GetTable from Linq2Sql (ObjectContext.CreateQuery?)

前端 未结 3 547
春和景丽
春和景丽 2021-01-05 00:25

I\'m looking for an equivalent of the DataContext.GetTable in Entity Framework. I\'ve found the ObjectContext.CreateQuery m

3条回答
  •  遥遥无期
    2021-01-05 01:06

    public IQueryable GetTable(T entity) where T : class
    {
        return context.CreateObjectSet();
    }
    

提交回复
热议问题