Appearance
ColumnNumericAttribute Class
Definition
Defines additional metadata for numeric database columns, including bounding ranges, precision, and scale ///
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Constructors
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
AllowDecimal | Indicates whether decimal values are allowed (true = decimal, false = integer). |
DecimalPlaces | |
Max | The maximum allowed numeric value for the column. |
Min | The minimum allowed numeric value for the column. |
Precision | Total number of digits allowed (SQL precision). |
Scale | Number of digits after the decimal point (SQL scale). |