Exemple #1
0
        static bool IsDeadlockException(DataException exception)
        {
            var baseException = exception.GetBaseException() as SqlException;

            return(baseException != null && baseException.Number == 1205);
        }
 static bool IsDeadlockException(DataException exception)
 {
     return(exception.GetBaseException() is SqlException baseException && baseException.Number == 1205);
 }