PropertyExtensionContext Class
Collapse the table of content
Expand the table of content

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.


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

public abstract class PropertyExtensionContext : ExtensionContext

The PropertyExtensionContext type exposes the following members.

Protected methodPropertyExtensionContextCreates a new instance of the PropertyExtensionContext class.

Public propertyEntityFrameworkVersionThe targeted version of the Entity Framework. (Inherited from ExtensionContext.)
Public propertyProjectThe current Visual Studio project. (Inherited from ExtensionContext.)
Public propertyProjectItemThe current Visual Studio project item.

Public methodCreateChangeScopeCreates an EntityDesignerChangeScope object and sets the string that will appear in the dropdown lists for the Undo and Redo buttons in Visual Studio.
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 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.

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