UpdateModelExtensionContext Class
Provides file and project information to Visual Studio extensions that extend the .edmx file update process of the Update 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 UpdateModelExtensionContext type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | UpdateModelExtensionContext | Instantiates a new instance of UpdateModelExtensionContext. |
| Name | Description | |
|---|---|---|
![]() | CurrentDocument | Represents the .edmx document to be modified. (Inherited from ModelGenerationExtensionContext.) |
![]() | EntityFrameworkVersion | The targeted version of the Entity Framework. (Inherited from ExtensionContext.) |
![]() | GeneratedDocument | Represents the original .edmx file generated by the Entity Data Model Wizard. (Inherited from ModelGenerationExtensionContext.) |
![]() | OriginalDocument | Represents the .edmx file before the Update Model Wizard has run. |
![]() | Project | The current Visual Studio project. (Inherited from ExtensionContext.) |
![]() | ProjectItem | The current Visual Studio project item. |
![]() | UpdateModelDocument | Represents the .edmx file after the Update Model Wizard has run. |
![]() | WizardKind | The wizard that initiated the .edmx file generation or update process. (Inherited from ModelGenerationExtensionContext.) |
In a Visual Studio extension, the UpdateModelExtensionContext class is used when you want to extend the .edmx file update process of the Update Model Wizard. An instance of UpdateModelExtensionContext is passed to the IModelGenerationExtension.OnAfterModelUpdated method, which defines custom functionality of the Update 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.
