DbContextConfiguration.AutoDetectChangesEnabled 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值, DetectChanges() 该值指示 方法是否由 和相关类的方法 DbContext 自动调用。 默认值为 true。
public bool AutoDetectChangesEnabled { get; set; }
member this.AutoDetectChangesEnabled : bool with get, set
Public Property AutoDetectChangesEnabled As Boolean
属性值
true
如果应自动调用 ,则为 ;否则为 false
。