KEMBAR78
Added EntityFramework.Exceptions by Giorgi · Pull Request #3106 · dotnet/EntityFramework.Docs · GitHub
Skip to content

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