DacDeployOptions.BlockWhenDriftDetected 属性

定义

获取或设置布尔值,该值指定系统是否检查数据库的当前状态与数据库的注册状态之间的差异,以及检测到更改时阻止部署。 即使此选项设置为 true,也只会在数据库上执行偏移检测(如果以前 RegisterDataTierApplication 部署了启用该选项)。

public bool BlockWhenDriftDetected { get; set; }
[Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "BlockWhenDriftDetected")]
public bool BlockWhenDriftDetected { get; set; }
member this.BlockWhenDriftDetected : bool with get, set
[<Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "BlockWhenDriftDetected")>]
member this.BlockWhenDriftDetected : bool with get, set
Public Property BlockWhenDriftDetected As Boolean

属性值

检测到偏差为 True 到错误;否则为 false。 默认值为 true。

属性

适用于