Skip to content

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 ​

NameDescription
ColumnInfo()Initialize an instance of ColumnInfo

Properties ​

NameDescription
AliasOptional Alias for SELECT statements
CommentSQL Comment
ComputedDefinitionThe definition for the computed value within a computed field
ConstraintsGets the list of constraints defined for the column (e.g., CHECK, FOREIGN KEY).
DataTypeGets the high-level data type of the column (e.g., Character, Numeric, DateTime).
DbTypeGets the database level DbType
DefaultGets the default value assigned to the column, used during table creation or schema modification.
IndexesList of INDEXES defined in the database for the column
IsComputedSpecifies that column contains a computed value derived from ComputedDefinition
IsDatabaseDefinitionReturns true when the ColumnInfo was derived from or verified with database structure
IsImmutableWhen true, columns are not allowed to be modified after INSERT
IsPrimaryKeyReturns true if the column is the table's primary key
NameName of the database column
NullableIndicates whether the column allows null values.
OldNamePrevious name for a column, used to determine if a new column should be added or an existing RENAME'd
OrdinalPositionIndicates the column index on the table row when derived from database data. Otherwise -1
PropertyInfoPropertyInfo of the class Property when derived from a class object
PropertyNameName of the class Property when derived from a class object
PropertyTypeResolves likely C# datatype based on DataValueType and min/max values
SqlDatatypePopulates with SQL datatype when derived from a database schema

Methods ​

NameDescription
bool IsNormalized(NamingStrategy strategy)Compares instance names against NamingStrategy