Condividi tramite


ColumnDefinition Class

Definition

This fragment represents a column definition

[System.Serializable]
public class ColumnDefinition : Microsoft.SqlServer.TransactSql.ScriptDom.ColumnDefinitionBase
[<System.Serializable>]
type ColumnDefinition = class
    inherit ColumnDefinitionBase
Public Class ColumnDefinition
Inherits ColumnDefinitionBase
Inheritance
Attributes

Constructors

ColumnDefinition()

Fields

Uninitialized

Constant to indicate and uninitialized token.

(Inherited from TSqlFragment)

Properties

Collation

Collation identifier

(Inherited from ColumnDefinitionBase)
ColumnIdentifier

The indentifier that represents the name of the column.

(Inherited from ColumnDefinitionBase)
ComputedColumnExpression

Represents the expression if this is a computed column.

Constraints

The constraints for this column.

DataType

The data type of the column.

(Inherited from ColumnDefinitionBase)
DefaultConstraint

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

Encryption

Column encryption definition set if column is encrypted.

FirstTokenIndex

Gets or sets the first index of the token.

(Inherited from TSqlFragment)
FragmentLength

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

(Inherited from TSqlFragment)
GeneratedAlways

Generated always type (if any).

IdentityOptions

Represents the Identity Options

Index

The index for this column.

IsHidden

True if the column is hidden.

IsMasked

True if the column has a data masking function applied.

IsPersisted

True if the column is persisted.

IsRowGuidCol

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

LastTokenIndex

Gets or sets the last index of the token.

(Inherited from TSqlFragment)
MaskingFunction

Represents the data masking function applied to the column.

ScriptTokenStream

Gets or sets the script token stream.

(Inherited from TSqlFragment)
StartColumn

Gets the start column.

(Inherited from TSqlFragment)
StartLine

Gets the start line.

(Inherited from TSqlFragment)
StartOffset

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

(Inherited from TSqlFragment)
StorageOptions

Column storage options.

Methods

Accept(TSqlFragmentVisitor)

Accepts visitor

AcceptChildren(TSqlFragmentVisitor)

Accepts visitor for Children

Applies to