UpdateModelExtensionContext Class

Provides file and project information to Visual Studio extensions that extend the .edmx file update process of the Update Model Wizard.

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

public abstract class UpdateModelExtensionContext : ModelGenerationExtensionContext

The UpdateModelExtensionContext type exposes the following members.

Protected methodUpdateModelExtensionContextInstantiates a new instance of UpdateModelExtensionContext.

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

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 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.

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