SchemaCompareScriptService.UpdateTargetDatabase メソッド

指定された配置計画およびその他のパラメーター値を使用してターゲット データベースを更新するために、Visual Studio Premium および Visual Studio Ultimate の [更新スクリプト ツール] ウィンドウで呼び出されます。

名前空間:  Microsoft.Data.Schema.Tools.Compare.Schema
アセンブリ:  Microsoft.Data.Schema.Tools (Microsoft.Data.Schema.Tools.dll 内)

構文

'宣言
Public Overridable Sub UpdateTargetDatabase ( _
    comparisonResult As ModelComparisonResult, _
    source As DataSchemaModel, _
    target As DataSchemaModel, _
    options As SchemaDeploymentOptions, _
    plan As DeploymentPlan, _
    <OutAttribute> ByRef errorsAndWarnings As ErrorManager _
)
public virtual void UpdateTargetDatabase(
    ModelComparisonResult comparisonResult,
    DataSchemaModel source,
    DataSchemaModel target,
    SchemaDeploymentOptions options,
    DeploymentPlan plan,
    out ErrorManager errorsAndWarnings
)
public:
virtual void UpdateTargetDatabase(
    ModelComparisonResult^ comparisonResult, 
    DataSchemaModel^ source, 
    DataSchemaModel^ target, 
    SchemaDeploymentOptions^ options, 
    DeploymentPlan^ plan, 
    [OutAttribute] ErrorManager^% errorsAndWarnings
)
abstract UpdateTargetDatabase : 
        comparisonResult:ModelComparisonResult * 
        source:DataSchemaModel * 
        target:DataSchemaModel * 
        options:SchemaDeploymentOptions * 
        plan:DeploymentPlan * 
        errorsAndWarnings:ErrorManager byref -> unit 
override UpdateTargetDatabase : 
        comparisonResult:ModelComparisonResult * 
        source:DataSchemaModel * 
        target:DataSchemaModel * 
        options:SchemaDeploymentOptions * 
        plan:DeploymentPlan * 
        errorsAndWarnings:ErrorManager byref -> unit 
public function UpdateTargetDatabase(
    comparisonResult : ModelComparisonResult, 
    source : DataSchemaModel, 
    target : DataSchemaModel, 
    options : SchemaDeploymentOptions, 
    plan : DeploymentPlan, 
    errorsAndWarnings : ErrorManager
)

パラメーター

解説

これは、UpdateTargetDatabase メソッドの基本プロセスです。

  1. OnBeforeUpdateTargetDatabase メソッドを呼び出します。

  2. CreateDeploymentController を呼び出して、配置マネージャーを取得します。

  3. 配置コントローラーで ISchemaDeploymentController.UpdateDatabase メソッドを呼び出します。

  4. errorsAndWarnings パラメーター値のすべてのエラーを記録します。

  5. OnAfterUpdateTargetDatabase メソッドを呼び出します。

  6. 最後に、RaiseSyncCompletedEvent メソッドを呼び出します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

SchemaCompareScriptService クラス

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

ModelComparisonResult

DataSchemaModel

SchemaDeploymentOptions

DeploymentPlan

ErrorManager

その他の技術情報

Visual Studio のデータベース機能の拡張