DbContext.ShouldValidateEntity(DbEntityEntry) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擴充點允許使用者覆寫僅驗證新增及修改實體的預設行為。
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 實例,應該被驗證。
傳回
確實,繼續驗證;否則就是錯誤的。