ModelGenerationExtensionContext Class
Provides file and project information to Visual Studio extensions that extend the .edmx file generation process of the Entity Data Model Wizard.
Microsoft.Data.Entity.Design.Extensibility.ExtensionContext
Microsoft.Data.Entity.Design.Extensibility.ModelGenerationExtensionContext
Microsoft.Data.Entity.Design.Extensibility.UpdateModelExtensionContext
Namespace: Microsoft.Data.Entity.Design.Extensibility
Assembly: Microsoft.Data.Entity.Design.Extensibility (in Microsoft.Data.Entity.Design.Extensibility.dll)
The ModelGenerationExtensionContext type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ModelGenerationExtensionContext | Instantiates a new instance of the ModelGenerationExtensionContext class. |
| Name | Description | |
|---|---|---|
![]() | CurrentDocument | Represents the .edmx document to be modified. |
![]() | EntityFrameworkVersion | The targeted version of the Entity Framework. (Inherited from ExtensionContext.) |
![]() | GeneratedDocument | Represents the original .edmx file generated by the Entity Data Model Wizard. |
![]() | Project | The current Visual Studio project. (Inherited from ExtensionContext.) |
![]() | WizardKind | The wizard that initiated the .edmx file generation or update process. |
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.
