Sep 20, 2018 07:17 AM|Brando ZWZ|LINK
As far as I know, there are four possible checks that can be applied to data before it is written to the database. Three of these are inside EF and are easy to set up while the last one involved capturing errors reported by the underlying database.
So I suggest you could follow below article to know how to catch the bad data in EF core.
More details, you could refer to below article.