SaveChanges circular dependency in unique unfiltered index (when change doesn't affect any column from unique index). #30601
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
regression
Servicing-approved
type-bug
Milestone
When using Attach and IsModified to update column without first fetching whole entity from database, SaveChanges throws circular dependency in unique unfiltered index, even if updated column is not part of the index. This code works fine in ef core 6.
Repro steps
Stack trace
Include provider and version information
EF Core version:
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 7.0.202, ef core 7.0.3 (it was working fine in ef core 6.*)
The text was updated successfully, but these errors were encountered: