Gets the value of the identifier from the IDataReader and
ensures it is the correct Type.
Namespace: NHibernate.IdAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static Object Get( IDataReader rs, IType type, ISessionImplementor session ) |
Visual Basic |
---|
Public Shared Function Get ( _ rs As IDataReader, _ type As IType, _ session As ISessionImplementor _ ) As Object |
Visual C++ |
---|
public: static Object^ Get( IDataReader^ rs, IType^ type, ISessionImplementor^ session ) |
Parameters
- rs
- Type: System.Data..::..IDataReader
The IDataReader to read the identifier value from.
- type
- Type: NHibernate.Type..::..IType
The IIdentifierType the value should be converted to.
- session
- Type: NHibernate.Engine..::..ISessionImplementor
The ISessionImplementor the value is retrieved in.
Return Value
The value for the identifier.Exceptions
Exception | Condition |
---|---|
NHibernate.Id..::..IdentifierGenerationException | Thrown if there is any problem getting the value from the IDataReader or with converting it to the Type. |