Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

DbContext.ShouldValidateEntity Method

Entity Framework 5.0

Extension point allowing the user to override the default behavior of validating only added and modified entities.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)
protected function ShouldValidateEntity(
	entityEntry : DbEntityEntry
) : boolean


Type: System.Data.Entity.Infrastructure.DbEntityEntry

DbEntityEntry instance that is supposed to be validated.

Return Value

Type: System.Boolean
true to proceed with validation, otherwise false.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.