示例#1
0
        protected virtual IShipmentMethodTypeStateMergePatched Map(IMergePatchShipmentMethodType c)
        {
            var stateEventId = new ShipmentMethodTypeEventId(c.ShipmentMethodTypeId, c.Version);
            IShipmentMethodTypeStateMergePatched e = NewShipmentMethodTypeStateMergePatched(stateEventId);

            e.Description = c.Description;
            e.SequenceNum = c.SequenceNum;
            e.Active      = c.Active;
            e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved;
            e.IsPropertySequenceNumRemoved = c.IsPropertySequenceNumRemoved;
            e.IsPropertyActiveRemoved      = c.IsPropertyActiveRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            var version = c.Version;


            return(e);
        }
示例#2
0
 void IShipmentMethodTypeApplicationService.When(IMergePatchShipmentMethodType c)
 {
     this.When((MergePatchShipmentMethodTypeDto)c);
 }
示例#3
0
        public virtual void MergePatch(IMergePatchShipmentMethodType c)
        {
            IShipmentMethodTypeStateMergePatched e = Map(c);

            Apply(e);
        }
 public virtual void When(IMergePatchShipmentMethodType c)
 {
     Update(c, ar => ar.MergePatch(c));
 }