SchemaCompareScriptService.OnBeforeUpdateTargetDatabase 方法
由 UpdateTargetDatabase 方法调用,以便在更新目标数据库前通过 DatabaseSchemaProvider 访问参数值。
命名空间: Microsoft.Data.Schema.Tools.Compare.Schema
程序集: Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)
语法
声明
Protected Overridable Sub OnBeforeUpdateTargetDatabase ( _
comparisonResult As ModelComparisonResult, _
source As DataSchemaModel, _
target As DataSchemaModel, _
options As SchemaDeploymentOptions, _
plan As DeploymentPlan _
)
protected virtual void OnBeforeUpdateTargetDatabase(
ModelComparisonResult comparisonResult,
DataSchemaModel source,
DataSchemaModel target,
SchemaDeploymentOptions options,
DeploymentPlan plan
)
protected:
virtual void OnBeforeUpdateTargetDatabase(
ModelComparisonResult^ comparisonResult,
DataSchemaModel^ source,
DataSchemaModel^ target,
SchemaDeploymentOptions^ options,
DeploymentPlan^ plan
)
abstract OnBeforeUpdateTargetDatabase :
comparisonResult:ModelComparisonResult *
source:DataSchemaModel *
target:DataSchemaModel *
options:SchemaDeploymentOptions *
plan:DeploymentPlan -> unit
override OnBeforeUpdateTargetDatabase :
comparisonResult:ModelComparisonResult *
source:DataSchemaModel *
target:DataSchemaModel *
options:SchemaDeploymentOptions *
plan:DeploymentPlan -> unit
protected function OnBeforeUpdateTargetDatabase(
comparisonResult : ModelComparisonResult,
source : DataSchemaModel,
target : DataSchemaModel,
options : SchemaDeploymentOptions,
plan : DeploymentPlan
)
参数
- comparisonResult
类型:Microsoft.Data.Schema.SchemaModel.ModelComparisonResult
ModelComparisonResult 对象。
- source
类型:Microsoft.Data.Schema.SchemaModel.DataSchemaModel
源 DataSchemaModel 对象。
- target
类型:Microsoft.Data.Schema.SchemaModel.DataSchemaModel
目标 DataSchemaModel 对象。
- options
类型:Microsoft.Data.Schema.Build.SchemaDeploymentOptions
表示用于更新目标数据库的配置值的 SchemaDeploymentOptions 对象。
备注
默认实现不执行任何操作,但可用于派生的类。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。