SchemaCompareScriptService.UpdateTargetProject Method
When overridden in a derived class, updates the given target project by using the other parameter values.
Namespace: Microsoft.Data.Schema.Tools.Compare.Schema
Assembly: Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)
Syntax
'Declaration
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
)
Parameters
- comparisonResult
Type: Microsoft.Data.Schema.SchemaModel.ModelComparisonResult
The ModelComparisonResult object.
- source
Type: Microsoft.Data.Schema.SchemaModel.DataSchemaModel
The source DataSchemaModel object.
- target
Type: Microsoft.Data.Schema.SchemaModel.DataSchemaModel
The target DataSchemaModel object.
- excludedElements
Type: System.Collections.Generic.HashSet<IModelElement>
A HashSet<T> that contains the IModelElement objects that are excluded by the user in the UI.
- sourceModelProvider
Type: Microsoft.Data.Schema.Tools.Compare.Schema.ISchemaCompareModelProvider
An ISchemaCompareModelProvider that represents the source model provider.
- targetModelProvider
Type: Microsoft.Data.Schema.Tools.Compare.Schema.ISchemaCompareModelProvider
An ISchemaCompareModelProvider that represents the target model provider.
- configurationOptions
Type: Microsoft.Data.Schema.Build.SchemaDeploymentOptions
The SchemaDeploymentOptions object that represents the configuration values that are used to update the target database.
- plan
Type: Microsoft.Data.Schema.Build.DeploymentPlan
The DeploymentPlan.
- errorsAndWarnings
Type: Microsoft.Data.Schema.ErrorManager%
An ErrorManager to collect any errors that occur during the update process.
Remarks
This method currently does nothing, but is available for derived classes to implement their own custom update project implementation.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
SchemaCompareScriptService Class