SchemaCompareScriptService.UpdateTargetProject 方法
在衍生類別中覆寫時,使用其他參數值來更新指定的目標專案。
命名空間: Microsoft.Data.Schema.Tools.Compare.Schema
組件: Microsoft.Data.Schema.Tools (在 Microsoft.Data.Schema.Tools.dll 中)
語法
'宣告
Public Overridable Sub UpdateTargetProject ( _
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, _
<OutAttribute> ByRef errorsAndWarnings As ErrorManager _
)
public virtual void UpdateTargetProject(
ModelComparisonResult comparisonResult,
DataSchemaModel source,
DataSchemaModel target,
HashSet<IModelElement> excludedElements,
ISchemaCompareModelProvider sourceModelProvider,
ISchemaCompareModelProvider targetModelProvider,
SchemaDeploymentOptions configurationOptions,
DeploymentPlan plan,
out ErrorManager errorsAndWarnings
)
public:
virtual void UpdateTargetProject(
ModelComparisonResult^ comparisonResult,
DataSchemaModel^ source,
DataSchemaModel^ target,
HashSet<IModelElement^>^ excludedElements,
ISchemaCompareModelProvider^ sourceModelProvider,
ISchemaCompareModelProvider^ targetModelProvider,
SchemaDeploymentOptions^ configurationOptions,
DeploymentPlan^ plan,
[OutAttribute] ErrorManager^% errorsAndWarnings
)
abstract UpdateTargetProject :
comparisonResult:ModelComparisonResult *
source:DataSchemaModel *
target:DataSchemaModel *
excludedElements:HashSet<IModelElement> *
sourceModelProvider:ISchemaCompareModelProvider *
targetModelProvider:ISchemaCompareModelProvider *
configurationOptions:SchemaDeploymentOptions *
plan:DeploymentPlan *
errorsAndWarnings:ErrorManager byref -> unit
override UpdateTargetProject :
comparisonResult:ModelComparisonResult *
source:DataSchemaModel *
target:DataSchemaModel *
excludedElements:HashSet<IModelElement> *
sourceModelProvider:ISchemaCompareModelProvider *
targetModelProvider:ISchemaCompareModelProvider *
configurationOptions:SchemaDeploymentOptions *
plan:DeploymentPlan *
errorsAndWarnings:ErrorManager byref -> unit
public function UpdateTargetProject(
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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。