Gets the value of the field from the IDataReader.

Namespace: NHibernate.Type
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public virtual Object NullSafeGet(
	IDataReader rs,
	string name
)
Visual Basic
Public Overridable Function NullSafeGet ( _
	rs As IDataReader, _
	name As String _
) As Object
Visual C++
public:
virtual Object^ NullSafeGet(
	IDataReader^ rs, 
	String^ name
)

Parameters

rs
Type: System.Data..::..IDataReader
The IDataReader positioned on the correct record.
name
Type: System..::..String
The name of the field to get the value from.

Return Value

The value of the field.

Remarks

This method checks to see if value is null, if it is then the null is returned from this method.

If the value is not null, then the method Get(IDataReader, Int32) is called and that method is responsible for retrieving the value.

See Also