Share via


DacDeployOptions.GenerateSmartDefaults Property

Definition

Get or set boolean that specifies whether default values should be generated to populate NULL columns that are constrained to NOT NULL values.

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

Property Value

True if default values should be generated; otherwise false. Default is false.

Attributes

Remarks

This is useful when needing to add a new NOT NULL column to an existing table with data.

Applies to