Skip to content

SqlNumeric Constructors ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
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 ​

NameDescription
columnThe numeric column metadata (precision/scale).
valueThe 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 ​

NameDescription
isMinto use the type's MinValue, to use MaxValue.
typeThe 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 ​

NameDescription
valueThe numeric value to wrap. Must be one of the supported numeric types (integral, floating-point, Decimal, Boolean, nullable counterparts, or Enum).