Gets just the Identifier of the Element for the Collection.
Namespace:
NHibernate.Persister.CollectionAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function ReadElementIdentifier ( _ rs As IDataReader, _ owner As Object, _ session As ISessionImplementor _ ) As Object |
C# |
---|
public Object ReadElementIdentifier( IDataReader rs, Object owner, ISessionImplementor session ) |
Visual C++ |
---|
public: Object^ ReadElementIdentifier( IDataReader^ rs, Object^ owner, ISessionImplementor^ session ) |
JavaScript |
---|
function readElementIdentifier(rs, owner, session); |
Parameters
- rs
- Type: System.Data..::.IDataReader
- owner
- Type: System..::.Object
- session
- Type: NHibernate.Engine..::.ISessionImplementor
Return Value
Remarks
This was created in addition to ReadElement because ADO.NET does not allow
for 2 IDataReaders to be open against a single IDbConnection at one time.
When a Collection is loaded it was recursively opening IDbDataReaders to resolve
the Element for the Collection while the IDbDataReader was open that contained the
record for the Collection.