Appearance
ColumnInfo Class
Definition
Represents metadata about a database column, including its data type, default value, and constraints.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Constructors
| Name | Description |
|---|---|
ColumnInfo() | Initialize an instance of ColumnInfo |
Properties
| Name | Description |
|---|---|
Alias | Optional Alias for SELECT statements |
Comment | SQL Comment |
ComputedDefinition | The definition for the computed value within a computed field |
Constraints | Gets the list of constraints defined for the column (e.g., CHECK, FOREIGN KEY). |
DataType | Gets the high-level data type of the column (e.g., Character, Numeric, DateTime). |
DbType | Gets the database level DbType |
Default | Gets the default value assigned to the column, used during table creation or schema modification. |
Indexes | List of INDEXES defined in the database for the column |
IsComputed | Specifies that column contains a computed value derived from ComputedDefinition |
IsDatabaseDefinition | Returns true when the ColumnInfo was derived from or verified with database structure |
IsImmutable | When true, columns are not allowed to be modified after INSERT |
IsPrimaryKey | Returns true if the column is the table's primary key |
Name | Name of the database column |
Nullable | Indicates whether the column allows null values. |
OldName | Previous name for a column, used to determine if a new column should be added or an existing RENAME'd |
OrdinalPosition | Indicates the column index on the table row when derived from database data. Otherwise -1 |
PropertyInfo | PropertyInfo of the class Property when derived from a class object |
PropertyName | Name of the class Property when derived from a class object |
PropertyType | Resolves likely C# datatype based on DataValueType and min/max values |
SqlDatatype | Populates with SQL datatype when derived from a database schema |
Methods
| Name | Description |
|---|---|
bool IsNormalized(NamingStrategy strategy) | Compares instance names against NamingStrategy |