Ejemplo n.º 1
0
        /// <summary>
        /// Converts this instance of <see cref="llenargrillasigesoftResult"/> to an instance of <see cref="llenargrillasigesoftResultDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="llenargrillasigesoftResult"/> to convert.</param>
        public static llenargrillasigesoftResultDto ToDTO(this llenargrillasigesoftResult entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new llenargrillasigesoftResultDto();

            dto.EmpresaCliente    = entity.EmpresaCliente;
            dto.Nombre_Componente = entity.Nombre_Componente;
            dto.IdComponente      = entity.IdComponente;
            dto.IdServicio        = entity.IdServicio;
            dto.Total             = entity.Total;

            entity.OnDTO(dto);

            return(dto);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Converts this instance of <see cref="llenargrillasigesoftResultDto"/> to an instance of <see cref="llenargrillasigesoftResult"/>.
        /// </summary>
        /// <param name="dto"><see cref="llenargrillasigesoftResultDto"/> to convert.</param>
        public static llenargrillasigesoftResult ToEntity(this llenargrillasigesoftResultDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new llenargrillasigesoftResult();

            entity.EmpresaCliente    = dto.EmpresaCliente;
            entity.Nombre_Componente = dto.Nombre_Componente;
            entity.IdComponente      = dto.IdComponente;
            entity.IdServicio        = dto.IdServicio;
            entity.Total             = dto.Total;

            dto.OnEntity(entity);

            return(entity);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="llenargrillasigesoftResult"/> converted from <see cref="llenargrillasigesoftResultDto"/>.</param>
 static partial void OnEntity(this llenargrillasigesoftResultDto dto, llenargrillasigesoftResult entity);
Ejemplo n.º 4
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="llenargrillasigesoftResultDto"/> converted from <see cref="llenargrillasigesoftResult"/>.</param>
 static partial void OnDTO(this llenargrillasigesoftResult entity, llenargrillasigesoftResultDto dto);