Search Results for

    Show / Hide Table of Contents

    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 Source

    Column(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

    | Edit this page View Source

    ForeignKey()

    Creates a foreign key with a default name

    Declaration
    ICreateForeignKeyFromTableSyntax ForeignKey()
    Returns
    Type Description
    ICreateForeignKeyFromTableSyntax

    Additional information about the foreign key creation

    | Edit this page View Source

    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

    | Edit this page View Source

    Index()

    Creates an index with a default name

    Declaration
    ICreateIndexForTableSyntax Index()
    Returns
    Type Description
    ICreateIndexForTableSyntax

    Additional information about the index creation

    | Edit this page View Source

    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

    | Edit this page View Source

    PrimaryKey()

    Creates a primary key with a default name

    Declaration
    ICreateConstraintOnTableSyntax PrimaryKey()
    Returns
    Type Description
    ICreateConstraintOnTableSyntax

    Additional information about the primary key creation

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    UniqueConstraint()

    Creates an unique constraint with a default name

    Declaration
    ICreateConstraintOnTableSyntax UniqueConstraint()
    Returns
    Type Description
    ICreateConstraintOnTableSyntax

    Additional information about the unique constraint creation

    | Edit this page View Source

    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

    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.