共用方式為


SchemaCompareScriptService.OnBeforeUpdateTargetDatabase 方法

UpdateTargetDatabase 方法呼叫,以在更新目標資料庫之前,提供 DatabaseSchemaProvider 對參數值的存取。

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

語法

'宣告
Protected Overridable Sub OnBeforeUpdateTargetDatabase ( _
    comparisonResult As ModelComparisonResult, _
    source As DataSchemaModel, _
    target As DataSchemaModel, _
    options As SchemaDeploymentOptions, _
    plan As DeploymentPlan _
)
protected virtual void OnBeforeUpdateTargetDatabase(
    ModelComparisonResult comparisonResult,
    DataSchemaModel source,
    DataSchemaModel target,
    SchemaDeploymentOptions options,
    DeploymentPlan plan
)
protected:
virtual void OnBeforeUpdateTargetDatabase(
    ModelComparisonResult^ comparisonResult, 
    DataSchemaModel^ source, 
    DataSchemaModel^ target, 
    SchemaDeploymentOptions^ options, 
    DeploymentPlan^ plan
)
abstract OnBeforeUpdateTargetDatabase : 
        comparisonResult:ModelComparisonResult * 
        source:DataSchemaModel * 
        target:DataSchemaModel * 
        options:SchemaDeploymentOptions * 
        plan:DeploymentPlan -> unit 
override OnBeforeUpdateTargetDatabase : 
        comparisonResult:ModelComparisonResult * 
        source:DataSchemaModel * 
        target:DataSchemaModel * 
        options:SchemaDeploymentOptions * 
        plan:DeploymentPlan -> unit 
protected function OnBeforeUpdateTargetDatabase(
    comparisonResult : ModelComparisonResult, 
    source : DataSchemaModel, 
    target : DataSchemaModel, 
    options : SchemaDeploymentOptions, 
    plan : DeploymentPlan
)

參數

備註

預設實作不會執行任何動作,但可讓衍生類別使用。

.NET Framework 安全性

請參閱

參考

SchemaCompareScriptService 類別

Microsoft.Data.Schema.Tools.Compare.Schema 命名空間

UpdateTargetDatabase

DatabaseSchemaProvider

ModelComparisonResult

DataSchemaModel

SchemaDeploymentOptions

DeploymentPlan