Skip to content

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

@roji

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)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions