View Source
Class CreateBuilder
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CreateBuilder : ICreateBuilder, IFluentBuilder
Constructors
View Source
CreateBuilder(IMigrationContext)
Declaration
public CreateBuilder(IMigrationContext context)
Parameters
Methods
View Source
Column(String)
Builds a Create Column expression.
Declaration
public ICreateColumnOnTableBuilder Column(string columnName)
Parameters
Type |
Name |
Description |
System.String |
columnName |
|
Returns
View Source
Constraint(String)
Builds a Create Constraint expression.
Declaration
public ICreateConstraintOnTableBuilder Constraint(string constraintName)
Parameters
Type |
Name |
Description |
System.String |
constraintName |
|
Returns
View Source
ForeignKey()
Builds a Create Foreign Key expression.
Declaration
public ICreateForeignKeyFromTableBuilder ForeignKey()
Returns
View Source
ForeignKey(String)
Builds a Create Foreign Key expression.
Declaration
public ICreateForeignKeyFromTableBuilder ForeignKey(string foreignKeyName)
Parameters
Type |
Name |
Description |
System.String |
foreignKeyName |
|
Returns
View Source
Index()
Builds a Create Index expression.
Declaration
public ICreateIndexForTableBuilder Index()
Returns
View Source
Index(String)
Builds a Create Index expression.
Declaration
public ICreateIndexForTableBuilder Index(string indexName)
Parameters
Type |
Name |
Description |
System.String |
indexName |
|
Returns
View Source
KeysAndIndexes(Type)
Builds a Create Keys and Indexes expression, and executes.
Declaration
public IExecutableBuilder KeysAndIndexes(Type typeOfDto)
Parameters
Type |
Name |
Description |
Type |
typeOfDto |
|
Returns
View Source
KeysAndIndexes<TDto>()
Builds a Create Keys and Indexes expression, and executes.
Declaration
public IExecutableBuilder KeysAndIndexes<TDto>()
Returns
Type Parameters
View Source
PrimaryKey()
Builds a Create Primary Key expression.
Declaration
public ICreateConstraintOnTableBuilder PrimaryKey()
Returns
View Source
PrimaryKey(Boolean)
Builds a Create Primary Key expression.
Declaration
public ICreateConstraintOnTableBuilder PrimaryKey(bool clustered)
Parameters
Type |
Name |
Description |
System.Boolean |
clustered |
|
Returns
View Source
PrimaryKey(String)
Builds a Create Primary Key expression.
Declaration
public ICreateConstraintOnTableBuilder PrimaryKey(string primaryKeyName)
Parameters
Type |
Name |
Description |
System.String |
primaryKeyName |
|
Returns
View Source
PrimaryKey(String, Boolean)
Builds a Create Primary Key expression.
Declaration
public ICreateConstraintOnTableBuilder PrimaryKey(string primaryKeyName, bool clustered)
Parameters
Type |
Name |
Description |
System.String |
primaryKeyName |
|
System.Boolean |
clustered |
|
Returns
View Source
Table(String)
Builds a Create Table expression.
Declaration
public ICreateTableWithColumnBuilder Table(string tableName)
Parameters
Type |
Name |
Description |
System.String |
tableName |
|
Returns
View Source
Table<TDto>(Boolean)
Builds a Create Table expression, and executes.
Declaration
public IExecutableBuilder Table<TDto>(bool withoutKeysAndIndexes = false)
Parameters
Type |
Name |
Description |
System.Boolean |
withoutKeysAndIndexes |
|
Returns
Type Parameters
View Source
UniqueConstraint()
Builds a Create Unique Constraint expression.
Declaration
public ICreateConstraintOnTableBuilder UniqueConstraint()
Returns
View Source
UniqueConstraint(String)
Builds a Create Unique Constraint expression.
Declaration
public ICreateConstraintOnTableBuilder UniqueConstraint(string constraintName)
Parameters
Type |
Name |
Description |
System.String |
constraintName |
|
Returns