Initializes a new instance of a
CollectionType class for
a specific role.
Namespace:
NHibernate.Type
Assembly:
NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Protected Sub New ( _
role As String, _
foreignKeyPropertyName As String _
) |
C# |
---|
protected CollectionType(
string role,
string foreignKeyPropertyName
) |
Visual C++ |
---|
protected:
CollectionType(
String^ role,
String^ foreignKeyPropertyName
) |
JavaScript |
---|
NHibernate.Type.CollectionType = function(role, foreignKeyPropertyName); |
Parameters
- role
- Type: System..::.String
The role the persistent collection is in.
- foreignKeyPropertyName
- 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