共用方式為


DacDeployOptions.BackupDatabaseBeforeChanges 屬性

定義

取得或設定布林值,指定是否要在繼續實際部署動作之前執行資料庫備份。

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

屬性值

True 表示在部署之前執行資料庫備份,否則為 false。 預設值為 false。

屬性

適用於