What to use instead DbEntityValidationException in EF Core?

Viewed 2285

With EF I used DbEntityValidationException catch branch (along with others)

catch (DbEntityValidationException exception)
{
    // any statements here...
    throw;
}

Now using .NET Core 3.17 with EF Core 3.17 and apparently there is no DbEntityValidationException and also reviewed EF Core 3.17 sources, and no traces of that exception type. (Note, I am not only talking about where it is defined, I mean it is not thrown any places in the EF Core 3.17 sources)

Question

How to migrate the code above to EF Core 3.17?

0 Answers
Related