DbContextConfiguration.AutoDetectChangesEnabled 属性

定义

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

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

属性值

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

适用于