Beispiel #1
0
        protected virtual IOrganizationStateMergePatched Map(IMergePatchOrganization c)
        {
            var stateEventId = new OrganizationStateEventId(c.OrganizationId, c.Version);
            IOrganizationStateMergePatched e = NewOrganizationStateMergePatched(stateEventId);

            e.Name                         = c.Name;
            e.Description                  = c.Description;
            e.Type                         = c.Type;
            e.IsSummary                    = c.IsSummary;
            e.Active                       = c.Active;
            e.IsPropertyNameRemoved        = c.IsPropertyNameRemoved;
            e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved;
            e.IsPropertyTypeRemoved        = c.IsPropertyTypeRemoved;
            e.IsPropertyIsSummaryRemoved   = c.IsPropertyIsSummaryRemoved;
            e.IsPropertyActiveRemoved      = c.IsPropertyActiveRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;

            var version = c.Version;


            return(e);
        }
Beispiel #2
0
 public virtual void When(IMergePatchOrganization c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
Beispiel #3
0
 void IOrganizationApplicationService.When(IMergePatchOrganization c)
 {
     this.When((MergePatchOrganizationDto)c);
 }
Beispiel #4
0
        public virtual void MergePatch(IMergePatchOrganization c)
        {
            IOrganizationStateMergePatched e = Map(c);

            Apply(e);
        }