EF 4.x DbContext Generator for C#FreeA project item to generate a strongly-typed DbContext class and persistence ignorant entity classes. Use this template when working with an EF 4.x release.Description
Reviews (9)
Sign in to Write a Review
Sort By:
It works, creating a DbContext based object context and POCOs from the object model. The namespace the POCOs are generated seems to be wrong if you change it from the default in the object model properties. These templates are a great starting point for customizing the code. Thanks! The DbContext code generator is a nice improvement for EF. I would like to give this a 5 rating but the template does not pick up the documentation summaries from the model when building the POCO classes. That is something that I feel should be addressed in the next release. @Mr. Javaman II, there are some other templates that you do not get if you install or update EF using NuGet as opposed to using the standalone installer. I just ran into this problem when updating to EF 4.3.1, so found this page. It looks great but I don't understand its function. I've already used the EF templates that come standard being able to map a database schema to class structures no problem. Indispensable if you're working with an existing database for your Entity Framework project. For testing purposes, it would be nice if the T4 generated an interface class to go along with the DbContext. |