語言

DbContextConfiguration.AutoDetectChangesEnabled 屬性

定義

取得或設定一個值,指示該方法是否 DetectChanges() 會被相關類別的方法 DbContext 自動呼叫。 預設值為 True。

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

屬性值

true若應自動呼叫;否則,。 false

適用於