Example #1
0
        public DB_XML()
        {
            if (xml_db != null)
                xml_db = null;

            xml_db = this;

            path = Settings.get_setting("db_path") + "\\" + Settings.get_setting("db_database") + ".xml";

            Load_XML();
        }
Example #2
0
        public DB_XML()
        {
            if (xml_db != null)
            {
                xml_db = null;
            }


            xml_db = this;

            path = Settings.get_setting("db_path") + "\\" + Settings.get_setting("db_database") + ".xml";


            Load_XML();
        }
Example #3
0
        //init and connect to db

        //TODO: Make DB info readable from config file
        #region Initialization
        public DB_MAIN()
        {
            if (postgres != null)
            {
                postgres = null;
            }

            postgres = this;



            gen_dataset();


            if (Settings.get_setting("db_type").ToString() == "psql")
            {
                DB_PSQL.Start_PSQL();
            }
            else if (Settings.get_setting("db_type").ToString() == "xml")
            {
                DB_XML.Start_XML();
            }
        }