Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ICreateBuilder

    Builds a Create expression.

    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface ICreateBuilder : IFluentBuilder

    Methods

    View Source

    Column(String)

    Builds a Create Column expression.

    Declaration
    ICreateColumnOnTableBuilder Column(string columnName)
    Parameters
    Type Name Description
    System.String columnName
    Returns
    Type Description
    ICreateColumnOnTableBuilder
    View Source

    Constraint(String)

    Builds a Create Constraint expression.

    Declaration
    ICreateConstraintOnTableBuilder Constraint(string constraintName)
    Parameters
    Type Name Description
    System.String constraintName
    Returns
    Type Description
    ICreateConstraintOnTableBuilder
    View Source

    ForeignKey()

    Builds a Create Foreign Key expression.

    Declaration
    ICreateForeignKeyFromTableBuilder ForeignKey()
    Returns
    Type Description
    ICreateForeignKeyFromTableBuilder
    View Source

    ForeignKey(String)

    Builds a Create Foreign Key expression.

    Declaration
    ICreateForeignKeyFromTableBuilder ForeignKey(string foreignKeyName)
    Parameters
    Type Name Description
    System.String foreignKeyName
    Returns
    Type Description
    ICreateForeignKeyFromTableBuilder
    View Source

    Index()

    Builds a Create Index expression.

    Declaration
    ICreateIndexForTableBuilder Index()
    Returns
    Type Description
    ICreateIndexForTableBuilder
    View Source

    Index(String)

    Builds a Create Index expression.

    Declaration
    ICreateIndexForTableBuilder Index(string indexName)
    Parameters
    Type Name Description
    System.String indexName
    Returns
    Type Description
    ICreateIndexForTableBuilder
    View Source

    KeysAndIndexes(Type)

    Builds a Create Keys and Indexes expression, and executes.

    Declaration
    IExecutableBuilder KeysAndIndexes(Type typeOfDto)
    Parameters
    Type Name Description
    Type typeOfDto
    Returns
    Type Description
    IExecutableBuilder
    View Source

    KeysAndIndexes<TDto>()

    Builds a Create Keys and Indexes expression, and executes.

    Declaration
    IExecutableBuilder KeysAndIndexes<TDto>()
    Returns
    Type Description
    IExecutableBuilder
    Type Parameters
    Name Description
    TDto
    View Source

    PrimaryKey()

    Builds a Create Primary Key expression.

    Declaration
    ICreateConstraintOnTableBuilder PrimaryKey()
    Returns
    Type Description
    ICreateConstraintOnTableBuilder
    View Source

    PrimaryKey(Boolean)

    Builds a Create Primary Key expression.

    Declaration
    ICreateConstraintOnTableBuilder PrimaryKey(bool clustered)
    Parameters
    Type Name Description
    System.Boolean clustered
    Returns
    Type Description
    ICreateConstraintOnTableBuilder
    View Source

    PrimaryKey(String)

    Builds a Create Primary Key expression.

    Declaration
    ICreateConstraintOnTableBuilder PrimaryKey(string primaryKeyName)
    Parameters
    Type Name Description
    System.String primaryKeyName
    Returns
    Type Description
    ICreateConstraintOnTableBuilder
    View Source

    PrimaryKey(String, Boolean)

    Builds a Create Primary Key expression.

    Declaration
    ICreateConstraintOnTableBuilder PrimaryKey(string primaryKeyName, bool clustered)
    Parameters
    Type Name Description
    System.String primaryKeyName
    System.Boolean clustered
    Returns
    Type Description
    ICreateConstraintOnTableBuilder
    View Source

    Table(String)

    Builds a Create Table expression.

    Declaration
    ICreateTableWithColumnBuilder Table(string tableName)
    Parameters
    Type Name Description
    System.String tableName
    Returns
    Type Description
    ICreateTableWithColumnBuilder
    View Source

    Table<TDto>(Boolean)

    Builds a Create Table expression, and executes.

    Declaration
    IExecutableBuilder Table<TDto>(bool withoutKeysAndIndexes = false)
    Parameters
    Type Name Description
    System.Boolean withoutKeysAndIndexes
    Returns
    Type Description
    IExecutableBuilder
    Type Parameters
    Name Description
    TDto
    View Source

    UniqueConstraint()

    Builds a Create Unique Constraint expression.

    Declaration
    ICreateConstraintOnTableBuilder UniqueConstraint()
    Returns
    Type Description
    ICreateConstraintOnTableBuilder
    View Source

    UniqueConstraint(String)

    Builds a Create Unique Constraint expression.

    Declaration
    ICreateConstraintOnTableBuilder UniqueConstraint(string constraintName)
    Parameters
    Type Name Description
    System.String constraintName
    Returns
    Type Description
    ICreateConstraintOnTableBuilder
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Column(String)
      • Constraint(String)
      • ForeignKey()
      • ForeignKey(String)
      • Index()
      • Index(String)
      • KeysAndIndexes(Type)
      • KeysAndIndexes<TDto>()
      • PrimaryKey()
      • PrimaryKey(Boolean)
      • PrimaryKey(String)
      • PrimaryKey(String, Boolean)
      • Table(String)
      • Table<TDto>(Boolean)
      • UniqueConstraint()
      • UniqueConstraint(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX