DacDeployOptions.CreateNewDatabase 属性

定义

获取或设置一个布尔值,用于指定是否要删除现有数据库并在继续执行实际部署操作之前创建新数据库。 在删除现有数据库之前获取单用户模式。

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

属性值

如果删除并重新创建该数据库,则为 true;否则为 false。 默认值为 false。

属性

适用于