共用方式為


DacDeployOptions.DropConstraintsNotInSource 屬性

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

命名空間:  Microsoft.SqlServer.Dac
組件:  Microsoft.SqlServer.Dac (在 Microsoft.SqlServer.Dac.dll 中)

語法

'宣告
Public Property DropConstraintsNotInSource As Boolean 
    Get 
    Set
'用途
Dim instance As DacDeployOptions 
Dim value As Boolean 

value = instance.DropConstraintsNotInSource

instance.DropConstraintsNotInSource = value
public bool DropConstraintsNotInSource { get; set; }
public:
property bool DropConstraintsNotInSource {
    bool get ();
    void set (bool value);
}
member DropConstraintsNotInSource : bool with get, set
function get DropConstraintsNotInSource () : boolean 
function set DropConstraintsNotInSource (value : boolean)

屬性值

型別:System.Boolean
True to drop constraints not in the source model; otherwise, false. Default is true.

備註

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

請參閱

參考

DacDeployOptions 類別

Microsoft.SqlServer.Dac 命名空間