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

前端 未结 3 551
春和景丽
春和景丽 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:11

    I hope I'm not missing the point, but wouldn't it be:

    ObjectContext.TableName
    

    Where TableName is the EntitySet of the type you want to work with.

提交回复
热议问题