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) |
---|
Public Overrides NotOverridable Function NullSafeGet ( _ rs As IDataReader, _ names As String(), _ session As ISessionImplementor, _ owner As Object _ ) As Object |
C# |
---|
public override sealed Object NullSafeGet( IDataReader rs, string[] names, ISessionImplementor session, Object owner ) |
Visual C++ |
---|
public: virtual Object^ NullSafeGet( IDataReader^ rs, array<String^>^ names, ISessionImplementor^ session, Object^ owner ) override sealed |
JavaScript |
---|
function nullSafeGet(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
- owner
- Type: System..::.Object
Return Value
The object mapped by this IType.Implements
IType..::.NullSafeGet(IDataReader, array<String>[]()[], ISessionImplementor, Object)
Remarks
Implementors should handle possibility of null values.
Remarks
This has been sealed because no other class should override it. This
method calls NullSafeGet(IDataReader, String) for a single value.
It only takes the first name from the string[] names parameter - that is a
safe thing to do because a Nullable Type only has one field.