View Source
Class CreateColumnBuilder
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CreateColumnBuilder : ExpressionBuilderBase<CreateColumnExpression, ICreateColumnOptionBuilder>, ICreateColumnOnTableBuilder, ICreateColumnTypeBuilder, IColumnTypeBuilder<ICreateColumnOptionBuilder>, ICreateColumnOptionForeignKeyCascadeBuilder, ICreateColumnOptionBuilder, IColumnOptionBuilder<ICreateColumnOptionBuilder, ICreateColumnOptionForeignKeyCascadeBuilder>, IExecutableBuilder, IForeignKeyCascadeBuilder<ICreateColumnOptionBuilder, ICreateColumnOptionForeignKeyCascadeBuilder>, IFluentBuilder
Constructors
View Source
CreateColumnBuilder(IMigrationContext, CreateColumnExpression)
Declaration
public CreateColumnBuilder(IMigrationContext context, CreateColumnExpression expression)
Parameters
Properties
View Source
CurrentForeignKey
Declaration
public ForeignKeyDefinition CurrentForeignKey { get; set; }
Property Value
Methods
View Source
Do()
Declaration
View Source
ForeignKey()
Declaration
public ICreateColumnOptionForeignKeyCascadeBuilder ForeignKey()
Returns
View Source
ForeignKey(String, String)
Declaration
public ICreateColumnOptionForeignKeyCascadeBuilder ForeignKey(string primaryTableName, string primaryColumnName)
Parameters
Type |
Name |
Description |
System.String |
primaryTableName |
|
System.String |
primaryColumnName |
|
Returns
View Source
ForeignKey(String, String, String)
Declaration
public ICreateColumnOptionForeignKeyCascadeBuilder 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 ICreateColumnOptionForeignKeyCascadeBuilder 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 ICreateColumnOptionBuilder Identity()
Returns
View Source
Indexed()
Declaration
public ICreateColumnOptionBuilder Indexed()
Returns
View Source
Indexed(String)
Declaration
public ICreateColumnOptionBuilder Indexed(string indexName)
Parameters
Type |
Name |
Description |
System.String |
indexName |
|
Returns
View Source
NotNullable()
Declaration
public ICreateColumnOptionBuilder NotNullable()
Returns
View Source
Nullable()
Declaration
public ICreateColumnOptionBuilder Nullable()
Returns
View Source
OnDelete(Rule)
Declaration
public ICreateColumnOptionForeignKeyCascadeBuilder OnDelete(Rule rule)
Parameters
Type |
Name |
Description |
System.Data.Rule |
rule |
|
Returns
View Source
OnDeleteOrUpdate(Rule)
Declaration
public ICreateColumnOptionBuilder OnDeleteOrUpdate(Rule rule)
Parameters
Type |
Name |
Description |
System.Data.Rule |
rule |
|
Returns
View Source
OnTable(String)
Declaration
public ICreateColumnTypeBuilder OnTable(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
View Source
OnUpdate(Rule)
Declaration
public ICreateColumnOptionForeignKeyCascadeBuilder OnUpdate(Rule rule)
Parameters
Type |
Name |
Description |
System.Data.Rule |
rule |
|
Returns
View Source
PrimaryKey()
Declaration
public ICreateColumnOptionBuilder PrimaryKey()
Returns
View Source
PrimaryKey(String)
Declaration
public ICreateColumnOptionBuilder PrimaryKey(string primaryKeyName)
Parameters
Type |
Name |
Description |
System.String |
primaryKeyName |
|
Returns
View Source
ReferencedBy(String, String)
Declaration
public ICreateColumnOptionForeignKeyCascadeBuilder ReferencedBy(string foreignTableName, string foreignColumnName)
Parameters
Type |
Name |
Description |
System.String |
foreignTableName |
|
System.String |
foreignColumnName |
|
Returns
View Source
ReferencedBy(String, String, String)
Declaration
public ICreateColumnOptionForeignKeyCascadeBuilder 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 ICreateColumnOptionForeignKeyCascadeBuilder 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 ICreateColumnOptionBuilder Unique()
Returns
View Source
Unique(String)
Declaration
public ICreateColumnOptionBuilder Unique(string indexName)
Parameters
Type |
Name |
Description |
System.String |
indexName |
|
Returns
View Source
WithDefault(SystemMethods)
Declaration
public ICreateColumnOptionBuilder WithDefault(SystemMethods method)
Parameters
Returns
View Source
WithDefaultValue(Object)
Declaration
public ICreateColumnOptionBuilder WithDefaultValue(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns