Create the correct boxed Type for the identifier.

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

Syntax

Visual Basic (Declaration)
Public Shared Function CreateNumber ( _
	value As Long, _
	type As Type _
) As Object
C#
public static Object CreateNumber(
	long value,
	Type type
)
Visual C++
public:
static Object^ CreateNumber(
	long long value, 
	Type^ type
)
JavaScript
NHibernate.Id.IdentifierGeneratorFactory.createNumber = function(value, type);

Parameters

value
Type: System..::.Int64
The value of the new identifier.
type
Type: System..::.Type
The IType the identifier should be.

Return Value

The identifier value converted to the Type.

Exceptions

ExceptionCondition
NHibernate.Id..::.IdentifierGenerationException The type parameter must be an Int16, Int32, or Int64.

See Also