Gets the value of the identifier from the IDataReader and ensures it is the correct Type.

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

Syntax

Visual Basic (Declaration)
Public Shared Function Get ( _
	rs As IDataReader, _
	type As IType, _
	session As ISessionImplementor _
) As Object
C#
public static Object Get(
	IDataReader rs,
	IType type,
	ISessionImplementor session
)
Visual C++
public:
static Object^ Get(
	IDataReader^ rs, 
	IType^ type, 
	ISessionImplementor^ session
)
JavaScript
NHibernate.Id.IdentifierGeneratorFactory.get = function(rs, type, 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

ExceptionCondition
NHibernate.Id..::.IdentifierGenerationException Thrown if there is any problem getting the value from the IDataReader or with converting it to the Type.

See Also