Skip to content

Commit b943279

Browse files
committed
DeadLock -> Deadlock
1 parent 1d8660e commit b943279

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EntityFramework.Exceptions/Common/ExceptionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal static Exception Create<T>(ExceptionProcessorInterceptor<T>.DatabaseErr
1616
ExceptionProcessorInterceptor<T>.DatabaseError.NumericOverflow => new NumericOverflowException("Numeric overflow", exception.InnerException, entries),
1717
ExceptionProcessorInterceptor<T>.DatabaseError.ReferenceConstraint => new ReferenceConstraintException("Reference constraint violation", exception.InnerException, entries),
1818
ExceptionProcessorInterceptor<T>.DatabaseError.UniqueConstraint => new UniqueConstraintException("Unique constraint violation", exception.InnerException, entries),
19-
ExceptionProcessorInterceptor<T>.DatabaseError.DeadLock => new DeadlockException("Deadlock", exception.InnerException, entries),
19+
ExceptionProcessorInterceptor<T>.DatabaseError.Deadlock => new DeadlockException("Deadlock", exception.InnerException, entries),
2020
_ => null,
2121
};
2222
}

EntityFramework.Exceptions/Common/ExceptionProcessorInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void CommandFailed(DbCommand command, CommandErrorEventData eventData)
6060
if (exceptionClassifier.IsCannotInsertNullError(dbException)) return DatabaseError.CannotInsertNull;
6161
if (exceptionClassifier.IsUniqueConstraintError(dbException)) return DatabaseError.UniqueConstraint;
6262
if (exceptionClassifier.IsReferenceConstraintError(dbException)) return DatabaseError.ReferenceConstraint;
63-
if (exceptionClassifier.IsDeadlockError(dbException)) return DatabaseError.DeadLock;
63+
if (exceptionClassifier.IsDeadlockError(dbException)) return DatabaseError.Deadlock;
6464

6565
return null;
6666
}

0 commit comments

Comments
 (0)