/// <summary> /// 从app.config 文件中获取数据库的类型; /// </summary> /// <param name="strConnectKey">key的名称</param> /// <returns></returns> public static string getClientConnectType(string strConnectKey) { string strConnectType = ""; foreach (string key in DALUse.getConfig().AppSettings.Settings.AllKeys) { string value = DALUse.getConfig().AppSettings.Settings[key].Value; if (key.Equals(strConnectKey)) { strConnectType = value.ToUpper(); return(strConnectType); } } return(""); }