ModelGenerationExtensionContext.CurrentDocument Property
Represents the .edmx document to be modified.
Namespace: Microsoft.Data.Entity.Design.Extensibility
Assembly: Microsoft.Data.Entity.Design.Extensibility (in Microsoft.Data.Entity.Design.Extensibility.dll)
Syntax
'Declaration
Public MustOverride ReadOnly Property CurrentDocument As XDocument
Get
'Usage
Dim instance As ModelGenerationExtensionContext
Dim value As XDocument
value = instance.CurrentDocument
public abstract XDocument CurrentDocument { get; }
public:
virtual property XDocument^ CurrentDocument {
XDocument^ get () abstract;
}
abstract function get CurrentDocument () : XDocument
Property Value
Type: System.Xml.Linq.XDocument
Represents the .edmx document to be modified.
Remarks
In a Visual Studio extension, the CurrentDocument property represents the .edmx file to be modified. When the Entity Data Model Wizard is launched in Visual Studio, the CurrentDocument property contains the .edmx file (as an XDocument) that an extension can modify. This file also contains any changes made to it by extensions that have been executed previous to the currently executing extension.
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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ModelGenerationExtensionContext Class
ModelGenerationExtensionContext Members
Microsoft.Data.Entity.Design.Extensibility Namespace
Other Resources
Visual Studio Extensibility Developer Center