語言

DbContextConfiguration.ValidateOnSaveEnabled 屬性

定義

取得或設定一個值,指示在調用時 SaveChanges() 是否應自動驗證追蹤實體。 預設值為 True。

public bool ValidateOnSaveEnabled { get; set; }
member this.ValidateOnSaveEnabled : bool with get, set
Public Property ValidateOnSaveEnabled As Boolean

屬性值

適用於