C# 클래스 SIL.FieldWorks.FDO.DomainServices.DataMigration.DataMigration7000014

Migrates from 7000013 to 7000014
상속: IDataMigration
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
PerformMigration ( IDomainObjectDTORepository domainObjectDtoRepository ) : void

Changes the use of CmAgentEvaluation, so that instead of one evaluation per agent/target pair owned by Agent.Evauations and referring to the target, there are only two CmAgentEvaluations owned by each CmAgent in their Approves and Disapproves properties, and they are referred to by the new WfiAnalysis.Evaluations Reference Collection. Specifically, for each CmAgent, - Create two CmAgentEvaluations, one owned in Approves and one in Disapproves. - For each item in Evaluations, if Accepted, add the appropriate Approves evaluation to the target of the evaluation, otherwise, add the appropriate Disapproves (if there is a target). - Delete the Evaluations. As a side effect, since all existing CmAgentEvaluations are deleted, obsolete properties are removed.

비공개 메소드들

메소드 설명
MakeEvaluation ( string ownerGuid, IDomainObjectDTORepository domainObjectDtoRepository, System.Xml.Linq.XElement agentElement, string owningAttr ) : DomainObjectDTO

메소드 상세

PerformMigration() 공개 메소드

Changes the use of CmAgentEvaluation, so that instead of one evaluation per agent/target pair owned by Agent.Evauations and referring to the target, there are only two CmAgentEvaluations owned by each CmAgent in their Approves and Disapproves properties, and they are referred to by the new WfiAnalysis.Evaluations Reference Collection. Specifically, for each CmAgent, - Create two CmAgentEvaluations, one owned in Approves and one in Disapproves. - For each item in Evaluations, if Accepted, add the appropriate Approves evaluation to the target of the evaluation, otherwise, add the appropriate Disapproves (if there is a target). - Delete the Evaluations. As a side effect, since all existing CmAgentEvaluations are deleted, obsolete properties are removed.
public PerformMigration ( IDomainObjectDTORepository domainObjectDtoRepository ) : void
domainObjectDtoRepository IDomainObjectDTORepository Repository of all CmObject DTOs available for /// one migration step.
리턴 void