Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeleteBuilder

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class DeleteBuilder : IDeleteBuilder, IFluentBuilder

    Constructors

    View Source

    DeleteBuilder(IMigrationContext)

    Declaration
    public DeleteBuilder(IMigrationContext context)
    Parameters
    Type Name Description
    IMigrationContext context

    Methods

    View Source

    Column(String)

    Specifies the column to delete.

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

    DefaultConstraint()

    Specifies the default constraint to delete.

    Declaration
    public IDeleteDefaultConstraintOnTableBuilder DefaultConstraint()
    Returns
    Type Description
    IDeleteDefaultConstraintOnTableBuilder
    View Source

    ForeignKey()

    Specifies the foreign key to delete.

    Declaration
    public IDeleteForeignKeyFromTableBuilder ForeignKey()
    Returns
    Type Description
    IDeleteForeignKeyFromTableBuilder
    View Source

    ForeignKey(String)

    Specifies the foreign key to delete.

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

    FromTable(String)

    Specifies the table to delete data from.

    Declaration
    public IDeleteDataBuilder FromTable(string tableName)
    Parameters
    Type Name Description
    System.String tableName
    Returns
    Type Description
    IDeleteDataBuilder
    View Source

    Index()

    Specifies the index to delete.

    Declaration
    public IDeleteIndexForTableBuilder Index()
    Returns
    Type Description
    IDeleteIndexForTableBuilder
    View Source

    Index(String)

    Specifies the index to delete.

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

    KeysAndIndexes(String, Boolean, Boolean)

    Builds a Delete Keys and Indexes expression, and executes.

    Declaration
    public IExecutableBuilder KeysAndIndexes(string tableName, bool local = true, bool foreign = true)
    Parameters
    Type Name Description
    System.String tableName
    System.Boolean local
    System.Boolean foreign
    Returns
    Type Description
    IExecutableBuilder
    View Source

    KeysAndIndexes<TDto>(Boolean, Boolean)

    Builds a Delete Keys and Indexes expression, and executes.

    Declaration
    public IExecutableBuilder KeysAndIndexes<TDto>(bool local = true, bool foreign = true)
    Parameters
    Type Name Description
    System.Boolean local
    System.Boolean foreign
    Returns
    Type Description
    IExecutableBuilder
    Type Parameters
    Name Description
    TDto
    View Source

    PrimaryKey(String)

    Specifies the primary key to delete.

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

    Table(String)

    Specifies the table to delete.

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

    UniqueConstraint(String)

    Specifies the unique constraint to delete.

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