Set the default assembly to use for the mappings added to the configuration afterwards.

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

Syntax

Visual Basic (Declaration)
Public Function SetDefaultAssembly ( _
	defaultAssembly As String _
) As Configuration
C#
public Configuration SetDefaultAssembly(
	string defaultAssembly
)
Visual C++
public:
Configuration^ SetDefaultAssembly(
	String^ defaultAssembly
)
JavaScript
function setDefaultAssembly(defaultAssembly);

Parameters

defaultAssembly
Type: System..::.String
The default assembly name.

Return Value

This configuration instance.

Remarks

This setting can be overridden for a mapping file by setting default-assembly attribute of <hibernate-mapping> element.

See Also