コード例 #1
0
 /// <summary>
 /// 取得分页数据
 /// </summary>
 /// <param name="page"></param>
 /// <param name="type"></param>
 /// <param name="dbString">分库名</param>
 /// <returns></returns>
 public static DataTable GetPagingData(PagingInfo page, DbConntionType type = DbConntionType.OnlyRead, string dbString = null)
 {
     using (FluDataAdapter da = GetAdapter(type: type, dbString: dbString))
     {
         da.OpenConnection();
         DataTable dt = da.GetPagingData2(page);
         da.CloseConnection();
         return(dt);
     }
 }