Appearance
ColumnNumericAttribute Constructors
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| 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. |
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
| Name | Description |
|---|---|
comment | Sets the SQL Comment used if a table is created |
default | Sets the default value assigned to the column, used during table creation or schema modification. |
name | Sets the Name of the database column |
nullable | Sets whether the column allows null values. |
precision | Total digits allowed. |
scale | Digits 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
| Name | Description |
|---|---|
allowDecimal | Indicates whether decimal values are permitted. If true and precision/scale are not specified, defaults to (18, 2). |
comment | Sets the SQL Comment used if a table is created |
default | Sets the default value assigned to the column, used during table creation or schema modification. |
max | Maximum allowed value. Used for semantic or validation purposes. |
min | Minimum allowed value. Used for semantic or validation purposes. |
name | Sets the Name of the database column |
nullable | Sets whether the column allows null values. |
precision | Total number of digits allowed for the column (SQL-level precision). |
scale | Number of digits after the decimal point (SQL-level scale). |