Ejemplo n.º 1
0
 /// <summary>
 ///     Called when an exception has been thrown in <see cref="M:DbContext.SaveChangesAsync"/>.
 /// </summary>
 /// <param name="eventData"> Contextual information about the failure. </param>
 /// <param name="cancellationToken"> The cancellation token. </param>
 /// <returns> A <see cref="Task" /> representing the asynchronous operation. </returns>
 public virtual Task SaveChangesFailedAsync(
     DbContextErrorEventData eventData,
     CancellationToken cancellationToken = default)
 => Task.CompletedTask;
Ejemplo n.º 2
0
 /// <summary>
 ///     Called when an exception has been thrown in <see cref="O:DbContext.SaveChanges" />.
 /// </summary>
 /// <param name="eventData">Contextual information about the failure.</param>
 public virtual void SaveChangesFailed(DbContextErrorEventData eventData)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Called when an exception has been thrown in <see cref="M:DbContext.SaveChangesAsync"/>.
 /// </summary>
 /// <param name="eventData"> Contextual information about the failure. </param>
 /// <param name="cancellationToken"> The cancellation token. </param>
 /// <returns> A <see cref="Task" /> representing the asynchronous operation. </returns>
 public virtual ValueTask SaveChangesFailedAsync(
     DbContextErrorEventData eventData,
     CancellationToken cancellationToken = default)
 => new ValueTask();