Gets the Type in the IDataReader for the Property.

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

Syntax

Visual Basic (Declaration)
Public Overrides Function Get ( _
	rs As IDataReader, _
	name As String _
) As Object
C#
public override Object Get(
	IDataReader rs,
	string name
)
Visual C++
public:
virtual Object^ Get(
	IDataReader^ rs, 
	String^ name
) override
JavaScript
function get(rs, name);

Parameters

rs
Type: System.Data..::.IDataReader
The IDataReader that contains the value.
name
Type: System..::.String
The name of the field to get the value from.

Return Value

The Type from the database.

Remarks

This just calls gets the index of the name in the IDataReader and calls the overloaded version Get(IDataReader, Int32) (IDataReader, Int32).

Exceptions

ExceptionCondition
System..::.TypeLoadException Thrown when the value in the database can not be loaded as a Type

See Also