How to temporarily disable entity validation on EF 7?

entity-framework entity-framework-core

Question

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?

1
6
2/7/2016 12:38:14 AM

Accepted Answer

There is no validation in EF7/ EF Core

7
2/7/2016 7:46:51 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow