Retrives an instance of the mapped class, or the identifier of an entity
or collection from a IDataReader.
Namespace: NHibernate.TypeAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public virtual Object Hydrate( IDataReader rs, string[] names, ISessionImplementor session, Object owner ) |
Visual Basic |
---|
Public Overridable Function Hydrate ( _ rs As IDataReader, _ names As String(), _ session As ISessionImplementor, _ owner As Object _ ) As Object |
Visual C++ |
---|
public: virtual Object^ Hydrate( IDataReader^ rs, array<String^>^ names, ISessionImplementor^ session, Object^ owner ) |
Parameters
- rs
- Type: System.Data..::..IDataReader
The IDataReader that contains the values.
- names
- Type: array<System..::..String>[]()[][]
The names of the columns in the IDataReader that contain the value to populate the IType with.
- session
- Type: NHibernate.Engine..::..ISessionImplementor
the session
- owner
- Type: System..::..Object
The parent Entity
Return Value
An identifier or actual object mapped by this IType.Implements
IType..::..Hydrate(IDataReader, array<String>[]()[][], ISessionImplementor, Object)Remarks
This method uses the IType.NullSafeGet(IDataReader, string[], ISessionImplementor, object) method
to Hydrate this AbstractType.