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

            var dto = new GESTION_VARIABLESDTO();

            dto.IDVARIABLE = entity.IDVARIABLE;
            dto.CODOBJ = entity.CODOBJ;
            dto.CODI_GEST = entity.CODI_GEST;
            dto.GESTION = entity.GESTION;
            dto.SUBGESTION = entity.SUBGESTION;
            dto.CODVAR = entity.CODVAR;
            dto.NOMVAR = entity.NOMVAR;
            dto.VALOR = entity.VALOR;
            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_VARIABLESDTO"/> converted from <see cref="GESTION_VARIABLES"/>.</param>
partial         static void OnDTO(this GESTION_VARIABLES entity, GESTION_VARIABLESDTO dto);