public virtual void When(IOrderItemShipGroupAssociationStateRemoved e) { ThrowOnWrongEvent(e); this.Deleted = true; this.UpdatedBy = e.CreatedBy; this.UpdatedAt = e.CreatedAt; }
}// END Map(IMergePatch... //////////////////////////// protected virtual IOrderItemShipGroupAssociationStateRemoved MapRemove(IRemoveOrderItemShipGroupAssociation c, IOrderShipGroupCommand outerCommand, long version) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new OrderItemShipGroupAssociationEventId(c.OrderId, c.OrderShipGroupShipGroupSeqId, c.OrderItemSeqId, version); IOrderItemShipGroupAssociationStateRemoved e = NewOrderItemShipGroupAssociationStateRemoved(stateEventId); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(IRemove... ////////////////////////////
public virtual void AddOrderItemShipGroupAssociationEvent(IOrderItemShipGroupAssociationStateRemoved e) { ThrowOnInconsistentEventIds(e); this._orderItemShipGroupAssociationEvents[e.OrderItemShipGroupAssociationEventId] = e; }
public virtual OrderItemShipGroupAssociationStateRemovedDto ToOrderItemShipGroupAssociationStateRemovedDto(IOrderItemShipGroupAssociationStateRemoved e) { var dto = new OrderItemShipGroupAssociationStateRemovedDto(); dto.OrderItemShipGroupAssociationEventId = e.OrderItemShipGroupAssociationEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.Version = e.Version; dto.CommandId = e.CommandId; return(dto); }
void IOrderShipGroupStateRemoved.AddOrderItemShipGroupAssociationEvent(IOrderItemShipGroupAssociationStateRemoved e) { this._orderItemShipGroupAssociationEvents.AddOrderItemShipGroupAssociationEvent(e); }
public void AddOrderItemShipGroupAssociationEvent(IOrderItemShipGroupAssociationStateRemoved e) { _innerStateEvents.Add((OrderItemShipGroupAssociationStateRemovedDto)e); }
void IOrderItemShipGroupAssociationState.When(IOrderItemShipGroupAssociationStateRemoved e) { throw new NotSupportedException(); }