語言

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 實例,應該被驗證。

傳回

確實,繼續驗證;否則就是錯誤的。

適用於