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) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public override sealed Object NullSafeGet( IDataReader rs, string name, ISessionImplementor session, Object owner ) |
Visual Basic |
---|
Public Overrides NotOverridable Function NullSafeGet ( _ rs As IDataReader, _ name As String, _ session As ISessionImplementor, _ owner As Object _ ) As Object |
Visual C++ |
---|
public: virtual Object^ NullSafeGet( IDataReader^ rs, String^ name, ISessionImplementor^ session, Object^ owner ) override sealed |
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
[Missing <param name="session"/> documentation for "M:NHibernate.Type.NullableType.NullSafeGet(System.Data.IDataReader,System.String,NHibernate.Engine.ISessionImplementor,System.Object)"]
- owner
- Type: System..::..Object
[Missing <param name="owner"/> documentation for "M:NHibernate.Type.NullableType.NullSafeGet(System.Data.IDataReader,System.String,NHibernate.Engine.ISessionImplementor,System.Object)"]
Return Value
The object mapped by this IType.Implements
IType..::..NullSafeGet(IDataReader, String, ISessionImplementor, Object)Remarks
Implementations should handle possibility of null values.
This method might be called if the IType is known to be a single-column type.
Remarks
This implementation forwards the call to NullSafeGet(IDataReader, String).
It has been "sealed" because the Types inheriting from NullableType do not need to and should not override this method. All of their implementation should be in NullSafeGet(IDataReader, String).