SchemaCompareScriptService.OnFinishGeneratePlan 方法
由 GenerateUpdatePlan 方法呼叫,以在產生更新計劃而且收集錯誤之後,提供 DatabaseSchemaProvider 對部署控制器的存取。
命名空間: Microsoft.Data.Schema.Tools.Compare.Schema
組件: Microsoft.Data.Schema.Tools (在 Microsoft.Data.Schema.Tools.dll 中)
語法
'宣告
Protected Overridable Sub OnFinishGeneratePlan ( _
comparisonResult As ModelComparisonResult, _
source As DataSchemaModel, _
target As DataSchemaModel, _
excludedElements As HashSet(Of IModelElement), _
sourceModelProvider As ISchemaCompareModelProvider, _
targetModelProvider As ISchemaCompareModelProvider, _
configurationOptions As SchemaDeploymentOptions, _
plan As DeploymentPlan, _
errorsAndWarnings As ErrorManager _
)
protected virtual void OnFinishGeneratePlan(
ModelComparisonResult comparisonResult,
DataSchemaModel source,
DataSchemaModel target,
HashSet<IModelElement> excludedElements,
ISchemaCompareModelProvider sourceModelProvider,
ISchemaCompareModelProvider targetModelProvider,
SchemaDeploymentOptions configurationOptions,
DeploymentPlan plan,
ErrorManager errorsAndWarnings
)
protected:
virtual void OnFinishGeneratePlan(
ModelComparisonResult^ comparisonResult,
DataSchemaModel^ source,
DataSchemaModel^ target,
HashSet<IModelElement^>^ excludedElements,
ISchemaCompareModelProvider^ sourceModelProvider,
ISchemaCompareModelProvider^ targetModelProvider,
SchemaDeploymentOptions^ configurationOptions,
DeploymentPlan^ plan,
ErrorManager^ errorsAndWarnings
)
abstract OnFinishGeneratePlan :
comparisonResult:ModelComparisonResult *
source:DataSchemaModel *
target:DataSchemaModel *
excludedElements:HashSet<IModelElement> *
sourceModelProvider:ISchemaCompareModelProvider *
targetModelProvider:ISchemaCompareModelProvider *
configurationOptions:SchemaDeploymentOptions *
plan:DeploymentPlan *
errorsAndWarnings:ErrorManager -> unit
override OnFinishGeneratePlan :
comparisonResult:ModelComparisonResult *
source:DataSchemaModel *
target:DataSchemaModel *
excludedElements:HashSet<IModelElement> *
sourceModelProvider:ISchemaCompareModelProvider *
targetModelProvider:ISchemaCompareModelProvider *
configurationOptions:SchemaDeploymentOptions *
plan:DeploymentPlan *
errorsAndWarnings:ErrorManager -> unit
protected function OnFinishGeneratePlan(
comparisonResult : ModelComparisonResult,
source : DataSchemaModel,
target : DataSchemaModel,
excludedElements : HashSet<IModelElement>,
sourceModelProvider : ISchemaCompareModelProvider,
targetModelProvider : ISchemaCompareModelProvider,
configurationOptions : SchemaDeploymentOptions,
plan : DeploymentPlan,
errorsAndWarnings : ErrorManager
)
參數
- comparisonResult
型別:Microsoft.Data.Schema.SchemaModel.ModelComparisonResult
ModelComparisonResult 物件。
- source
型別:Microsoft.Data.Schema.SchemaModel.DataSchemaModel
來源 DataSchemaModel 物件。
- target
型別:Microsoft.Data.Schema.SchemaModel.DataSchemaModel
目標 DataSchemaModel 物件。
- excludedElements
型別:System.Collections.Generic.HashSet<IModelElement>
HashSet<T> ,包含使用者在使用者介面 (UI) 中排除的 IModelElement 物件。
- sourceModelProvider
型別:Microsoft.Data.Schema.Tools.Compare.Schema.ISchemaCompareModelProvider
ISchemaCompareModelProvider ,表示來源模型提供者。
- targetModelProvider
型別:Microsoft.Data.Schema.Tools.Compare.Schema.ISchemaCompareModelProvider
ISchemaCompareModelProvider ,表示目標模型提供者。
- configurationOptions
型別:Microsoft.Data.Schema.Build.SchemaDeploymentOptions
SchemaDeploymentOptions 物件,表示用來更新目標資料庫的組態值。
- errorsAndWarnings
型別:Microsoft.Data.Schema.ErrorManager
ErrorManager 物件,包含「結構描述比較」產生計劃時發生的任何錯誤。
備註
預設實作不會執行任何動作,但可讓衍生類別使用。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。