Beispiel #1
0
        protected virtual IAttributeUseMvoStateMergePatched Map(IMergePatchAttributeUseMvo c)
        {
            var stateEventId = new AttributeUseMvoEventId(c.AttributeSetAttributeUseId, c.AttributeSetVersion);
            IAttributeUseMvoStateMergePatched e = NewAttributeUseMvoStateMergePatched(stateEventId);

            e.SequenceNumber = c.SequenceNumber;
            e.Version        = c.Version;
            e.Active         = c.Active;
            e.AttributeSetAttributeSetName       = c.AttributeSetAttributeSetName;
            e.AttributeSetOrganizationId         = c.AttributeSetOrganizationId;
            e.AttributeSetDescription            = c.AttributeSetDescription;
            e.AttributeSetReferenceId            = c.AttributeSetReferenceId;
            e.AttributeSetIsInstanceAttributeSet = c.AttributeSetIsInstanceAttributeSet;
            e.AttributeSetIsMandatory            = c.AttributeSetIsMandatory;
            e.AttributeSetCreatedBy           = c.AttributeSetCreatedBy;
            e.AttributeSetCreatedAt           = c.AttributeSetCreatedAt;
            e.AttributeSetUpdatedBy           = c.AttributeSetUpdatedBy;
            e.AttributeSetUpdatedAt           = c.AttributeSetUpdatedAt;
            e.AttributeSetActive              = c.AttributeSetActive;
            e.AttributeSetDeleted             = c.AttributeSetDeleted;
            e.IsPropertySequenceNumberRemoved = c.IsPropertySequenceNumberRemoved;
            e.IsPropertyVersionRemoved        = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved         = c.IsPropertyActiveRemoved;
            e.IsPropertyAttributeSetAttributeSetNameRemoved       = c.IsPropertyAttributeSetAttributeSetNameRemoved;
            e.IsPropertyAttributeSetOrganizationIdRemoved         = c.IsPropertyAttributeSetOrganizationIdRemoved;
            e.IsPropertyAttributeSetDescriptionRemoved            = c.IsPropertyAttributeSetDescriptionRemoved;
            e.IsPropertyAttributeSetReferenceIdRemoved            = c.IsPropertyAttributeSetReferenceIdRemoved;
            e.IsPropertyAttributeSetIsInstanceAttributeSetRemoved = c.IsPropertyAttributeSetIsInstanceAttributeSetRemoved;
            e.IsPropertyAttributeSetIsMandatoryRemoved            = c.IsPropertyAttributeSetIsMandatoryRemoved;
            e.IsPropertyAttributeSetCreatedByRemoved = c.IsPropertyAttributeSetCreatedByRemoved;
            e.IsPropertyAttributeSetCreatedAtRemoved = c.IsPropertyAttributeSetCreatedAtRemoved;
            e.IsPropertyAttributeSetUpdatedByRemoved = c.IsPropertyAttributeSetUpdatedByRemoved;
            e.IsPropertyAttributeSetUpdatedAtRemoved = c.IsPropertyAttributeSetUpdatedAtRemoved;
            e.IsPropertyAttributeSetActiveRemoved    = c.IsPropertyAttributeSetActiveRemoved;
            e.IsPropertyAttributeSetDeletedRemoved   = c.IsPropertyAttributeSetDeletedRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            var attributeSetVersion = c.AttributeSetVersion;


            return(e);
        }
Beispiel #2
0
        protected virtual IAttributeUseMvoStateMergePatched Map(IMergePatchAttributeUseMvo c)
        {
            var stateEventId = new AttributeUseMvoStateEventId(c.AttributeSetAttributeUseId, c.AttributeSetVersion);
            IAttributeUseMvoStateMergePatched e = NewAttributeUseMvoStateMergePatched(stateEventId);

            e.SequenceNumber                                       = c.SequenceNumber;
            e.Version                                              = c.Version;
            e.Active                                               = c.Active;
            e.AttributeSetName                                     = c.AttributeSetName;
            e.AttributeSetOrganizationId                           = c.AttributeSetOrganizationId;
            e.AttributeSetDescription                              = c.AttributeSetDescription;
            e.AttributeSetSerialNumberAttributeId                  = c.AttributeSetSerialNumberAttributeId;
            e.AttributeSetLotAttributeId                           = c.AttributeSetLotAttributeId;
            e.AttributeSetReferenceId                              = c.AttributeSetReferenceId;
            e.AttributeSetCreatedBy                                = c.AttributeSetCreatedBy;
            e.AttributeSetCreatedAt                                = c.AttributeSetCreatedAt;
            e.AttributeSetUpdatedBy                                = c.AttributeSetUpdatedBy;
            e.AttributeSetUpdatedAt                                = c.AttributeSetUpdatedAt;
            e.AttributeSetActive                                   = c.AttributeSetActive;
            e.AttributeSetDeleted                                  = c.AttributeSetDeleted;
            e.IsPropertySequenceNumberRemoved                      = c.IsPropertySequenceNumberRemoved;
            e.IsPropertyVersionRemoved                             = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved                              = c.IsPropertyActiveRemoved;
            e.IsPropertyAttributeSetNameRemoved                    = c.IsPropertyAttributeSetNameRemoved;
            e.IsPropertyAttributeSetOrganizationIdRemoved          = c.IsPropertyAttributeSetOrganizationIdRemoved;
            e.IsPropertyAttributeSetDescriptionRemoved             = c.IsPropertyAttributeSetDescriptionRemoved;
            e.IsPropertyAttributeSetSerialNumberAttributeIdRemoved = c.IsPropertyAttributeSetSerialNumberAttributeIdRemoved;
            e.IsPropertyAttributeSetLotAttributeIdRemoved          = c.IsPropertyAttributeSetLotAttributeIdRemoved;
            e.IsPropertyAttributeSetReferenceIdRemoved             = c.IsPropertyAttributeSetReferenceIdRemoved;
            e.IsPropertyAttributeSetCreatedByRemoved               = c.IsPropertyAttributeSetCreatedByRemoved;
            e.IsPropertyAttributeSetCreatedAtRemoved               = c.IsPropertyAttributeSetCreatedAtRemoved;
            e.IsPropertyAttributeSetUpdatedByRemoved               = c.IsPropertyAttributeSetUpdatedByRemoved;
            e.IsPropertyAttributeSetUpdatedAtRemoved               = c.IsPropertyAttributeSetUpdatedAtRemoved;
            e.IsPropertyAttributeSetActiveRemoved                  = c.IsPropertyAttributeSetActiveRemoved;
            e.IsPropertyAttributeSetDeletedRemoved                 = c.IsPropertyAttributeSetDeletedRemoved;

            e.CommandId = c.CommandId;


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

            var attributeSetVersion = c.AttributeSetVersion;


            return(e);
        }
 void IAttributeUseMvoApplicationService.When(IMergePatchAttributeUseMvo c)
 {
     this.When((MergePatchAttributeUseMvoDto)c);
 }
Beispiel #4
0
        public virtual void MergePatch(IMergePatchAttributeUseMvo c)
        {
            IAttributeUseMvoStateMergePatched e = Map(c);

            Apply(e);
        }
 public virtual void When(IMergePatchAttributeUseMvo c)
 {
     Update(c, ar => ar.MergePatch(c));
 }