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

            var entity = new GESTION_VARIABLES();

            entity.IDVARIABLE = dto.IDVARIABLE;
            entity.CODOBJ = dto.CODOBJ;
            entity.CODI_GEST = dto.CODI_GEST;
            entity.GESTION = dto.GESTION;
            entity.SUBGESTION = dto.SUBGESTION;
            entity.CODVAR = dto.CODVAR;
            entity.NOMVAR = dto.NOMVAR;
            entity.VALOR = dto.VALOR;
            entity.UNIDAD = dto.UNIDAD;
            entity.ESTADO = dto.ESTADO;

            dto.OnEntity(entity);

            return entity;
        }
        /// <summary>
        /// Invoked when <see cref="ToEntity"/> operation is about to return.
        /// </summary>
        /// <param name="entity"><see cref="GESTION_VARIABLES"/> converted from <see cref="GESTION_VARIABLESDTO"/>.</param>
partial         static void OnEntity(this GESTION_VARIABLESDTO dto, GESTION_VARIABLES entity);