PropertyExtensionContext Class
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.
Microsoft.Data.Entity.Design.Extensibility.ExtensionContext
Microsoft.Data.Entity.Design.Extensibility.PropertyExtensionContext
Namespace: Microsoft.Data.Entity.Design.Extensibility
Assembly: Microsoft.Data.Entity.Design.Extensibility (in Microsoft.Data.Entity.Design.Extensibility.dll)
The PropertyExtensionContext type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | PropertyExtensionContext | Creates a new instance of the PropertyExtensionContext class. |
| Name | Description | |
|---|---|---|
![]() | EntityFrameworkVersion | The targeted version of the Entity Framework. (Inherited from ExtensionContext.) |
![]() | Project | The current Visual Studio project. (Inherited from ExtensionContext.) |
![]() | ProjectItem | The current Visual Studio project item. |
| Name | Description | |
|---|---|---|
![]() | CreateChangeScope | Creates an EntityDesignerChangeScope object and sets the string that will appear in the dropdown lists for the Undo and Redo buttons in Visual Studio. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
In a Visual Studio extension, the PropertyExtensionContext class is used when you want to add custom properties to objects that are visible in the Entity Data Model Designer or the Model Browser (such as entity types or associations). An instance of PropertyExtensionContext is passed to the CreateProperty method, which adds custom properties to selected objects and makes the properties visible in the Visual Studio Properties window.
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.
