Skip to content

SQL Server: Scaffold HasTrigger if the table contains triggers #28185

Description

@roji

Since #27372, SaveChanges fails by default on SQL Server for tables with triggers. We could detect triggers when scaffolding and scaffold HasTrigger to make the database-first story smoother. This may be a bit tricky since HasTrigger is on TableBuilder rather than directly on EntityTypeBuilder (not sure if we already have the infra for scaffolding that).

Raised by @ErikEJ in ErikEJ/ErikEJ#1 (comment)

Activity

  1. added this to the 7.0.0 milestone on Jun 10, 2022
  2. added a commit that references this issue on Jun 16, 2022
    9e9c44d
  3. added 2 commits that reference this issue on Jun 16, 2022
    f4a1dd7
    d2e0750
  4. added a commit that references this issue on Jun 20, 2022
    8d08146
  5. modified the milestones: 7.0.0, on Jun 20, 2022
  6. modified the milestones: , 7.0.0 on Nov 5, 2022
  7. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions