protected virtual IGoodIdentificationTypeStateMergePatched Map(IMergePatchGoodIdentificationType c)
        {
            var stateEventId = new GoodIdentificationTypeEventId(c.GoodIdentificationTypeId, c.Version);
            IGoodIdentificationTypeStateMergePatched e = NewGoodIdentificationTypeStateMergePatched(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(IMergePatchGoodIdentificationType c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
 void IGoodIdentificationTypeApplicationService.When(IMergePatchGoodIdentificationType c)
 {
     this.When((MergePatchGoodIdentificationTypeDto)c);
 }
        public virtual void MergePatch(IMergePatchGoodIdentificationType c)
        {
            IGoodIdentificationTypeStateMergePatched e = Map(c);

            Apply(e);
        }