Interface ICreateExpressionRoot
The root expression for a CREATE operation
Namespace: FluentMigrator.Builders.Create
Assembly: FluentMigrator.Abstractions.dll
Syntax
public interface ICreateExpressionRoot
Methods
| Edit this page View SourceColumn(string)
Creates a column
Declaration
ICreateColumnOnTableSyntax Column(string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | columnName | The column name |
Returns
| Type | Description |
|---|---|
| ICreateColumnOnTableSyntax | Additional information about the column creation |
ForeignKey()
Creates a foreign key with a default name
Declaration
ICreateForeignKeyFromTableSyntax ForeignKey()
Returns
| Type | Description |
|---|---|
| ICreateForeignKeyFromTableSyntax | Additional information about the foreign key creation |
ForeignKey(string)
Creates a foreign key with the given name
Declaration
ICreateForeignKeyFromTableSyntax ForeignKey(string foreignKeyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | foreignKeyName | The foreign key name |
Returns
| Type | Description |
|---|---|
| ICreateForeignKeyFromTableSyntax | Additional information about the foreign key creation |
Index()
Creates an index with a default name
Declaration
ICreateIndexForTableSyntax Index()
Returns
| Type | Description |
|---|---|
| ICreateIndexForTableSyntax | Additional information about the index creation |
Index(string)
Creates an index with the given name
Declaration
ICreateIndexForTableSyntax Index(string indexName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | indexName | The index name |
Returns
| Type | Description |
|---|---|
| ICreateIndexForTableSyntax | Additional information about the index creation |
PrimaryKey()
Creates a primary key with a default name
Declaration
ICreateConstraintOnTableSyntax PrimaryKey()
Returns
| Type | Description |
|---|---|
| ICreateConstraintOnTableSyntax | Additional information about the primary key creation |
PrimaryKey(string)
Creates a primary key with the given name
Declaration
ICreateConstraintOnTableSyntax PrimaryKey(string primaryKeyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | primaryKeyName | The primary key name |
Returns
| Type | Description |
|---|---|
| ICreateConstraintOnTableSyntax | Additional information about the primary key creation |
Schema(string)
Creates a schema
Declaration
ICreateSchemaOptionsSyntax Schema(string schemaName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | schemaName | The schema name |
Returns
| Type | Description |
|---|---|
| ICreateSchemaOptionsSyntax | The options for the schema creation |
Sequence(string)
Creates a sequence
Declaration
ICreateSequenceInSchemaSyntax Sequence(string sequenceName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sequenceName | The sequence name |
Returns
| Type | Description |
|---|---|
| ICreateSequenceInSchemaSyntax | Additional information about the sequence creation |
Table(string)
Creates a table
Declaration
ICreateTableWithColumnOrSchemaOrDescriptionSyntax Table(string tableName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | The table name |
Returns
| Type | Description |
|---|---|
| ICreateTableWithColumnOrSchemaOrDescriptionSyntax | Additional information about the table creation |
UniqueConstraint()
Creates an unique constraint with a default name
Declaration
ICreateConstraintOnTableSyntax UniqueConstraint()
Returns
| Type | Description |
|---|---|
| ICreateConstraintOnTableSyntax | Additional information about the unique constraint creation |
UniqueConstraint(string)
Creates an unique constraint with the given name
Declaration
ICreateConstraintOnTableSyntax UniqueConstraint(string constraintName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | constraintName | The unique constraint name |
Returns
| Type | Description |
|---|---|
| ICreateConstraintOnTableSyntax | Additional information about the unique constraint creation |