Class SqlCreateTableNode
- Namespace
- LfrlAnvil.Sql.Expressions
- Assembly
- LfrlAnvil.Sql.Core.dll
Represents an SQL syntax tree statement node that defines creation of a single table.
public sealed class SqlCreateTableNode : SqlNodeBase, ISqlStatementNode
- Inheritance
-
SqlCreateTableNode
- Implements
- Inherited Members
- Extension Methods
Properties
Checks
Collection of check constraints.
public ReadOnlyArray<SqlCheckDefinitionNode> Checks { get; }
Property Value
Columns
Collection of columns.
public ReadOnlyArray<SqlColumnDefinitionNode> Columns { get; }
Property Value
ForeignKeys
Collection of foreign key constraints.
public ReadOnlyArray<SqlForeignKeyDefinitionNode> ForeignKeys { get; }
Property Value
IfNotExists
Specifies whether or not this table should only be created if it does not already exist in DB.
public bool IfNotExists { get; }
Property Value
Info
Table's name.
public SqlRecordSetInfo Info { get; }
Property Value
PrimaryKey
Optional primary key constraint.
public SqlPrimaryKeyDefinitionNode? PrimaryKey { get; }
Property Value
RecordSet
Underlying SqlRecordSetNode instance associated with this node.
public SqlNewTableNode RecordSet { get; }