Why does Entity Framework automatically use the ObjectContext instead of the DbContext when mapping database tables using ADO.NET Entity datamodel

前端 未结 2 1947
后悔当初
后悔当初 2021-02-02 17:19

I am following the database approach first; I have created the tables in my SQL Server 2008 database, then I map those tables to Entity Framework classes using an ADO.NET Entity

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-02 17:30

    Since VS2012 the default code generation changed from ObjectContext to DbContext.

提交回复
热议问题