When implemented by a class, gets an instance of the object
mapped by this IType from the IDataReader.
Namespace:
NHibernate.TypeAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function NullSafeGet ( _ rs As IDataReader, _ name As String, _ session As ISessionImplementor, _ owner As Object _ ) As Object |
C# |
---|
Object NullSafeGet( IDataReader rs, string name, ISessionImplementor session, Object owner ) |
Visual C++ |
---|
Object^ NullSafeGet( IDataReader^ rs, String^ name, ISessionImplementor^ session, Object^ owner ) |
JavaScript |
---|
function nullSafeGet(rs, name, session, owner); |
Parameters
- rs
- Type: System.Data..::.IDataReader
The IDataReader that contains the values
- name
- Type: System..::.String
The name of the column in the IDataReader that contains the value to populate the IType with.
- session
- Type: NHibernate.Engine..::.ISessionImplementor
- owner
- Type: System..::.Object
Return Value
The object mapped by this IType.
Remarks
Implementations should handle possibility of null values.
This method might be called if the IType is known to be a single-column type.