DbContext code generation stability does not work with Entity 5 and VS 2012 infrastructure

I have a WPF project in the .NET framework 4.5 (VS 2012) and have uploaded Entity Framework 5 using the NuGet package for the solution. All documentation regarding the Entity Framework 5 states that the Code Generation < strategy will be No (i.e. DbContext code generation). But in my case, when adding a new Entity ADO.Net data model, the Code Generation Strategy By default (i.e. the EF Designer generates a context class derived from ObjectContext and derived object classes from EntityObject.) But I want to follow the DbConext code generation mechanism. I follow the basic approach. Am I missing any settings? Or is it that I need to install the T4 template separately?

Thanks.

+6
source share
2 answers

I uninstalled VS 2012 RC and installed RT 2012 RTM, and now everything is working fine.

+3
source

In Extension Manager → Download EF 5.x DbContext Generator. Open Model (edmx) in the standard editor, right-click on free space and create objects using the EF 5x DbContext Generator!

0
source

Source: https://habr.com/ru/post/924435/


All Articles