语言

DbContextConfiguration.AutoDetectChangesEnabled 属性

定义

获取或设置一个值,该值指示方法是否 DetectChanges() 由方法 DbContext 和相关类自动调用。 默认值为真。

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

属性值

true 如果应自动调用,则为 ;否则,为 false.

适用于