Skip to content

Setting SYSTEM_VERSIONING to ON failed. #14

@PatPat1567

Description

@PatPat1567

Error Message: Setting SYSTEM_VERSIONING to ON failed because table '{name}' has a FOREIGN KEY with cascading DELETE or UPDATE.

The error occurs when I add a DbSet to the DbContext file and try to implement the migration. The table that is failing is not necessarily the same each time I run the update-database command in the Package Manager Console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions