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.44k stars 68 forks source link

ORA-02292 as ReferenceConstraintException #28

Closed anoordover closed 3 years ago

anoordover commented 3 years ago

My PR for translating ORA-02292 as ReferenceConstraintException

Giorgi commented 3 years ago

Why did you add a new set of entities for testing?

anoordover commented 3 years ago

I needed a set of entities with “no action” on the delete for the foreign key. Adding this setting to the fk of productsale seemed to break other unittests.

Giorgi commented 3 years ago

I needed a set of entities with “no action” on the delete for the foreign key. Adding this setting to the fk of productsale seemed to break other unittests.

In that case, I think it's better to add only one new entity related to existing classes, for example, ProductPriceHistory

anoordover commented 3 years ago

@Giorgi I think I resolved your issues. I also implemented the mysql 1451 error-number (RowIsReferenced2).

anoordover commented 3 years ago

When/how will thuis become available in nuget?

Giorgi commented 3 years ago

I will publish it today

anoordover commented 3 years ago

This will be my first contribution to the C# open source community... Thank you for accepting my PR.

Giorgi commented 3 years ago

Thanks for your work!

Giorgi commented 3 years ago

@anoordover Here you go: https://www.nuget.org/packages/EntityFrameworkCore.Exceptions.Oracle/