Skip to content

Commit

Permalink
Merge pull request #74 from tacosoncontributing/grammar-improvement
Browse files Browse the repository at this point in the history
Improved grammar under product description in README.
  • Loading branch information
Giorgi authored Jul 11, 2024
2 parents 3d9eff8 + fb527f8 commit d1c0a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ whether the exception was caused by a unique constraint, value being too long or
the concrete `DbException` subclass instance and check the error code to determine the exact cause.

EntityFramework.Exceptions simplifies this by handling all the database specific details and throwing different exceptions. All you have
to do is to configure `DbContext` by calling `UseExceptionProcessor` and handle the exception(s) such as `UniqueConstraintException`,
`CannotInsertNullException`, `MaxLengthExceededException`, `NumericOverflowException`, `ReferenceConstraintException` you need.
to do is to configure `DbContext` by calling `UseExceptionProcessor` and handle the exception(s) you need, such as `UniqueConstraintException`,
`CannotInsertNullException`, `MaxLengthExceededException`, `NumericOverflowException`, or `ReferenceConstraintException`.

In case of `UniqueConstraintException` and `ReferenceConstraintException` you can get the name of the associated constraint with **`ConstraintName`** property. The **`ConstraintProperties`** will contain the properties that are part of the constraint.

Expand Down

0 comments on commit d1c0a14

Please sign in to comment.