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

            var dto = new devolvervalorescomponenteResultDto();

            dto.COMPONENTE = entity.COMPONENTE;
            dto.PRECIOCOMP = entity.PRECIOCOMP;
            dto.IDCAMPO    = entity.IDCAMPO;
            dto.VALUE1     = entity.VALUE1;

            entity.OnDTO(dto);

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

            var entity = new devolvervalorescomponenteResult();

            entity.COMPONENTE = dto.COMPONENTE;
            entity.PRECIOCOMP = dto.PRECIOCOMP;
            entity.IDCAMPO    = dto.IDCAMPO;
            entity.VALUE1     = dto.VALUE1;

            dto.OnEntity(entity);

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