DbContext.ShouldValidateEntity(DbEntityEntry) Method

Definition

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

protected virtual bool ShouldValidateEntity (System.Data.Entity.Infrastructure.DbEntityEntry entityEntry);
abstract member ShouldValidateEntity : System.Data.Entity.Infrastructure.DbEntityEntry -> bool
override this.ShouldValidateEntity : System.Data.Entity.Infrastructure.DbEntityEntry -> bool
Protected Overridable Function ShouldValidateEntity (entityEntry As DbEntityEntry) As Boolean

Parameters

entityEntry
DbEntityEntry

DbEntityEntry instance that is supposed to be validated.

Returns

true to proceed with validation; false otherwise.

Applies to