TPH + HasTrigger: Potential undocumented breaking change in EFC8 #31627
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Ask a question
We've just tried our Code with EFC8 and ran into the following issue:
The reason this occurs is due to the
BlankTriggerAddingConvention
workaround that was described in the EFC7 breaking changes that we've applied https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/breaking-changes#sql-server-tables-with-triggers-or-certain-computed-columns-now-require-special-ef-core-configurationThat workaround calls HasTrigger on every table which seems to be no longer allowed on every table in EFC8.
This change should be documented and a revised workaround provided.
Include provider and version information
EF Core version: 8.0 Preview 7
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 8.0 P7
Operating system: Windows 10
IDE: Visual Studio 2022 17.8P1
The text was updated successfully, but these errors were encountered: