/// <summary>
        /// Get the default config for connecting to database.
        /// </summary>
        /// <returns></returns>
        public static SQLConnConfig GetConfig()
        {
            var res = new SQLConnConfig();

            res.Server   = "localhost";
            res.UserID   = "root";
            res.DataBase = "mychema";
            res.PassWord = "******";
            return(res);
        }
        /// <summary>
        /// Get the default config for the testing codes.
        ///     - If the config files DNE, it will create a new XML file with
        ///     default settings in it.
        ///     - If the config files exists, it will load it; which is used
        ///     by the dataconnection.
        /// </summary>
        /// <returns></returns>
        public static SQLConnConfig GetDefultConnectionConfig()
        {
            var defultconfig = SQLConnConfig.GetConfig();
            var config       =
                new ObjectXMLCache <SQLConnConfig>
                    (defultconfig, "", "dbconn.config");

            if (config.Deserialize())
            {
                return(config.ObjectToStore);
            }
            Print("\n Config DNE, creating new config. \n");
            config.Serialize();
            return(defultconfig);
        }