Configure NHibernate using a resource contained in an Assembly.
Namespace: NHibernate.CfgAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public Configuration Configure( Assembly assembly, string resourceName ) |
Visual Basic |
---|
Public Function Configure ( _ assembly As Assembly, _ resourceName As String _ ) As Configuration |
Visual C++ |
---|
public: Configuration^ Configure( Assembly^ assembly, String^ resourceName ) |
Parameters
- assembly
- Type: System.Reflection..::..Assembly
The Assembly that contains the resource.
- resourceName
- Type: System..::..String
The name of the manifest resource being requested.
Return Value
A Configuration object initialized from the manifest resource.Remarks
Calling Configure(Assembly, string) will overwrite the values set in app.config or web.config