public virtual void When(IAttributeSetInstanceExtensionFieldStateRemoved e)
        {
            ThrowOnWrongEvent(e);

            this.Deleted   = true;
            this.UpdatedBy = e.CreatedBy;
            this.UpdatedAt = e.CreatedAt;
        }
        }// END Map(IMergePatch... ////////////////////////////

        protected virtual IAttributeSetInstanceExtensionFieldStateRemoved MapRemove(IRemoveAttributeSetInstanceExtensionField c, IAttributeSetInstanceExtensionFieldGroupCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(c.GroupId, c.Index, version);
            IAttributeSetInstanceExtensionFieldStateRemoved e = NewAttributeSetInstanceExtensionFieldStateRemoved(stateEventId);


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

            return(e);
        }// END Map(IRemove... ////////////////////////////
Beispiel #3
0
 public void AddAttributeSetInstanceExtensionFieldEvent(IAttributeSetInstanceExtensionFieldStateRemoved e)
 {
     _innerStateEvents.Add((AttributeSetInstanceExtensionFieldStateRemovedDto)e);
 }
Beispiel #4
0
 public virtual void AddAttributeSetInstanceExtensionFieldEvent(IAttributeSetInstanceExtensionFieldStateRemoved e)
 {
     ThrowOnInconsistentEventIds(e);
     this._attributeSetInstanceExtensionFieldEvents[e.StateEventId] = e;
 }
 void IAttributeSetInstanceExtensionFieldGroupStateDeleted.AddAttributeSetInstanceExtensionFieldEvent(IAttributeSetInstanceExtensionFieldStateRemoved e)
 {
     this._attributeSetInstanceExtensionFieldEvents.AddAttributeSetInstanceExtensionFieldEvent(e);
 }
        public virtual AttributeSetInstanceExtensionFieldStateRemovedDto ToAttributeSetInstanceExtensionFieldStateRemovedDto(IAttributeSetInstanceExtensionFieldStateRemoved e)
        {
            var dto = new AttributeSetInstanceExtensionFieldStateRemovedDto();

            dto.StateEventId = new AttributeSetInstanceExtensionFieldStateEventIdDtoWrapper(e.StateEventId);
            dto.CreatedAt    = e.CreatedAt;
            dto.CreatedBy    = e.CreatedBy;
            dto.Version      = e.Version;
            dto.CommandId    = e.CommandId;

            return(dto);
        }
Beispiel #7
0
 void IAttributeSetInstanceExtensionFieldState.When(IAttributeSetInstanceExtensionFieldStateRemoved e)
 {
     throw new NotSupportedException();
 }