示例#1
0
        public static void DBFactoryInit()
        {
            String currentDir = Environment.CurrentDirectory;
            String ConfigFile = System.IO.Path.Combine(currentDir, "dbconfig.xml");

            System.Xml.XmlDocument xml = new System.Xml.XmlDocument();
            xml.Load(ConfigFile);
            XmlElement root = xml.DocumentElement;

            DBExecFactory.GetInstance().Load(root);
        }
示例#2
0
        public static ArrayList executeQuery(string sql)
        {
            DBExecute exec = DBExecFactory.GetInstance().getExecuteor();

            return(exec.Query(sql));
        }
示例#3
0
        public static void executeNonQuery(string sql)
        {
            DBExecute exec = DBExecFactory.GetInstance().getExecuteor();

            exec.Execute(sql);
        }