Interface IColumn
Provides an interface for a database column schema.
Namespace: Paradigm.ORM.Data.Database.Schema.Structure
Assembly: Paradigm.ORM.Data.dll
Syntax
public interface IColumn
Properties
| Improve this Doc View SourceCatalogName
Gets the name of the catalog where the parent table resides.
Declaration
string CatalogName { get; }
Property Value
Type | Description |
---|---|
System.String |
DataType
Gets the data type of the column.
Declaration
string DataType { get; }
Property Value
Type | Description |
---|---|
System.String |
DefaultValue
Gets the default value of the column, or null if the column does not have a default value.
Declaration
string DefaultValue { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The default value is retrieved in string format, so you must cast to the proper type before using it.
IsIdentity
Indicates if the column is an identity column, and auto-increments its value.
Declaration
bool IsIdentity { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNullable
Indicates if the column value accepts null values.
Declaration
bool IsNullable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxSize
Gets the maximum size of the field, or zero if the column doesn't have a variable size.
Declaration
long MaxSize { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Name
Gets the name of the column.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Precision
Gets the numeric precision of the column, or zero if the column data type is not numeric.
Declaration
byte Precision { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Scale
Gets the numeric scale of the column, or zero if the column data type is not numeric or is not a decimal numeric type.
Declaration
byte Scale { get; }
Property Value
Type | Description |
---|---|
System.Byte |
SchemaName
Gets the name of the schema where the parent table resides.
Declaration
string SchemaName { get; }
Property Value
Type | Description |
---|---|
System.String |
TableName
Gets the name of the parent table or view.
Declaration
string TableName { get; }
Property Value
Type | Description |
---|---|
System.String |