DacDeployOptions.GenerateSmartDefaults 属性

定义

获取或设置一个布尔值,该值指定是否应该为了填充被约束为 NOT NULL 值的 NULL 列而生成默认值。

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

属性值

如果应生成默认值,则为 true;否则为 false。 默认值为 false。

属性

注解

需要向包含数据的现有表添加新的 NOT NULL 列时,这十分有用。

适用于