Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added EntityFramework.Exceptions #3106

Merged
merged 1 commit into from
Feb 21, 2021
Merged

Added EntityFramework.Exceptions #3106

merged 1 commit into from
Feb 21, 2021

Conversation

Giorgi
Copy link
Contributor

@Giorgi Giorgi commented Feb 21, 2021

@roji roji merged commit e225519 into dotnet:master Feb 21, 2021
@roji
Copy link
Member

roji commented Feb 21, 2021

Thanks @Giorgi!

When using Entity Framework Core all database exceptions are wrapped in DbUpdateException. EntityFramework.Exceptions handles all the database-specific details to find which constraint was violated and allows you to use typed exceptions such as `UniqueConstraintException`,
`CannotInsertNullException`, `MaxLengthExceededException`, `NumericOverflowException`, `ReferenceConstraintException` when your query violates database constraints.

For EF Core: 3, 5. Supports SQL Server, Postgres, MySql, SQLite and Oracle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the support info up with the description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants