Configure NHibernate using the file specified.
Namespace:
NHibernate.CfgAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Configure ( _ fileName As String _ ) As Configuration |
C# |
---|
public Configuration Configure( string fileName ) |
Visual C++ |
---|
public: Configuration^ Configure( String^ fileName ) |
JavaScript |
---|
function configure(fileName); |
Parameters
- fileName
- Type: System..::.String
The location of the XML file to use to configure NHibernate.
Return Value
A Configuration object initialized with the file.
Remarks
Calling Configure(string) will overwrite the values set in app.config or web.config