共用方式為


SqlDeploymentOptions.DropConstraintsNotInSource 屬性

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

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

語法

'宣告
Public ReadOnly Property DropConstraintsNotInSource As Boolean 
    Get
'用途
Dim instance As SqlDeploymentOptions 
Dim value As Boolean 

value = instance.DropConstraintsNotInSource
public bool DropConstraintsNotInSource { get; }
public:
property bool DropConstraintsNotInSource {
    bool get ();
}
member DropConstraintsNotInSource : bool
function get DropConstraintsNotInSource () : 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.

請參閱

參考

SqlDeploymentOptions 類別

Microsoft.SqlServer.Dac.Deployment 命名空間