Sdílet prostřednictvím


Microsoft.Data.Entity.Design.Extensibility Namespace

The Microsoft.Data.Entity.Design.Extensibility namespace contains classes that allow you to extend the functionality of the ADO.NET Entity Data Model Tools.

Classes in the Microsoft.Data.Entity.Design.Extensibility namespace allow you to extend and customize the functionality of the Entity Data Model Designer, the Entity Data Model Wizard, and the Update Wizard. Specifically, the IModelGenerationExtension interface can be used to customize the generation and update processes of .edmx files. The IEntityDesignerExtendedProperty interface can be used to add properties to objects that are defined in .edmx files. The IModelConversionExtension and IModelTransformExtension interfaces can be used to customize the loading and saving of files, including custom file formats.

NoteNote:

Classes in the Microsoft.Data.Entity.Design.Extensibility namespace cannot be used to customize the generation of object-layer code or the generation of data description language (DDL). For more information, see How to: Customize Object-Layer Code Generation and How to: Customize Database Generation.

Classes

  Class Description
Public class EntityDesignerChangeScope Creates a unit of work that can be undone or redone with the Undo and Redo buttons in Visual Studio.
Public class EntityDesignerExtendedPropertyAttribute Specifies objects in the Entity Data Model Designer or the Model Browser that, when selected by a user, cause the CreateProperty method of the annotated class to be called.
Public class ExtensionContext A base class for the ModelGenerationExtensionContext, PropertyExtensionContext, ModelTransformExtensionContext and ModelConversionExtensionContext classes.
Public class ExtensionError Encapsulates custom error information for Visual Studio extensions that extend the functionality of the Entity Data Model Designer.
Public class ModelConversionExtensionContext Provides file and project information to Visual Studio extensions that enable the loading and saving of custom file formats.
Public class ModelFileExtensionAttribute Specifies a custom file extension that can be loaded or saved by the Entity Data Model Designer.
Public class ModelGenerationExtensionContext Provides file and project information to Visual Studio extensions that extend the .edmx file generation process of the Entity Data Model Wizard.
Public class ModelTransformExtensionContext Provides file and project information to Visual Studio extensions that extend the file loading and saving of .edmx files by the Entity Data Model Designer.
Public class PropertyExtensionContext Provides file and project information to Visual Studio extensions that add custom properties to objects visible in the Entity Data Model Designer or the Model Browser.
Public class UpdateModelExtensionContext Provides file and project information to Visual Studio extensions that extend the .edmx file update process of the Update Model Wizard.

Interfaces

  Interface Description
Public interface IEntityDesignerConversionData Microsoft internal use only.
Public interface IEntityDesignerExtendedProperty Exposes methods for adding properties to objects that are visible to a user in the Entity Data Model Designer or the Model Browser.
Public interface IEntityDesignerPropertyData Microsoft internal use only.
Public interface IModelConversionExtension Exposes methods for converting a custom file format to and from the .edmx file format that is readable by the Entity Data Model Designer.
Public interface IModelGenerationExtension Exposes methods for customizing the generation of .edmx files.
Public interface IModelTransformExtension Exposes methods for extending the loading and saving processes of .edmx files.

Enumerations

  Enumeration Description
Public enumeration EntityDesignerSelection An enumeration used to specify which object types that, when selected in the Entity Data Model Designer or the Model Browser, cause the CreateProperty method of the annotated class to be called.
Public enumeration ExtensionErrorSeverity An enumeration that describes the severity of an ExtensionError.
Public enumeration WizardKind An enumeration that provides information about which wizard started an .edmx file generation or update process.

See Also

Reference

Other Resources

Visual Studio Extensibility Developer Center

.edmx File Overview (Entity Framework)