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

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

Syntax

C#
public Configuration SetDefaultNamespace(
	string newDefaultNamespace
)
Visual Basic
Public Function SetDefaultNamespace ( _
	newDefaultNamespace As String _
) As Configuration
Visual C++
public:
Configuration^ SetDefaultNamespace(
	String^ newDefaultNamespace
)

Parameters

newDefaultNamespace
Type: System..::..String
The default namespace.

Return Value

This configuration instance.

Remarks

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

See Also