/// <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;
            dto.v_ServiceId = entity.v_ServiceId;

            entity.OnDTO(dto);

            return(dto);
        }
        /// <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;
            entity.v_ServiceId = dto.v_ServiceId;

            dto.OnEntity(entity);

            return(entity);
        }
 /// <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);
 /// <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);