Exemplo n.º 1
0
        protected void ApplyInsertChange(InsertChange change, Changeset changeset, Int32 changeId, Int32 changesetId, IDataManager manager)
        {
            var changeInfo = new TargetingTypeBasketPortfolioTargetChangeInfo(
                changeId,
                changeset.TargetingTypeId,
                change.BasketId,
                changeset.PortfolioId,
                null,
                change.TargetAfter,
                change.Comment,
                changesetId
                );

            manager.InsertTargetingTypeBasketPortfolioTargetChange(changeInfo);

            var info = new TargetingTypeBasketPortfolioTargetInfo(
                changeset.TargetingTypeId,
                change.BasketId,
                changeset.PortfolioId,
                change.TargetAfter,
                changeId
                );

            manager.InsertTargetingTypeBasketPortfolioTarget(info);
        }
Exemplo n.º 2
0
        protected void ApplyDeleteChange(DeleteChange change, Changeset changeset, Int32 changeId, Int32 changesetId, IDataManager manager)
        {
            var changeInfo = new TargetingTypeBasketPortfolioTargetChangeInfo(
                changeId,
                changeset.TargetingTypeId,
                change.BasketId,
                changeset.PortfolioId,
                change.TargetBefore,
                null,
                change.Comment,
                changesetId
                );

            manager.InsertTargetingTypeBasketPortfolioTargetChange(changeInfo);

            manager.DeleteTargetingTypeBasketPortfolioTarget(changeset.TargetingTypeId, change.BasketId, changeset.PortfolioId);
        }