Method | Description | |
---|---|---|
IsUniqueViolation ( this db, |
Checks is the exception was thrown because an unique constraint was violated. Can be used to implement idempotency e.g you can treat primary key violations as duplicate operations
|
public static IsUniqueViolation ( this db, |
||
db | this | |
ex | ||
keyName | string | |
return | bool |