예제 #1
0
        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);
        }
예제 #2
0
        public virtual void MergePatch(IMergePatchLocatorType c)
        {
            ILocatorTypeStateMergePatched e = Map(c);

            Apply(e);
        }
 void ILocatorTypeApplicationService.When(IMergePatchLocatorType c)
 {
     this.When((MergePatchLocatorTypeDto)c);
 }
예제 #4
0
 public virtual void When(IMergePatchLocatorType c)
 {
     Update(c, ar => ar.MergePatch(c));
 }