Search Results for

    Show / Hide Table of Contents

    Class MySQLDropUniqueConstraintAndRecreateForeignKeysOperation

    A migration operation for dropping a unique constraint and recreating foreign keys.

    Inheritance
    System.Object
    Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase
    Microsoft.EntityFrameworkCore.Infrastructure.Annotatable
    Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation
    Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation
    MySQLDropUniqueConstraintAndRecreateForeignKeysOperation
    Implements
    Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
    Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable
    Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
    Microsoft.EntityFrameworkCore.Migrations.Operations.ITableMigrationOperation
    Namespace: MySql.EntityFrameworkCore.Migrations.Operations
    Assembly: MySql.EntityFrameworkCore.dll
    Version: 9.3.0
    Syntax
    public class MySQLDropUniqueConstraintAndRecreateForeignKeysOperation : DropUniqueConstraintOperation, IAnnotatable, IMutableAnnotatable, IReadOnlyAnnotatable, ITableMigrationOperation

    Properties

    RecreateForeignKeys

    Recreate all foreign keys or not.

    Declaration
    public virtual bool RecreateForeignKeys { get; set; }
    Property Value
    Type Description
    System.Boolean

    Implements

    Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
    Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable
    Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
    Microsoft.EntityFrameworkCore.Migrations.Operations.ITableMigrationOperation
    In This Article
    • Properties
      • RecreateForeignKeys
    • Implements
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.