Create the correct boxed Type for the identifier.
Namespace:
NHibernate.IdAssembly: 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
Exception | Condition |
---|---|
NHibernate.Id..::.IdentifierGenerationException | The type parameter must be an Int16, Int32, or Int64. |