Initializes a new instance of a GenericMapType<(Of <(TKey, TValue>)>) class for a specific role.

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

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	role As String, _
	propertyRef As String _
)
C#
public GenericMapType(
	string role,
	string propertyRef
)
Visual C++
public:
GenericMapType(
	String^ role, 
	String^ propertyRef
)
JavaScript
NHibernate.Type.GenericMapType = function(role, propertyRef);

Parameters

role
Type: System..::.String
The role the persistent 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.

See Also