示例#1
0
        protected virtual IPicklistRoleMvoStateMergePatched Map(IMergePatchPicklistRoleMvo c)
        {
            var stateEventId = new PicklistRoleMvoEventId(c.PicklistRoleId, c.PicklistVersion);
            IPicklistRoleMvoStateMergePatched e = NewPicklistRoleMvoStateMergePatched(stateEventId);

            e.Version                                       = c.Version;
            e.Active                                        = c.Active;
            e.PicklistDescription                           = c.PicklistDescription;
            e.PicklistFacilityId                            = c.PicklistFacilityId;
            e.PicklistShipmentMethodTypeId                  = c.PicklistShipmentMethodTypeId;
            e.PicklistStatusId                              = c.PicklistStatusId;
            e.PicklistPicklistDate                          = c.PicklistPicklistDate;
            e.PicklistPickwaveId                            = c.PicklistPickwaveId;
            e.PicklistCreatedBy                             = c.PicklistCreatedBy;
            e.PicklistCreatedAt                             = c.PicklistCreatedAt;
            e.PicklistUpdatedBy                             = c.PicklistUpdatedBy;
            e.PicklistUpdatedAt                             = c.PicklistUpdatedAt;
            e.PicklistActive                                = c.PicklistActive;
            e.PicklistDeleted                               = c.PicklistDeleted;
            e.IsPropertyVersionRemoved                      = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved                       = c.IsPropertyActiveRemoved;
            e.IsPropertyPicklistDescriptionRemoved          = c.IsPropertyPicklistDescriptionRemoved;
            e.IsPropertyPicklistFacilityIdRemoved           = c.IsPropertyPicklistFacilityIdRemoved;
            e.IsPropertyPicklistShipmentMethodTypeIdRemoved = c.IsPropertyPicklistShipmentMethodTypeIdRemoved;
            e.IsPropertyPicklistStatusIdRemoved             = c.IsPropertyPicklistStatusIdRemoved;
            e.IsPropertyPicklistPicklistDateRemoved         = c.IsPropertyPicklistPicklistDateRemoved;
            e.IsPropertyPicklistPickwaveIdRemoved           = c.IsPropertyPicklistPickwaveIdRemoved;
            e.IsPropertyPicklistCreatedByRemoved            = c.IsPropertyPicklistCreatedByRemoved;
            e.IsPropertyPicklistCreatedAtRemoved            = c.IsPropertyPicklistCreatedAtRemoved;
            e.IsPropertyPicklistUpdatedByRemoved            = c.IsPropertyPicklistUpdatedByRemoved;
            e.IsPropertyPicklistUpdatedAtRemoved            = c.IsPropertyPicklistUpdatedAtRemoved;
            e.IsPropertyPicklistActiveRemoved               = c.IsPropertyPicklistActiveRemoved;
            e.IsPropertyPicklistDeletedRemoved              = c.IsPropertyPicklistDeletedRemoved;

            e.CommandId = c.CommandId;


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

            var picklistVersion = c.PicklistVersion;


            return(e);
        }
示例#2
0
 public virtual void When(IMergePatchPicklistRoleMvo c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
示例#3
0
        public virtual void MergePatch(IMergePatchPicklistRoleMvo c)
        {
            IPicklistRoleMvoStateMergePatched e = Map(c);

            Apply(e);
        }
 void IPicklistRoleMvoApplicationService.When(IMergePatchPicklistRoleMvo c)
 {
     this.When((MergePatchPicklistRoleMvoDto)c);
 }