protected void ApplyInsertChange(InsertChange change, Changeset changeset, Int32 changeId, Int32 changesetId, IDataManager manager) { var changeInfo = new TargetingTypeGroupBasketSecurityBaseValueChangeInfo ( changeId, changeset.TargetingTypeGroupId, changeset.BasketId, change.SecurityId, null, change.BaseValueAfter, changesetId, change.Comment ); manager.InsertTargetingTypeGroupBasketSecurityBaseValueChange(changeInfo); var info = new TargetingTypeGroupBasketSecurityBaseValueInfo( changeset.TargetingTypeGroupId, changeset.BasketId, change.SecurityId, change.BaseValueAfter, changeId ); manager.InsertTargetingTypeGroupBasketSecurityBaseValue(info); }
protected void ApplyDeleteChange(DeleteChange change, Changeset changeset, Int32 changeId, Int32 changesetId, IDataManager manager) { var changeInfo = new TargetingTypeGroupBasketSecurityBaseValueChangeInfo ( changeId, changeset.TargetingTypeGroupId, changeset.BasketId, change.SecurityId, change.BaseValueBefore, null, changesetId, change.Comment ); manager.InsertTargetingTypeGroupBasketSecurityBaseValueChange(changeInfo); manager.DeleteTargetingTypeGroupBasketSecurityBaseValue(changeset.TargetingTypeGroupId, changeset.BasketId, change.SecurityId); }