Can I validate the entities I've previously put to the context before making a call?
and eliminate the invalid ones to prevent me from receiving the
I have a list of roughly 3000 entities, some of which have faulty data that prevents me from saving any further entities. Instead of saving each object separately, I would prefer to ignore any that have problems.
In my search for a fix, I discovered that the validation may be turned off. I'd do it if I did it
Save the others and disregard the invalid ones?
Context.Configuration.ValidateOnSaveEnabled = false;
However, I would much rather call a function to activate entity validation and remove it from the environment. Perhaps I could validate an entity before adding it to the context? Better still would be this.