コード例 #1
0
        /// <summary>
        /// Converts this instance of <see cref="Participante"/> to an instance of <see cref="ParticipanteDTOS"/>.
        /// </summary>
        /// <param name="entity"><see cref="Participante"/> to convert.</param>
        public static ParticipanteDTOS ToDTO(this Participante entity)
        {
            if (entity == null) return null;

            var dto = new ParticipanteDTOS();

            dto.ParticipanteId = entity.ParticipanteId;
            dto.ClienteId = entity.ClienteId;
            dto.EventoId = entity.EventoId;
            dto.GanoSorteo = entity.GanoSorteo;
            dto.FechaSistema = entity.FechaSistema;
            dto.Eliminado = entity.Eliminado;

            entity.OnDTO(dto);

            return dto;
        }
コード例 #2
0
        /// <summary>
        /// Invoked when <see cref="ToDTO"/> operation is about to return.
        /// </summary>
        /// <param name="dto"><see cref="ParticipanteDTOS"/> converted from <see cref="Participante"/>.</param>
partial         static void OnDTO(this Participante entity, ParticipanteDTOS dto);