Giorgi / EntityFramework.Exceptions

Strongly typed exceptions for Entity Framework Core. Supports SQLServer, PostgreSQL, SQLite, Oracle and MySql.
https://giorgi.dev/entity-framework/introducing-entityframework-exceptions/
Other
1.45k stars 68 forks source link

Add reference constraint support for sql server only #7

Closed kaiserjpg closed 4 years ago

kaiserjpg commented 4 years ago

I want to add support for error 547 in sql server which is a reference constraint error, e.g. Server: Msg 547, Level 16, State 1, Line 1 DELETE statement conflicted with COLUMN REFERENCE constraint Constraint Name. The conflict occurred in database Database Name, table Table Name, column Column Name. The statement has been terminated.

This could also apply to other kind of constraint like CHECK CONSTRAINT, not only limited to FOREIGN KEY CONSTRAINTS.

kaiserjpg commented 4 years ago

@Giorgi do you think it would be possible to update the nuget package as well so I can get the latest changes? or do you have a timeline to publish it?

thanks!