예제 #1
0
        public ConflictResolutionResult Resolve(IServiceContainer serviceContainer, MigrationConflict conflict, ConflictResolutionRule rule, out List <MigrationAction> actions)
        {
            actions = null;

            if (rule.ActionRefNameGuid.Equals(new ManualConflictResolutionAction().ReferenceName))
            {
                return(ManualResolve(conflict, rule, out actions));
            }
            else if (rule.ActionRefNameGuid.Equals(new MultipleRetryResolutionAction().ReferenceName))
            {
                return(MultipleRetryResolutionAction.TryResolve(rule, conflict));
            }

            return(new ConflictResolutionResult(false, ConflictResolutionType.Other));
        }
        public override ConflictResolutionResult Resolve(
            IServiceContainer serviceContainer,
            MigrationConflict conflict,
            ConflictResolutionRule rule,
            out List <MigrationAction> actions)
        {
            actions = null;

            if (rule.ActionRefNameGuid.Equals(new MultipleRetryResolutionAction().ReferenceName))
            {
                return(MultipleRetryResolutionAction.TryResolve(rule, conflict));
            }
            else
            {
                return(base.Resolve(serviceContainer, conflict, rule, out actions));
            }
        }