Is ObjectContext deprecated in .NET 4.5?

后端 未结 3 2069
北海茫月
北海茫月 2021-02-05 14:36

I\'ve been using ObjectContexts for quite a long time now. Now that I\'ve installed VS 2012, for my surprise the Entity Data Model does not have an option for a Cod

3条回答
  •  日久生厌
    2021-02-05 14:49

    Microsoft recommends the EF5.x DbContext Generator for new projects. It is the default template in VS2012. PreVS2012 users can find it using the ExtensionManager (search for EF5.x) or download it here.

    You can of course still generate EntityObjects and ObjectContext by using the EF4.x EntityObject Generatortemplate which can be found here.

    How to set things up is described here.

提交回复
热议问题