public void EditNiceNames(Databases coll)
        {
            if (this._currentHashCode == coll.GetHashCode()) return;

			DataTable dt = ProLogForNiceNames(coll);
			DataRowCollection rows = dt.Rows;

			foreach(Database o in coll)
			{
				rows.Add(new object[] { o.Name, o.Alias, o } );
			}

            EpilogForNiceNames(dt);

            this._currentHashCode = coll.GetHashCode();
		}
		public void EditNiceNames(Databases coll)
		{
			DataTable dt = ProLogForNiceNames(coll);
			DataRowCollection rows = dt.Rows;

			foreach(Database o in coll)
			{
				rows.Add(new object[] { o.Name, o.Alias, o } );
			}

			EpilogForNiceNames(dt);
		}
Exemple #3
0
        private void Reset()
        {
            UserData = null;

            IgnoreCase = true;
            requiredDatabaseName = false;
            requiresSchemaName = false;
            StripTrailingNulls = false;
            TrailingNull = ((char) 0x0).ToString();

            ClassFactory = null;

            _showSystemData = false;

            _driver = dbDriver.None;
            _driverString = "NONE";
            _databases = null;
            _connectionString = "";
            _theConnection = new OleDbConnection();
            _isConnected = false;
            _parsedConnectionString = null;
            _defaultDatabase = "";

            // Language
            _languageMappingFileName = string.Empty;
            _language = string.Empty;
            _languageDoc = null;
            LanguageNode = null;

            UserData = new XmlDocument();
            UserData.AppendChild(UserData.CreateNode(XmlNodeType.Element, "MyMeta", null));

            // DbTarget
            _dbTargetMappingFileName = string.Empty;
            _dbTarget = string.Empty;
            _dbTargetDoc = null;
            DbTargetNode = null;
        }