Adds the mappings in the resource of the assembly.

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

Syntax

Visual Basic (Declaration)
Public Function AddResource ( _
	path As String, _
	assembly As Assembly _
) As Configuration
C#
public Configuration AddResource(
	string path,
	Assembly assembly
)
Visual C++
public:
Configuration^ AddResource(
	String^ path, 
	Assembly^ assembly
)
JavaScript
function addResource(path, assembly);

Parameters

path
Type: System..::.String
The path to the resource file in the assembly.
assembly
Type: System.Reflection..::.Assembly
The assembly that contains the resource file.

Return Value

This configuration object.

See Also