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