Skip to content

ColumnNumericAttribute Class ​

Definition ​

Defines additional metadata for numeric database columns, including bounding ranges, precision, and scale ///

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

Constructors ​

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.

Properties ​

NameDescription
AllowDecimalIndicates whether decimal values are allowed (true = decimal, false = integer).
DecimalPlaces
MaxThe maximum allowed numeric value for the column.
MinThe minimum allowed numeric value for the column.
PrecisionTotal number of digits allowed (SQL precision).
ScaleNumber of digits after the decimal point (SQL scale).