共用方式為


SqlSchemaDeploymentOptions.DropIndexesNotInSource 屬性

取得或設定值,這個值表示部署變更時是否應捨棄只會出現在目標資料庫中的索引。

命名空間:  Microsoft.Data.Schema.Sql.Build
組件:  Microsoft.Data.Schema.Sql (在 Microsoft.Data.Schema.Sql.dll 中)

語法

'宣告
Public Property DropIndexesNotInSource As Boolean
    Get
    Set
public bool DropIndexesNotInSource { get; set; }
public:
property bool DropIndexesNotInSource {
    bool get ();
    void set (bool value);
}
member DropIndexesNotInSource : bool with get, set
function get DropIndexesNotInSource () : boolean
function set DropIndexesNotInSource (value : boolean)

屬性值

型別:System.Boolean

.NET Framework 安全性

請參閱

參考

SqlSchemaDeploymentOptions 類別

Microsoft.Data.Schema.Sql.Build 命名空間