CoreLoggerExtensions.OptimisticConcurrencyException Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
OptimisticConcurrencyException(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, Exception)
Registra l'evento OptimisticConcurrencyException .
public static void OptimisticConcurrencyException (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, Exception exception);
static member OptimisticConcurrencyException : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext * Exception -> unit
<Extension()>
Public Sub OptimisticConcurrencyException (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext, exception As Exception)
Parametri
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Update>
Logger di diagnostica da usare.
- context
- DbContext
Contesto in uso.
- exception
- Exception
Eccezione che ha causato questo evento.
Si applica a
OptimisticConcurrencyException(IDiagnosticsLogger<DbLoggerCategory.Update>, DbContext, IReadOnlyList<IUpdateEntry>, DbUpdateConcurrencyException, Func<DbContext,DbUpdateConcurrencyException,IReadOnlyList<IUpdateEntry>, EventDefinition<Exception>,ConcurrencyExceptionEventData>)
Registra l'evento OptimisticConcurrencyException .
public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult OptimisticConcurrencyException (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries, Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException exception, Func<Microsoft.EntityFrameworkCore.DbContext,Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException,System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry>,Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<Exception>,Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData>? createEventData);
static member OptimisticConcurrencyException : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> * Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException * Func<Microsoft.EntityFrameworkCore.DbContext, Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry>, Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<Exception>, Microsoft.EntityFrameworkCore.Diagnostics.ConcurrencyExceptionEventData> -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
<Extension()>
Public Function OptimisticConcurrencyException (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext, entries As IReadOnlyList(Of IUpdateEntry), exception As DbUpdateConcurrencyException, createEventData As Func(Of DbContext, DbUpdateConcurrencyException, IReadOnlyList(Of IUpdateEntry), EventDefinition(Of Exception), ConcurrencyExceptionEventData)) As InterceptionResult
Parametri
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Update>
Logger di diagnostica da usare.
- context
- DbContext
Contesto in uso.
- entries
- IReadOnlyList<IUpdateEntry>
Voci coinvolte nella violazione della concorrenza.
- exception
- DbUpdateConcurrencyException
Eccezione che ha causato questo evento.
- createEventData
- Func<DbContext,DbUpdateConcurrencyException,IReadOnlyList<IUpdateEntry>,EventDefinition<Exception>,ConcurrencyExceptionEventData>
Delegato facoltativo per eseguire l'override della creazione dei dati dell'evento.