1 out of 5 rated this helpful - Rate this topic

DbContextConfiguration.ValidateOnSaveEnabled Property

Entity Framework 5.0

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
True if the tracked entities should be validated automatically; otherwise, false.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.