Create the correct boxed Type for the identifier.
Namespace: NHibernate.IdAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static Object CreateNumber( long value, Type type ) |
Visual Basic |
---|
Public Shared Function CreateNumber ( _ value As Long, _ type As Type _ ) As Object |
Visual C++ |
---|
public: static Object^ CreateNumber( long long value, Type^ 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. |