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)
Syntax
Visual Basic (Declaration) |
---|
Public Overridable Function Hydrate ( _ rs As IDataReader, _ names As String(), _ session As ISessionImplementor, _ owner As Object _ ) As Object |
C# |
---|
public virtual Object Hydrate( IDataReader rs, string[] names, ISessionImplementor session, Object owner ) |
Visual C++ |
---|
public: virtual Object^ Hydrate( IDataReader^ rs, array<String^>^ names, ISessionImplementor^ session, Object^ owner ) |
JavaScript |
---|
function hydrate(rs, names, session, 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.