protected virtual ILocatorStateMergePatched Map(IMergePatchLocator c) { var stateEventId = new LocatorStateEventId(c.LocatorId, c.Version); ILocatorStateMergePatched e = NewLocatorStateMergePatched(stateEventId); e.WarehouseId = c.WarehouseId; e.ParentLocatorId = c.ParentLocatorId; e.LocatorType = c.LocatorType; e.PriorityNumber = c.PriorityNumber; e.IsDefault = c.IsDefault; e.X = c.X; e.Y = c.Y; e.Z = c.Z; e.Active = c.Active; e.IsPropertyWarehouseIdRemoved = c.IsPropertyWarehouseIdRemoved; e.IsPropertyParentLocatorIdRemoved = c.IsPropertyParentLocatorIdRemoved; e.IsPropertyLocatorTypeRemoved = c.IsPropertyLocatorTypeRemoved; e.IsPropertyPriorityNumberRemoved = c.IsPropertyPriorityNumberRemoved; e.IsPropertyIsDefaultRemoved = c.IsPropertyIsDefaultRemoved; e.IsPropertyXRemoved = c.IsPropertyXRemoved; e.IsPropertyYRemoved = c.IsPropertyYRemoved; e.IsPropertyZRemoved = c.IsPropertyZRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; var version = c.Version; return(e); }
public virtual void MergePatch(IMergePatchLocator c) { ILocatorStateMergePatched e = Map(c); Apply(e); }
void ILocatorApplicationService.When(IMergePatchLocator c) { this.When((MergePatchLocatorDto)c); }
public virtual void When(IMergePatchLocator c) { Update(c, ar => ar.MergePatch(c)); }