ColumnDefinition ColumnDefinition ColumnDefinition Class


This fragment represents a column definition

public class ColumnDefinition : Microsoft.SqlServer.TransactSql.ScriptDom.ColumnDefinitionBase
type ColumnDefinition = class
    inherit ColumnDefinitionBase
Public Class ColumnDefinition
Inherits ColumnDefinitionBase


ColumnDefinition() ColumnDefinition() ColumnDefinition()


Collation Collation Collation

Collation identifier

(Inherited from ColumnDefinitionBase)
ColumnIdentifier ColumnIdentifier ColumnIdentifier

The indentifier that represents the name of the column.

(Inherited from ColumnDefinitionBase)
ComputedColumnExpression ComputedColumnExpression ComputedColumnExpression

Represents the expression if this is a computed column.

Constraints Constraints Constraints

The constraints for this column.

DataType DataType DataType

The data type of the column.

(Inherited from ColumnDefinitionBase)
DefaultConstraint DefaultConstraint DefaultConstraint

Defines the default value if not null. There can be at most one.

Encryption Encryption Encryption

Column encryption definition set if column is encrypted.

FirstTokenIndex FirstTokenIndex FirstTokenIndex

Gets or sets the first index of the token.

(Inherited from TSqlFragment)
FragmentLength FragmentLength FragmentLength

Defines the number of characters the fragment takes up in the script it was parsed.

(Inherited from TSqlFragment)
GeneratedAlways GeneratedAlways GeneratedAlways

Generated always type (if any).

IdentityOptions IdentityOptions IdentityOptions

Represents the Identity Options

Index Index Index

The index for this column.

IsHidden IsHidden IsHidden

True if the column is hidden.

IsMasked IsMasked IsMasked

True if the column has a data masking function applied.

IsPersisted IsPersisted IsPersisted

True if the column is persisted.

IsRowGuidCol IsRowGuidCol IsRowGuidCol

Indicates if the column is a row global unique identifier column.

LastTokenIndex LastTokenIndex LastTokenIndex

Gets or sets the last index of the token.

(Inherited from TSqlFragment)
MaskingFunction MaskingFunction MaskingFunction

Represents the data masking function applied to the column.

ScriptTokenStream ScriptTokenStream ScriptTokenStream

Gets or sets the script token stream.

(Inherited from TSqlFragment)
StartColumn StartColumn StartColumn

Gets the start column.

(Inherited from TSqlFragment)
StartLine StartLine StartLine

Gets the start line.

(Inherited from TSqlFragment)
StartOffset StartOffset StartOffset

Defines the character offset of fragments starting location in the script it was parsed.

(Inherited from TSqlFragment)
StorageOptions StorageOptions StorageOptions

Column storage options.


Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor)

Accepts visitor

AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor)

Accepts visitor for Children


Uninitialized Uninitialized Uninitialized

Constant to indicate and uninitialized token.

(Inherited from TSqlFragment)

Applies to