Starting with Entity Framework 4 (since Visual Studio 2010), the generated code is output from T4 (Text Template Transformation Toolkit) files that you can edit to have full control over what is generated. See Oleg Sych's blog , which is my information on T4. Code generation is not a problem, and T4 offers so many perspectives that I can no longer live.
I am currently working on a project in which we use Entity Framework 4 for the data access layer, and Scrum as a flexible project management method. From one sprint to another, several tables are added, new modified new requirements are added. When you run once every potential EF problem (for example, knowing that the default values ββfrom the database are not saved by default in the .edmx file or changing a column with a null value to a non-empty value and updating the constructor does not change the displayed property of the state), good to go.
Edit: to answer your question, this is EF 4, whose code generation is based on T4, not T4, which supports EF. In EF 3.5 (or, if you want, EF 1.0) it is theoretically possible to use T4 by writing them from scratch, looking at the EDMX file in the T4 code and generating your entities. It would be quite a bit of work, considering that all this has already been done by EF 4. In addition, Entity Framework 3.5 supports only one type of authority, while EF 4 as built-in or downloadable templates for POCO objects (which do not know anything about persistence), Self -Tracking Entities ...
Given the Entity Framework itself, I think that its first release lacked many features, and while they were useful, it was quite difficult to use. EF4 is greatly improved. It still lacks some basic functions (for example, support for enumerations), but now it has become an affordable level of access to data for me.
Julien Lebosquain
source share