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); }
public static ArrayList executeQuery(string sql) { DBExecute exec = DBExecFactory.GetInstance().getExecuteor(); return(exec.Query(sql)); }
public static void executeNonQuery(string sql) { DBExecute exec = DBExecFactory.GetInstance().getExecuteor(); exec.Execute(sql); }