protected virtual IShipmentTypeStateMergePatched Map(IMergePatchShipmentType c) { var stateEventId = new ShipmentTypeEventId(c.ShipmentTypeId, c.Version); IShipmentTypeStateMergePatched e = NewShipmentTypeStateMergePatched(stateEventId); e.ParentTypeId = c.ParentTypeId; e.HasTable = c.HasTable; e.Description = c.Description; e.Active = c.Active; e.IsPropertyParentTypeIdRemoved = c.IsPropertyParentTypeIdRemoved; e.IsPropertyHasTableRemoved = c.IsPropertyHasTableRemoved; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; 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); }
public virtual void When(IMergePatchShipmentType c) { Update(c, ar => ar.MergePatch(c)); }
public virtual void MergePatch(IMergePatchShipmentType c) { IShipmentTypeStateMergePatched e = Map(c); Apply(e); }
void IShipmentTypeApplicationService.When(IMergePatchShipmentType c) { this.When((MergePatchShipmentTypeDto)c); }