Exemplo n.º 1
0
        public virtual InOutLineImageStateRemovedDto NewInOutLineImageStateRemoved(string sequenceId)
        {
            var e   = new InOutLineImageStateRemovedDto();
            var eId = NewInOutLineImageEventId(sequenceId);

            e.InOutLineImageEventId = eId;
            return(e);
        }
        public virtual InOutLineImageStateRemovedDto ToInOutLineImageStateRemovedDto(IInOutLineImageStateRemoved e)
        {
            var dto = new InOutLineImageStateRemovedDto();

            dto.InOutLineImageEventId = e.InOutLineImageEventId;
            dto.CreatedAt             = e.CreatedAt;
            dto.CreatedBy             = e.CreatedBy;
            dto.Version   = e.Version;
            dto.CommandId = e.CommandId;

            return(dto);
        }
Exemplo n.º 3
0
        public virtual InOutLineStateRemovedDto ToInOutLineStateRemovedDto(IInOutLineStateRemoved e)
        {
            var dto = new InOutLineStateRemovedDto();

            dto.InOutLineEventId = e.InOutLineEventId;
            dto.CreatedAt        = e.CreatedAt;
            dto.CreatedBy        = e.CreatedBy;
            dto.Version          = e.Version;
            dto.CommandId        = e.CommandId;
            var inOutLineImageEvents = new List <InOutLineImageStateRemovedDto>();

            foreach (var ee in e.InOutLineImageEvents)
            {
                InOutLineImageStateRemovedDto eeDto = InOutLineImageStateEventDtoConverter.ToInOutLineImageStateRemovedDto(ee);
                inOutLineImageEvents.Add(eeDto);
            }
            dto.InOutLineImageEvents = inOutLineImageEvents.ToArray();


            return(dto);
        }