DacDeployOptions.DropConstraintsNotInSource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.