Add a type-definition for mappings.
Namespace: NHibernate.CfgAssembly: 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.