return Configuration |
|
Assembly assembly |
|
bool skipOrdering |
Type Configuration
Namespace NHibernate.Cfg
return Configuration |
|
Assembly assembly |
|
bool skipOrdering |
.hbm.xml
.The assembly must be loadable using Load . If this condition is not satisfied, load the assembly manually and call AddAssembly instead.
return Configuration |
This configuration object. |
string assemblyName |
The name of the assembly to load. |
.hbm.xml
.
return Configuration |
This configuration object. |
Assembly assembly |
The assembly. |
IAuxiliaryDatabaseObject obj |
The convention is for classFoo.Bar.Foo
to be mapped by the resource namedFoo.Bar.Foo.hbm.xml
, embedded in the class' assembly. If the mappings and classes are defined in different assemblies or don't follow the naming convention, this method cannot be used.
return Configuration |
This configuration object. |
Type persistentClass |
The type to map. |
*.hbm.xml
is a mapping document.
return Configuration |
|
DirectoryInfo dir |
a directory |
return Configuration |
|
XmlDocument doc |
return Configuration |
This configuration object. |
XmlDocument doc |
A loaded XmlDocument that contains the mappings. |
string name |
The name of the document, for error reporting purposes. |
return Configuration |
|
FileInfo xmlFile |
return Configuration |
|
string xmlFile |
FilterDefinition definition |
The Stream passed in through the parameter is not to be cleaned up by this method. It is the caller's responsiblity to ensure that is properly handled when this method completes.
return Configuration |
This Configuration object. |
Stream xmlInputStream |
The stream containing XML |
The Stream passed in through the parameter is not to be cleaned up by this method. It is the caller's responsiblity to ensure that is properly handled when this method completes.
return Configuration |
This Configuration object. |
Stream xmlInputStream |
The stream containing XML |
string name |
${WriteSummary(content)} |
return Configuration |
This Configuration object. |
IDictionary properties |
An IDictionary of configuration properties. |
return Configuration |
This configuration object. |
string path |
The path to the resource file in the assembly. |
Assembly assembly |
The assembly that contains the resource file. |
string functionName |
|
ISQLFunction sqlFunction |
return Configuration |
This configuration object. |
string url |
a URL |
return Configuration |
This configuration object. |
Uri url |
a Uri to read the mappings from. |
return Configuration |
This configuration object. |
string xml |
an XML string |
string name |
${WriteSummary(content)} |
return Configuration |
|
string xml |
return Configuration |
This configuration object. |
string xmlFile |
a path to a file |
return Configuration |
This Configuration object. |
XmlTextReader hbmReader |
The XmlTextReader that contains the mapping. |
string name |
${WriteSummary(content)} |
return Configuration |
This Configuration object. |
XmlTextReader hbmReader |
The XmlTextReader that contains the mapping. |
return Configuration |
This configuration object. |
string xml |
an XML string |
return ISessionFactory |
An ISessionFactory instance. |
Calling Configure(Assembly, string) will overwrite the values set in app.config or web.config
return Configuration |
A Configuration object initialized from the manifest resource. |
Assembly assembly |
The Assembly that contains the resource. |
string resourceName |
The name of the manifest resource being requested. |
Calling Configure(XmlTextReader) will overwrite the values set in app.config or web.config
return Configuration |
A Configuration object initialized with the file. |
XmlTextReader reader |
The XmlTextReader that contains the Xml to configure NHibernate. |
section
from the application config file, if found, or the file hibernate.cfg.xml
otherwise.To configure NHibernate explicitly usinghibernate.cfg.xml
, ignoring the application configuration file, use this code:configuration.Configure("path/to/hibernate.cfg.xml");
return Configuration |
A configuration object initialized with the file. |
Calling Configure(string) will overwrite the values set in app.config or web.config
return Configuration |
A Configuration object initialized with the file. |
string fileName |
The location of the XML file to use to configure NHibernate. |
return bool |
|
object obj |
return String[] |
|
Dialect dialect |
return String[] |
|
Dialect dialect |
return PersistentClass |
|
Type persistentClass |
return Collection |
Collection |
string role |
a collection role |
return int |
return string |
${WriteSummary(content)} |
string name |
The name of the property. |
return Type |
This method is made public to be usable from the unit tests. It is not intended to be called by end users.
return NamedXmlDocument |
NamedXmlDocument containing the validated XmlDocument built from the XmlReader. |
XmlTextReader hbmReader |
The XmlReader that contains the mapping. |
string name |
The name of the document, for error reporting purposes. |
return Configuration |
|
string collectionRole |
|
string concurrencyStrategy |
return Configuration |
|
Type clazz |
|
string concurrencyStrategy |
This setting can be overridden for a mapping file by settingdefault-assembly
attribute ofelement.
return Configuration |
This configuration instance. |
string defaultAssembly |
The default assembly name. |
This setting can be overridden for a mapping file by settingdefault-namespace
attribute ofelement.
return Configuration |
This configuration instance. |
string defaultNamespace |
The default namespace. |
return Configuration |
This configuration instance. |
IInterceptor interceptor |
The default interceptor. |
return Configuration |
|
INamingStrategy namingStrategy |
the NamingStrategy to set |
return Configuration |
|
IDictionary properties |
return Configuration |
This configuration object. |
string name |
The name of the property. |
string value |
The value of the property. |
return string |
return ICollection
|
return ICollection
|
return IDictionary
|
return IDictionary
|
return IInterceptor
|
return IDictionary
|
return IDictionary
|
return INamingStrategy
|
return IDictionary
|
return IDictionary
|
return IDictionary
|
return string
|
return string
|