Beispiel #1
0
        protected virtual IRoleTypeStateMergePatched Map(IMergePatchRoleType c)
        {
            var stateEventId             = new RoleTypeEventId(c.RoleTypeId, c.Version);
            IRoleTypeStateMergePatched e = NewRoleTypeStateMergePatched(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(IMergePatchRoleType c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
Beispiel #3
0
 void IRoleTypeApplicationService.When(IMergePatchRoleType c)
 {
     this.When((MergePatchRoleTypeDto)c);
 }
Beispiel #4
0
        public virtual void MergePatch(IMergePatchRoleType c)
        {
            IRoleTypeStateMergePatched e = Map(c);

            Apply(e);
        }