ModelTransformExtensionContext.OriginalDocument Property
The original .edmx file that was loaded into memory.
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 OriginalDocument As XDocument
Get
'Usage
Dim instance As ModelTransformExtensionContext
Dim value As XDocument
value = instance.OriginalDocument
public abstract XDocument OriginalDocument { get; }
public:
virtual property XDocument^ OriginalDocument {
XDocument^ get () abstract;
}
abstract function get OriginalDocument () : XDocument
Property Value
Type: System.Xml.Linq.XDocument
The original .edmx file that was loaded into memory.
Remarks
In a Visual Studio extension, the OriginalDocument property provides a view of the input document (as an XDocument) at the time the OnAfterModelLoaded method is called and before any methods defined in Visual Studio extensions are called. The document that is contained in this property cannot be modified.
The value of this property will be nulla null reference (Nothing in Visual Basic) when the OnAfterModelLoaded method loads a file that does not have an .edmx file 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
ModelTransformExtensionContext Class
ModelTransformExtensionContext Members
Microsoft.Data.Entity.Design.Extensibility Namespace
Other Resources
Visual Studio Extensibility Developer Center