Class SqlColumn
Represents an SQL table column.
public abstract class SqlColumn : SqlObject, ISqlColumn, ISqlObject
- Inheritance
-
SqlColumn
- Implements
- Derived
- Inherited Members
Constructors
SqlColumn(SqlTable, SqlColumnBuilder)
Creates a new SqlColumn instance.
protected SqlColumn(SqlTable table, SqlColumnBuilder builder)
Parameters
table
SqlTableTable that this column belongs to.
builder
SqlColumnBuilderSource builder.
Properties
ComputationStorage
Specifies the type of storage for this column's computation or null when this column is not computed.
public SqlColumnComputationStorage? ComputationStorage { get; }
Property Value
HasDefaultValue
Specifies whether or not this column has a default value.
public bool HasDefaultValue { get; }
Property Value
IsNullable
Specifies whether or not this column accepts null values.
public bool IsNullable { get; }
Property Value
Node
Underlying SqlColumnNode instance that represents this column.
public SqlColumnNode Node { get; }
Property Value
Table
Table that this column belongs to.
public SqlTable Table { get; }
Property Value
TypeDefinition
ISqlColumnTypeDefinition instance that defines the data type of this column.
public SqlColumnTypeDefinition TypeDefinition { get; }
Property Value
Methods
Asc()
Creates a new SqlOrderByNode instance from this column with Asc ordering.
[Pure]
public SqlOrderByNode Asc()
Returns
- SqlOrderByNode
New SqlOrderByNode instance.
Desc()
Creates a new SqlOrderByNode instance from this column with Desc ordering.
[Pure]
public SqlOrderByNode Desc()
Returns
- SqlOrderByNode
New SqlOrderByNode instance.
ToString()
Returns a string representation of this SqlColumn instance.
[Pure]
public override string ToString()
Returns
- string
String representation.