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

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.

System.Object
  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)
public abstract class PropertyExtensionContext : ExtensionContext

The PropertyExtensionContext type exposes the following members.

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

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.
Show:
© 2014 Microsoft. All rights reserved.