public ParticipanteDTOS(Int32 participanteId, Nullable<Int32> clienteId, Nullable<Int32> eventoId, Nullable<Boolean> ganoSorteo, Nullable<DateTime> fechaSistema, Nullable<Boolean> eliminado, ClienteDTOS cliente, EventoDTOS evento) { this.ParticipanteId = participanteId; this.ClienteId = clienteId; this.EventoId = eventoId; this.GanoSorteo = ganoSorteo; this.FechaSistema = fechaSistema; this.Eliminado = eliminado; this.Cliente = cliente; this.Evento = evento; }
/// <summary> /// Converts this instance of <see cref="Cliente"/> to an instance of <see cref="ClienteDTOS"/>. /// </summary> /// <param name="entity"><see cref="Cliente"/> to convert.</param> public static ClienteDTOS ToDTO(this Cliente entity) { if (entity == null) return null; var dto = new ClienteDTOS(); dto.ClienteId = entity.ClienteId; dto.Identificacion = entity.Identificacion; dto.NombreCliente = entity.NombreCliente; dto.Direccion = entity.Direccion; dto.Huella = entity.Huella; dto.FechaSistema = entity.FechaSistema; dto.Eliminado = entity.Eliminado; entity.OnDTO(dto); return dto; }
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="ClienteDTOS"/> converted from <see cref="Cliente"/>.</param> partial static void OnDTO(this Cliente entity, ClienteDTOS dto);