ModelGenerationExtensionContext Class

Provides file and project information to Visual Studio extensions that extend the .edmx file generation process of the Entity Data Model Wizard.

Namespace:  Microsoft.Data.Entity.Design.Extensibility
Assembly:  Microsoft.Data.Entity.Design.Extensibility (in Microsoft.Data.Entity.Design.Extensibility.dll)

public abstract class ModelGenerationExtensionContext : ExtensionContext

The ModelGenerationExtensionContext type exposes the following members.

Protected methodModelGenerationExtensionContextInstantiates a new instance of the ModelGenerationExtensionContext class.

Public propertyCurrentDocumentRepresents the .edmx document to be modified.
Public propertyEntityFrameworkVersionThe targeted version of the Entity Framework. (Inherited from ExtensionContext.)
Public propertyGeneratedDocumentRepresents the original .edmx file generated by the Entity Data Model Wizard.
Public propertyProjectThe current Visual Studio project. (Inherited from ExtensionContext.)
Public propertyWizardKindThe wizard that initiated the .edmx file generation or update process.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

In a Visual Studio extension, the ModelGenerationExtensionContext class is used when you want to extend the .edmx file generation process of the Entity Data Model Wizard. An instance of the ModelGenerationExtensionContext class is passed to the IModelGenerationExtension.OnAfterModelGenerated method, which defines custom .edmx file generation functionality of the Entity Data Model Wizard.

For more information about extending the functionality of the ADO.NET Entity Data Model Tools, see Extending the Entity Data Model Tools and ADO.NET Entity Data Model Designer Extension Starter Kit.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.