Skip to content

ColumnNumericAttribute Constructors ​

Definition ​

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

Overloads ​

NameDescription
ColumnNumericAttribute()Default constructor – allows per-property configuration.
ColumnNumericAttribute(int precision, int scale, string name = null, bool nullable = null, object default = null, string comment = null)Constructor for defining SQL precision and scale. Decimal allowance is inferred from scale > 0.
ColumnNumericAttribute(string name = null, bool nullable = null, object default = null, string comment = null, bool allowDecimal = null, long? max = null, long? min = null, int? precision = null, int? scale = null)Configures numeric column metadata including decimal allowance, precision, scale, and value range.

ColumnNumericAttribute() ​

csharp
ColumnNumericAttribute()

Default constructor – allows per-property configuration.

ColumnNumericAttribute(int precision, int scale, string name = null, bool nullable = null, object default = null, string comment = null) ​

csharp
ColumnNumericAttribute(int precision, int scale, string name = null, bool nullable = null, object default = null, string comment = null)

Constructor for defining SQL precision and scale. Decimal allowance is inferred from scale > 0.

Parameters ​

NameDescription
commentSets the SQL Comment used if a table is created
defaultSets the default value assigned to the column, used during table creation or schema modification.
nameSets the Name of the database column
nullableSets whether the column allows null values.
precisionTotal digits allowed.
scaleDigits after decimal point.

ColumnNumericAttribute(string name = null, bool nullable = null, object default = null, string comment = null, bool allowDecimal = null, long? max = null, long? min = null, int? precision = null, int? scale = null) ​

csharp
ColumnNumericAttribute(string name = null, bool nullable = null, object default = null, string comment = null, bool allowDecimal = null, long? max = null, long? min = null, int? precision = null, int? scale = null)

Configures numeric column metadata including decimal allowance, precision, scale, and value range.

Parameters ​

NameDescription
allowDecimalIndicates whether decimal values are permitted. If true and precision/scale are not specified, defaults to (18, 2).
commentSets the SQL Comment used if a table is created
defaultSets the default value assigned to the column, used during table creation or schema modification.
maxMaximum allowed value. Used for semantic or validation purposes.
minMinimum allowed value. Used for semantic or validation purposes.
nameSets the Name of the database column
nullableSets whether the column allows null values.
precisionTotal number of digits allowed for the column (SQL-level precision).
scaleNumber of digits after the decimal point (SQL-level scale).