SchemaCompareScriptService.UpdateTargetDatabase Method
Updates the target database.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.SchemaAndDataCompare.Extensibility
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Overridable Sub UpdateTargetDatabase ( _
comparisonResult As ModelComparisonResult, _
source As DataSchemaModel, _
target As DataSchemaModel, _
excludedElements As HashSet(Of IModelElement), _
sourceModelProvider As IModelProvider, _
targetModelProvider As IModelProvider, _
configurationOptions As PlanGenerationOptions, _
script As String, _
<OutAttribute> ByRef errorsAndWarnings As ErrorManager _
)
'Usage
Dim instance As SchemaCompareScriptService
Dim comparisonResult As ModelComparisonResult
Dim source As DataSchemaModel
Dim target As DataSchemaModel
Dim excludedElements As HashSet(Of IModelElement)
Dim sourceModelProvider As IModelProvider
Dim targetModelProvider As IModelProvider
Dim configurationOptions As PlanGenerationOptions
Dim script As String
Dim errorsAndWarnings As ErrorManager
instance.UpdateTargetDatabase(comparisonResult, _
source, target, excludedElements, _
sourceModelProvider, targetModelProvider, _
configurationOptions, script, errorsAndWarnings)
public virtual void UpdateTargetDatabase(
ModelComparisonResult comparisonResult,
DataSchemaModel source,
DataSchemaModel target,
HashSet<IModelElement> excludedElements,
IModelProvider sourceModelProvider,
IModelProvider targetModelProvider,
PlanGenerationOptions configurationOptions,
string script,
out ErrorManager errorsAndWarnings
)
public:
virtual void UpdateTargetDatabase(
ModelComparisonResult^ comparisonResult,
DataSchemaModel^ source,
DataSchemaModel^ target,
HashSet<IModelElement^>^ excludedElements,
IModelProvider^ sourceModelProvider,
IModelProvider^ targetModelProvider,
PlanGenerationOptions^ configurationOptions,
String^ script,
[OutAttribute] ErrorManager^% errorsAndWarnings
)
public function UpdateTargetDatabase(
comparisonResult : ModelComparisonResult,
source : DataSchemaModel,
target : DataSchemaModel,
excludedElements : HashSet<IModelElement>,
sourceModelProvider : IModelProvider,
targetModelProvider : IModelProvider,
configurationOptions : PlanGenerationOptions,
script : String,
errorsAndWarnings : ErrorManager
)
abstract UpdateTargetDatabase :
comparisonResult:ModelComparisonResult *
source:DataSchemaModel *
target:DataSchemaModel *
excludedElements:HashSet<IModelElement> *
sourceModelProvider:IModelProvider *
targetModelProvider:IModelProvider *
configurationOptions:PlanGenerationOptions *
script:string *
errorsAndWarnings:ErrorManager -> unit
override UpdateTargetDatabase :
comparisonResult:ModelComparisonResult *
source:DataSchemaModel *
target:DataSchemaModel *
excludedElements:HashSet<IModelElement> *
sourceModelProvider:IModelProvider *
targetModelProvider:IModelProvider *
configurationOptions:PlanGenerationOptions *
script:string *
errorsAndWarnings:ErrorManager -> unit
Parameters
- comparisonResult
Type: Microsoft.Data.Schema.SchemaModel.ModelComparisonResult
The comparison result
- source
Type: Microsoft.Data.Schema.SchemaModel.DataSchemaModel
The source model store
- target
Type: Microsoft.Data.Schema.SchemaModel.DataSchemaModel
The target model store
- excludedElements
Type: System.Collections.Generic.HashSet<IModelElement>
Elements that are skipped by the user in the UI
- sourceModelProvider
Type: Microsoft.Data.Schema.Compare.Schema.IModelProvider
The source model provider
- targetModelProvider
Type: Microsoft.Data.Schema.Compare.Schema.IModelProvider
The target model provider
- configurationOptions
Type: Microsoft.Data.Schema.Build.PlanGenerationOptions
The configuration options
- script
Type: System.String
Not used here, but some DSPs may need this
- errorsAndWarnings
Type: Microsoft.Data.Schema.Common.ErrorManager%
Resulting errors and warnings, if any
.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
SchemaCompareScriptService Members
Microsoft.VisualStudio.Data.Schema.Project.SchemaAndDataCompare.Extensibility Namespace