View Source
Class CreateTableBuilder
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CreateTableBuilder : ExpressionBuilderBase<CreateTableExpression, ICreateTableColumnOptionBuilder>, ICreateTableColumnAsTypeBuilder, IColumnTypeBuilder<ICreateTableColumnOptionBuilder>, ICreateTableColumnOptionForeignKeyCascadeBuilder, ICreateTableColumnOptionBuilder, IColumnOptionBuilder<ICreateTableColumnOptionBuilder, ICreateTableColumnOptionForeignKeyCascadeBuilder>, ICreateTableWithColumnBuilder, IExecutableBuilder, IForeignKeyCascadeBuilder<ICreateTableColumnOptionBuilder, ICreateTableColumnOptionForeignKeyCascadeBuilder>, IFluentBuilder
Constructors
View Source
CreateTableBuilder(IMigrationContext, CreateTableExpression)
Declaration
public CreateTableBuilder(IMigrationContext context, CreateTableExpression expression)
Parameters
Properties
View Source
CurrentColumn
Declaration
public ColumnDefinition CurrentColumn { get; set; }
Property Value
View Source
CurrentForeignKey
Declaration
public ForeignKeyDefinition CurrentForeignKey { get; set; }
Property Value
Methods
View Source
Do()
Declaration
View Source
ForeignKey()
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder ForeignKey()
Returns
View Source
ForeignKey(String, String)
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder ForeignKey(string primaryTableName, string primaryColumnName)
Parameters
Type |
Name |
Description |
System.String |
primaryTableName |
|
System.String |
primaryColumnName |
|
Returns
View Source
ForeignKey(String, String, String)
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder ForeignKey(string foreignKeyName, string primaryTableName, string primaryColumnName)
Parameters
Type |
Name |
Description |
System.String |
foreignKeyName |
|
System.String |
primaryTableName |
|
System.String |
primaryColumnName |
|
Returns
View Source
ForeignKey(String, String, String, String)
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder ForeignKey(string foreignKeyName, string primaryTableSchema, string primaryTableName, string primaryColumnName)
Parameters
Type |
Name |
Description |
System.String |
foreignKeyName |
|
System.String |
primaryTableSchema |
|
System.String |
primaryTableName |
|
System.String |
primaryColumnName |
|
Returns
View Source
GetColumnForType()
Declaration
public override ColumnDefinition GetColumnForType()
Returns
View Source
Identity()
Declaration
public ICreateTableColumnOptionBuilder Identity()
Returns
View Source
Indexed()
Declaration
public ICreateTableColumnOptionBuilder Indexed()
Returns
View Source
Indexed(String)
Declaration
public ICreateTableColumnOptionBuilder Indexed(string indexName)
Parameters
Type |
Name |
Description |
System.String |
indexName |
|
Returns
View Source
NotNullable()
Declaration
public ICreateTableColumnOptionBuilder NotNullable()
Returns
View Source
Nullable()
Declaration
public ICreateTableColumnOptionBuilder Nullable()
Returns
View Source
OnDelete(Rule)
Specifies a rule on deletes.
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder OnDelete(Rule rule)
Parameters
Type |
Name |
Description |
System.Data.Rule |
rule |
|
Returns
View Source
OnDeleteOrUpdate(Rule)
Specifies a rule on deletes and updates.
Declaration
public ICreateTableColumnOptionBuilder OnDeleteOrUpdate(Rule rule)
Parameters
Type |
Name |
Description |
System.Data.Rule |
rule |
|
Returns
View Source
OnUpdate(Rule)
Specifies a rule on updates.
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder OnUpdate(Rule rule)
Parameters
Type |
Name |
Description |
System.Data.Rule |
rule |
|
Returns
View Source
PrimaryKey()
Declaration
public ICreateTableColumnOptionBuilder PrimaryKey()
Returns
View Source
PrimaryKey(String)
Declaration
public ICreateTableColumnOptionBuilder PrimaryKey(string primaryKeyName)
Parameters
Type |
Name |
Description |
System.String |
primaryKeyName |
|
Returns
View Source
ReferencedBy(String, String)
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder ReferencedBy(string foreignTableName, string foreignColumnName)
Parameters
Type |
Name |
Description |
System.String |
foreignTableName |
|
System.String |
foreignColumnName |
|
Returns
View Source
ReferencedBy(String, String, String)
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder ReferencedBy(string foreignKeyName, string foreignTableName, string foreignColumnName)
Parameters
Type |
Name |
Description |
System.String |
foreignKeyName |
|
System.String |
foreignTableName |
|
System.String |
foreignColumnName |
|
Returns
View Source
ReferencedBy(String, String, String, String)
Declaration
public ICreateTableColumnOptionForeignKeyCascadeBuilder ReferencedBy(string foreignKeyName, string foreignTableSchema, string foreignTableName, string foreignColumnName)
Parameters
Type |
Name |
Description |
System.String |
foreignKeyName |
|
System.String |
foreignTableSchema |
|
System.String |
foreignTableName |
|
System.String |
foreignColumnName |
|
Returns
View Source
Unique()
Declaration
public ICreateTableColumnOptionBuilder Unique()
Returns
View Source
Unique(String)
Declaration
public ICreateTableColumnOptionBuilder Unique(string indexName)
Parameters
Type |
Name |
Description |
System.String |
indexName |
|
Returns
View Source
WithColumn(String)
Declaration
public ICreateTableColumnAsTypeBuilder WithColumn(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
View Source
WithDefault(SystemMethods)
Declaration
public ICreateTableColumnOptionBuilder WithDefault(SystemMethods method)
Parameters
Returns
View Source
WithDefaultValue(Object)
Declaration
public ICreateTableColumnOptionBuilder WithDefaultValue(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns