Creates a new CollectionType for an ISet.
Namespace:
NHibernate.TypeAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function GenericSet ( _ role As String, _ propertyRef As String, _ elementClass As Type _ ) As CollectionType |
C# |
---|
public static CollectionType GenericSet( string role, string propertyRef, Type elementClass ) |
Visual C++ |
---|
public: static CollectionType^ GenericSet( String^ role, String^ propertyRef, Type^ elementClass ) |
JavaScript |
---|
NHibernate.Type.TypeFactory.genericSet = function(role, propertyRef, 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.
- elementClass
- Type: System..::.Type
The type of the set elements.