Adds the mappings in the resource of the assembly.

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

Syntax

C#
public Configuration AddResource(
	string path,
	Assembly assembly
)
Visual Basic
Public Function AddResource ( _
	path As String, _
	assembly As Assembly _
) As Configuration
Visual C++
public:
Configuration^ AddResource(
	String^ path, 
	Assembly^ 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