The DbContext Generator can be used to generate a strongly-typed DbContext class and persistence ignorant entity classes from an Entity Framework model created using the EF Designer. Once installed, you can right-click on the EF Designer surface and select "Add Code Generation Item..." from the menu. If you are using the EF Designer in Visual Studio 2012 this template is already used by default. The EF MSDN site has walkthroughs for using this template for models targeting anexisting database or anew database. Use this template when working with an EF 5.x release. Need help? |