Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbContext.ShouldValidateEntity Method (DbEntityEntry)

Entity Framework 6.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 virtual bool ShouldValidateEntity(
	DbEntityEntry entityEntry
)

Parameters

entityEntry
Type: System.Data.Entity.Infrastructure.DbEntityEntry

DbEntityEntry instance that is supposed to be validated.

Return Value

Type: System.Boolean

true to proceed with validation; false otherwise.

Return to top
Show: