DacDeployOptions.GenerateSmartDefaults 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个布尔值,该值指定是否应该为了填充被约束为 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 列时,这十分有用。