Add a type-definition for mappings.

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

Syntax

C#
public static Configuration TypeDefinition<TDef>(
	this Configuration configuration,
	Action<ITypeDefConfigurationProperties> typeDefConfiguration
)
where TDef : class
Visual Basic
<ExtensionAttribute> _
Public Shared Function TypeDefinition(Of TDef As Class) ( _
	configuration As Configuration, _
	typeDefConfiguration As Action(Of ITypeDefConfigurationProperties) _
) As Configuration
Visual C++
[ExtensionAttribute]
public:
generic<typename TDef>
where TDef : ref class
static Configuration^ TypeDefinition(
	Configuration^ configuration, 
	Action<ITypeDefConfigurationProperties^>^ typeDefConfiguration
)

Parameters

configuration
Type: NHibernate.Cfg..::..Configuration
The Configuration where add the type-definition.
typeDefConfiguration
Type: System..::..Action<(Of <(<'ITypeDefConfigurationProperties>)>)>
The custom configuration action.

Type Parameters

TDef
The peristent type.

Return Value

The Configuration.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Configuration. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Remarks

See Also