public override Exception GetBaseException() { return(_exception.GetBaseException()); }
internal static bool IsPrimaryKeyViolation(this DbException exception) => (exception.GetBaseException() as SqlException)?.Errors.Cast <SqlError>().Any(e => e.Number == 2627) ?? false;