Available Presets

For Entity Framework v4, the following presets are available. Every preset generates, except the persistence only presets, all entity classes, typed list row classes, typed view row classes and value type classes in separate files and adds proper XML comments to the generated code.

All presets generate a context class called ProjectNameDataContext, unless the setting SetContextClassNameEqualToEdmxModelContainerName is set to true, the context class is then called ProjectNameEntities.

SD.EntityFramework.v4 (EF v1 style) preset

This preset is equal to the SD.EntityFramework.v1 preset as described in the Entity Framework v1 section.

SD.EntityFramework.v4 (Proxy friendly POCO entities)

This generates classes like the POCO template shipped with vs.net 2010, except entity / valuetype classes derive from CommonEntityBase / CommonValueTypeBase. There are two VS.NET projects generated: one called RootNamespace.Model, which ** contains all the domain classes (entity classes, value type classes, typed list classes and typed view classes) and one called RootNamespace.Persistence, which contains the context class and edmx file and support classes.

To use both projects in your own solution, be sure that the RootNamespace.Persistence vs.net project references the RootNamespace.Model vs.net project.

SD.EntityFramework.v4 (DbContext API)

This preset is similar to the Proxy friendly POCO entities, however instead it generates a DbContext using context class, and plain classes for entities, no tracking whatsoever added.

SD.EntityFramework.v4 (Self-tracking POCO entities)

This generates classes like the Self-tracking entity (STE) templates shipped with vs.net 2010, except entity / value type classes derive from CommonEntityBase / CommonValueTypeBase. As with the POCO classes, there are two VS.NET projects generated: one called RootNamespace.Model, which ** contains all the domain classes (entity classes, value type classes, typed list classes and typed view classes) and one called RootNamespace.Persistence, which contains the context class and edmx file and support classes.

To use both projects in your own solution, be sure that the RootNamespace.Persistence vs.net project references the RootNamespace.Model vs.net project.

SD.EntityFramework.v4 (POCO Persistence only)

This generates one VS.NET project with only the Edmx file and the context class, equivalent to the RootNamespace.Persistence project of the SD.EntityFramework.v4 (Proxy friendly POCO entities) preset, and it's also called RootNamespace.Persistence.

Additionally it generates a Html file in the folder Model, which contains a detailed description which classes you have to implement yourself, which properties they have to have and which types these properties have to have. This preset is for users who want to write their own code but don't want to write the edmx / context class.