语言

DbContext.ShouldValidateEntity(DbEntityEntry) 方法

定义

扩展点允许用户替代仅验证添加和修改的实体的默认行为。

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

参数

entityEntry
DbEntityEntry

应验证的 DbEntityEntry 实例。

返回

true 以继续验证;否则为 false。

适用于