Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

  NameDescription
Protected methodModelGenerationExtensionContextInstantiates a new instance of the ModelGenerationExtensionContext class.
Top
  NameDescription
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.
Top
  NameDescription
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.)
Top

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.