SchemaCompareScriptService.UpdateTargetDatabase 메서드

제공된 배포 계획과 다른 매개 변수 값을 사용하여 대상 데이터베이스를 업데이트하기 위해 Visual Studio Premium 및 Visual Studio Ultimate의 스크립트 업데이트 도구 창에서 호출됩니다.

네임스페이스:  Microsoft.Data.Schema.Tools.Compare.Schema
어셈블리:  Microsoft.Data.Schema.Tools(Microsoft.Data.Schema.Tools.dll)

구문

‘선언
Public Overridable Sub UpdateTargetDatabase ( _
    comparisonResult As ModelComparisonResult, _
    source As DataSchemaModel, _
    target As DataSchemaModel, _
    options As SchemaDeploymentOptions, _
    plan As DeploymentPlan, _
    <OutAttribute> ByRef errorsAndWarnings As ErrorManager _
)
public virtual void UpdateTargetDatabase(
    ModelComparisonResult comparisonResult,
    DataSchemaModel source,
    DataSchemaModel target,
    SchemaDeploymentOptions options,
    DeploymentPlan plan,
    out ErrorManager errorsAndWarnings
)
public:
virtual void UpdateTargetDatabase(
    ModelComparisonResult^ comparisonResult, 
    DataSchemaModel^ source, 
    DataSchemaModel^ target, 
    SchemaDeploymentOptions^ options, 
    DeploymentPlan^ plan, 
    [OutAttribute] ErrorManager^% errorsAndWarnings
)
abstract UpdateTargetDatabase : 
        comparisonResult:ModelComparisonResult * 
        source:DataSchemaModel * 
        target:DataSchemaModel * 
        options:SchemaDeploymentOptions * 
        plan:DeploymentPlan * 
        errorsAndWarnings:ErrorManager byref -> unit 
override UpdateTargetDatabase : 
        comparisonResult:ModelComparisonResult * 
        source:DataSchemaModel * 
        target:DataSchemaModel * 
        options:SchemaDeploymentOptions * 
        plan:DeploymentPlan * 
        errorsAndWarnings:ErrorManager byref -> unit 
public function UpdateTargetDatabase(
    comparisonResult : ModelComparisonResult, 
    source : DataSchemaModel, 
    target : DataSchemaModel, 
    options : SchemaDeploymentOptions, 
    plan : DeploymentPlan, 
    errorsAndWarnings : ErrorManager
)

매개 변수

설명

UpdateTargetDatabase 메서드의 기본 프로세스는 다음과 같습니다.

  1. OnBeforeUpdateTargetDatabase 메서드를 호출합니다.

  2. CreateDeploymentController를 호출하여 배포 관리자를 가져옵니다.

  3. 배포 컨트롤러에서 ISchemaDeploymentController.UpdateDatabase 메서드를 호출합니다.

  4. errorsAndWarnings 매개 변수 값에 오류를 기록합니다.

  5. OnAfterUpdateTargetDatabase 메서드를 호출합니다.

  6. 마지막으로 RaiseSyncCompletedEvent 메서드를 호출합니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

SchemaCompareScriptService 클래스

Microsoft.Data.Schema.Tools.Compare.Schema 네임스페이스

ModelComparisonResult

DataSchemaModel

SchemaDeploymentOptions

DeploymentPlan

ErrorManager

기타 리소스

Visual Studio의 데이터베이스 기능 확장