Reads the row from the IDataReader.
Namespace: NHibernate.CollectionAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
Object ReadFrom( IDataReader reader, ICollectionPersister role, ICollectionAliases descriptor, Object owner ) |
Visual Basic |
---|
Function ReadFrom ( _ reader As IDataReader, _ role As ICollectionPersister, _ descriptor As ICollectionAliases, _ owner As Object _ ) As Object |
Visual C++ |
---|
Object^ ReadFrom( IDataReader^ reader, ICollectionPersister^ role, ICollectionAliases^ descriptor, Object^ owner ) |
Parameters
- reader
- Type: System.Data..::..IDataReader
The IDataReader that contains the value of the Identifier
- role
- Type: NHibernate.Persister.Collection..::..ICollectionPersister
The persister for this Collection.
- descriptor
- Type: NHibernate.Loader..::..ICollectionAliases
The descriptor providing result set column names
- owner
- Type: System..::..Object
The owner of this Collection.
Return Value
The object that was contained in the row.Remarks
This method should be prepared to handle duplicate elements caused by fetching multiple collections,
or IsUnsafe(ICollectionPersister) should be updated
to return trueTruetruetrue (True in Visual Basic) for the collection type.