Configure NHibernate using the file specified.

Namespace: NHibernate.Cfg
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public Configuration Configure(
	string fileName
)
Visual Basic
Public Function Configure ( _
	fileName As String _
) As Configuration
Visual C++
public:
Configuration^ Configure(
	String^ 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 override/merge the values set in app.config or web.config

See Also