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?
Join Stack Overflow to learn, share knowledge, and build your career.
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?