ModelTransformExtensionContext.CurrentDocument Property
The current .edmx file on which Visual Studio extensions may operate.
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 ModelTransformExtensionContext
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
The current .edmx file on which Visual Studio extensions may operate.
Remarks
In a Visual Studio extension, the CurrentDocument property contains the current .edmx file (as an XDocument) that the extension can modify. The content of the file will include any changes that have been made by other Visual Studio extensions. The OriginalDocument property can be used as a reference.
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
ModelTransformExtensionContext Class
ModelTransformExtensionContext Members
Microsoft.Data.Entity.Design.Extensibility Namespace
Other Resources
Visual Studio Extensibility Developer Center