On EF6 it is possible to temporarily disable entity validation:
context.Configuration.ValidateOnSaveEnabled = false;
context.SaveChanges();
context.Configuration.ValidateOnSaveEnabled = true;
How can we achieve this in EF7?
There is no validation in EF7 / EF Core.
See this github issue for more info: https://github.com/dotnet/efcore/issues/5224
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With