Load and validate the mappings in the XmlTextReader against
the nhibernate-mapping-2.2 schema, without adding them to the configuration.
Namespace:
NHibernate.CfgAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function LoadMappingDocument ( _ hbmReader As XmlTextReader, _ name As String _ ) As NamedXmlDocument |
C# |
---|
public NamedXmlDocument LoadMappingDocument( XmlTextReader hbmReader, string name ) |
Visual C++ |
---|
public: NamedXmlDocument^ LoadMappingDocument( XmlTextReader^ hbmReader, String^ name ) |
JavaScript |
---|
function loadMappingDocument(hbmReader, name); |
Parameters
- hbmReader
- Type: System.Xml..::.XmlTextReader
The XmlReader that contains the mapping.
- name
- Type: System..::.String
The name of the document, for error reporting purposes.
Return Value
NamedXmlDocument containing the validated XmlDocument built from the XmlReader.
Remarks
This method is made public to be usable from the unit tests. It is not intended
to be called by end users.