SaveOptions.DelayValidation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets an indication if validation is delayed in the SaveChanges.
public bool DelayValidation { get; set; }
member this.DelayValidation : bool with get, set
Public Property DelayValidation As Boolean
Property Value
True, if validation is delayed; otherwise, false.
Remarks
When this option is enabled, all the pending model changes are packed in a batch containing Create/Alter/Delete/Rename/Process commands and sent to the Server, but no SequencePoint command is sent, which will delay the validation of changes on the Server.
This options can only be used inside a transaction, as any operation outside a transaction will cause implicit transaction to be created and committed on Server, which will trigger the validation anyway.