Exemple #1
0
        /// <summary>
        /// Converts this instance of <see cref="resumentipopagoResult"/> to an instance of <see cref="resumentipopagoResultDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="resumentipopagoResult"/> to convert.</param>
        public static resumentipopagoResultDto ToDTO(this resumentipopagoResult entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new resumentipopagoResultDto();

            dto.IdCondicionPago = entity.IdCondicionPago;
            dto.CondicionPago   = entity.CondicionPago;
            dto.IdFormaPago     = entity.IdFormaPago;
            dto.FormaPago       = entity.FormaPago;
            dto.Fecha           = entity.Fecha;
            dto.Comprobante     = entity.Comprobante;
            dto.Empresa         = entity.Empresa;
            dto.Importe         = entity.Importe;
            dto.v_Concepto      = entity.v_Concepto;

            entity.OnDTO(dto);

            return(dto);
        }
Exemple #2
0
        /// <summary>
        /// Converts this instance of <see cref="resumentipopagoResultDto"/> to an instance of <see cref="resumentipopagoResult"/>.
        /// </summary>
        /// <param name="dto"><see cref="resumentipopagoResultDto"/> to convert.</param>
        public static resumentipopagoResult ToEntity(this resumentipopagoResultDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new resumentipopagoResult();

            entity.IdCondicionPago = dto.IdCondicionPago;
            entity.CondicionPago   = dto.CondicionPago;
            entity.IdFormaPago     = dto.IdFormaPago;
            entity.FormaPago       = dto.FormaPago;
            entity.Fecha           = dto.Fecha;
            entity.Comprobante     = dto.Comprobante;
            entity.Empresa         = dto.Empresa;
            entity.Importe         = dto.Importe;
            entity.v_Concepto      = dto.v_Concepto;

            dto.OnEntity(entity);

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