-> `SaveChangesFailed` and `SaveChangesFailedAsync` are not called for every exception. Starting with EF Core 7, a canceled operation calls <xref:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesCanceled*?displayProperty=nameWithType> or <xref:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesCanceledAsync*?displayProperty=nameWithType>. Starting with EF Core 8, a <xref:Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException> calls <xref:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.ThrowingConcurrencyException*?displayProperty=nameWithType> or <xref:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.ThrowingConcurrencyExceptionAsync*?displayProperty=nameWithType> before the exception is thrown. It does not call `SaveChangesFailed` or `SaveChangesFailedAsync`.
0 commit comments