Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeleteForeignKeyExpression

    Represents a database migration expression that deletes a foreign key constraint from a table.

    Inheritance
    object
    MigrationExpressionBase
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Expressions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class DeleteForeignKeyExpression : MigrationExpressionBase, IMigrationExpression

    Constructors

    View Source

    DeleteForeignKeyExpression(IMigrationContext)

    Initializes a new instance of the DeleteForeignKeyExpression class, used to define a database migration expression for deleting a foreign key.

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

    The migration context that provides information and services for the migration process.

    Properties

    View Source

    ForeignKey

    Gets or sets the definition of the foreign key that will be deleted by this expression.

    Declaration
    public ForeignKeyDefinition ForeignKey { get; set; }
    Property Value
    Type Description
    ForeignKeyDefinition

    Methods

    View Source

    GetSql()

    Declaration
    protected override string GetSql()
    Returns
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX