Export (0) Print
Expand All

DbContextConfiguration.ValidateOnSaveEnabled Property

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Gets or sets a value indicating whether tracked entities should be validated automatically when SaveChanges() is invoked. The default value is true.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public bool ValidateOnSaveEnabled { get; set; }

Property Value

Type: System.Boolean
Show:
© 2014 Microsoft