/// <summary> /// 取得查询数据 /// </summary> /// <param name="tableName"></param> /// <param name="columns"></param> /// <param name="conditions"></param> /// <param name="orderby"></param> /// <param name="groupby"></param> /// <param name="type"></param> /// <param name="dbString">分库名</param> /// <returns></returns> public static DataTable GetData(string tableName, string columns, string conditions, string orderby, string groupby, DbConntionType type = DbConntionType.OnlyRead, string dbString = null) { using (FluDataAdapter da = GetAdapter(type: type, dbString: dbString)) { da.OpenConnection(); DataTable dt = da.GetData2(tableName, columns, conditions, orderby, groupby); da.CloseConnection(); return(dt); } }