/// <summary>
        /// Converts this instance of <see cref="GESTION_CONF_VARIABLES"/> to an instance of <see cref="GESTION_CONF_VARIABLESDTO"/>.
        /// </summary>
        /// <param name="entity"><see cref="GESTION_CONF_VARIABLES"/> to convert.</param>
        public static GESTION_CONF_VARIABLESDTO ToDTO(this GESTION_CONF_VARIABLES entity)
        {
            if (entity == null) return null;

            var dto = new GESTION_CONF_VARIABLESDTO();

            dto.IDVARIABLE = entity.IDVARIABLE;
            dto.CODVAR = entity.CODVAR;
            dto.NOMVAR = entity.NOMVAR;
            dto.CALC = entity.CALC;
            dto.FORMULA = entity.FORMULA;
            dto.UNIDAD = entity.UNIDAD;
            dto.ESTADO = entity.ESTADO;

            entity.OnDTO(dto);

            return dto;
        }
        /// <summary>
        /// Invoked when <see cref="ToDTO"/> operation is about to return.
        /// </summary>
        /// <param name="dto"><see cref="GESTION_CONF_VARIABLESDTO"/> converted from <see cref="GESTION_CONF_VARIABLES"/>.</param>
partial         static void OnDTO(this GESTION_CONF_VARIABLES entity, GESTION_CONF_VARIABLESDTO dto);