Skip to content

Commit 2eda0ff

Browse files
Remove interceptor version qualifiers
Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
1 parent d2805e0 commit 2eda0ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎entity-framework/core/logging-events-diagnostics/interceptors.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ The audit entity is attached to the audit context, since it already exists in th
846846
Ordinary failures are handled in much the same way as success, but in the <xref:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesFailed*?displayProperty=nameWithType> or <xref:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesFailedAsync*?displayProperty=nameWithType> method. The event data contains the exception that was thrown.
847847

848848
> [!NOTE]
849-
> `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`.
849+
> `SaveChangesFailed` and `SaveChangesFailedAsync` are not called for every exception. A canceled operation calls <xref:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesCanceled*?displayProperty=nameWithType> or <xref:Microsoft.EntityFrameworkCore.Diagnostics.ISaveChangesInterceptor.SaveChangesCanceledAsync*?displayProperty=nameWithType>. 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`.
850850
851851
<!--
852852
public void SaveChangesFailed(DbContextErrorEventData eventData)

0 commit comments

Comments
 (0)