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

Syntax

Visual Basic (Declaration)
Public Shared Function GenericMap ( _
	role As String, _
	propertyRef As String, _
	indexClass As Type, _
	elementClass As Type _
) As CollectionType
C#
public static CollectionType GenericMap(
	string role,
	string propertyRef,
	Type indexClass,
	Type elementClass
)
Visual C++
public:
static CollectionType^ GenericMap(
	String^ role, 
	String^ propertyRef, 
	Type^ indexClass, 
	Type^ elementClass
)
JavaScript
NHibernate.Type.TypeFactory.genericMap = function(role, propertyRef, indexClass, elementClass);

Parameters

role
Type: System..::.String
The role the collection is in.
propertyRef
Type: System..::.String
The name of the property in the owner object containing the collection ID, or nullNothingnullptra null reference (Nothing in Visual Basic) if it is the primary key.
indexClass
Type: System..::.Type
The Type to use as the TKey to create the IDictionary<(Of <(TKey, TValue>)>) with.
elementClass
Type: System..::.Type
The Type to use as the TValue to create the IDictionary<(Of <(TKey, TValue>)>) with.

Return Value

A MapType for the specified role.

See Also