DacDeployOptions.DropConstraintsNotInSource Property

Definition

Get or set boolean that specifies whether to drop all constraints that do not exist in the source model.

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

Property Value

True to drop constraints not in the source model; otherwise, false. Default is true.

Attributes

Remarks

This applies to check, default, foreign key, primary key, and unique constraints.

Applies to