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. |
|