protected virtual ILocatorTypeStateMergePatched Map(IMergePatchLocatorType c) { var stateEventId = new LocatorTypeEventId(c.LocatorTypeId, c.Version); ILocatorTypeStateMergePatched e = NewLocatorTypeStateMergePatched(stateEventId); e.Description = c.Description; e.Active = c.Active; 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 MergePatch(IMergePatchLocatorType c) { ILocatorTypeStateMergePatched e = Map(c); Apply(e); }
void ILocatorTypeApplicationService.When(IMergePatchLocatorType c) { this.When((MergePatchLocatorTypeDto)c); }
public virtual void When(IMergePatchLocatorType c) { Update(c, ar => ar.MergePatch(c)); }