Пример #1
0
        protected virtual IAttributeUseMvoStateCreated Map(ICreateAttributeUseMvo c)
        {
            var stateEventId = new AttributeUseMvoStateEventId(c.AttributeSetAttributeUseId, c.AttributeSetVersion);
            IAttributeUseMvoStateCreated e = NewAttributeUseMvoStateCreated(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;
            ReflectUtils.CopyPropertyValue("CommandId", c, e);


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


            return(e);
        }
Пример #2
0
        protected AttributeUseMvoStateDeleted NewAttributeUseMvoStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new AttributeUseMvoStateEventId(_state.AttributeSetAttributeUseId, ((IAttributeUseMvoStateProperties)_state).AttributeSetVersion);
            var e            = NewAttributeUseMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = DateTime.Now;

            return(e);
        }
Пример #3
0
        protected virtual IAttributeUseMvoStateDeleted Map(IDeleteAttributeUseMvo c)
        {
            var stateEventId = new AttributeUseMvoStateEventId(c.AttributeSetAttributeUseId, c.AttributeSetVersion);
            IAttributeUseMvoStateDeleted e = NewAttributeUseMvoStateDeleted(stateEventId);

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


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


            return(e);
        }
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            AttributeUseMvoStateEventId other = obj as AttributeUseMvoStateEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.AttributeSetAttributeUseId, other.AttributeSetAttributeUseId) &&
                   Object.Equals(this.AttributeSetVersion, other.AttributeSetVersion)
                   );
        }
 public AttributeUseMvoStateEventIdFlattenedDto(AttributeUseMvoStateEventId val)
 {
     this._value = val;
 }
Пример #6
0
 private AttributeUseMvoStateDeleted NewAttributeUseMvoStateDeleted(AttributeUseMvoStateEventId stateEventId)
 {
     return(new AttributeUseMvoStateDeleted(stateEventId));
 }
Пример #7
0
 private AttributeUseMvoStateMergePatched NewAttributeUseMvoStateMergePatched(AttributeUseMvoStateEventId stateEventId)
 {
     return(new AttributeUseMvoStateMergePatched(stateEventId));
 }
Пример #8
0
 public AttributeUseMvoStateDeleted(AttributeUseMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
Пример #9
0
 public AttributeUseMvoStateMergePatched(AttributeUseMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
Пример #10
0
 protected AttributeUseMvoStateEventBase(AttributeUseMvoStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }