Gets the Type in the IDataReader for the Property.
Namespace: NHibernate.TypeAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public override Object Get( IDataReader rs, string name ) |
Visual Basic |
---|
Public Overrides Function Get ( _ rs As IDataReader, _ name As String _ ) As Object |
Visual C++ |
---|
public: virtual Object^ Get( IDataReader^ rs, String^ name ) override |
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
Exception | Condition |
---|---|
System..::..TypeLoadException | Thrown when the value in the database can not be loaded as a Type |