Appearance
SqlNumeric Constructors
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
SqlNumeric() | Creates an empty SqlNumeric with no value assigned. |
SqlNumeric(object value) | Creates a new SqlNumeric wrapping the specified CLR value. |
SqlNumeric(IColumnInfoNumeric column, object value) | Creates a new SqlNumeric using the numeric metadata from a database column and the supplied CLR value. |
SqlNumeric(Type type, bool isMin) | Creates a SqlNumeric representing either the minimum or maximum value of the specified numeric CLR type. |
SqlNumeric()
csharp
SqlNumeric()Creates an empty SqlNumeric with no value assigned.
SqlNumeric(IColumnInfoNumeric column, object value)
csharp
SqlNumeric(IColumnInfoNumeric column, object value)Creates a new SqlNumeric using the numeric metadata from a database column and the supplied CLR value.
Parameters
| Name | Description |
|---|---|
column | The numeric column metadata (precision/scale). |
value | The numeric value to wrap. Must be a supported numeric type. |
SqlNumeric(Type type, bool isMin)
csharp
SqlNumeric(Type type, bool isMin)Creates a SqlNumeric representing either the minimum or maximum value of the specified numeric CLR type.
Parameters
| Name | Description |
|---|---|
isMin | to use the type's MinValue, to use MaxValue. |
type | The numeric CLR type to derive the min/max from. Nullable types are unwrapped. Booleans are treated as 0/1. |
SqlNumeric(object value)
csharp
SqlNumeric(object value)Creates a new SqlNumeric wrapping the specified CLR value.
Parameters
| Name | Description |
|---|---|
value | The numeric value to wrap. Must be one of the supported numeric types (integral, floating-point, Decimal, Boolean, nullable counterparts, or Enum). |