Table of Contents

Interface ISqlColumn

Namespace
LfrlAnvil.Sql.Objects
Assembly
LfrlAnvil.Sql.Core.dll

Represents an SQL table column.

public interface ISqlColumn : ISqlObject
Inherited Members

Properties

ComputationStorage

Specifies the type of storage for this column's computation or null when this column is not computed.

SqlColumnComputationStorage? ComputationStorage { get; }

Property Value

SqlColumnComputationStorage?

HasDefaultValue

Specifies whether or not this column has a default value.

bool HasDefaultValue { get; }

Property Value

bool

IsNullable

Specifies whether or not this column accepts null values.

bool IsNullable { get; }

Property Value

bool

Node

Underlying SqlColumnNode instance that represents this column.

SqlColumnNode Node { get; }

Property Value

SqlColumnNode

Table

Table that this column belongs to.

ISqlTable Table { get; }

Property Value

ISqlTable

TypeDefinition

ISqlColumnTypeDefinition instance that defines the data type of this column.

ISqlColumnTypeDefinition TypeDefinition { get; }

Property Value

ISqlColumnTypeDefinition

Methods

Asc()

Creates a new SqlOrderByNode instance from this column with Asc ordering.

[Pure]
SqlOrderByNode Asc()

Returns

SqlOrderByNode

New SqlOrderByNode instance.

Desc()

Creates a new SqlOrderByNode instance from this column with Desc ordering.

[Pure]
SqlOrderByNode Desc()

Returns

SqlOrderByNode

New SqlOrderByNode instance.