Beispiel #1
0
 /// <summary>
 /// 加载数据到 DataTable
 /// </summary>
 /// <param name="startRecord">要填充的起始记录位置</param>
 /// <param name="maxRecords">最多填充的记录条数</param>
 /// <returns>填充好的 DataTable</returns>
 public virtual DataTable LoadDataTable(int startRecord, int maxRecords)
 {
     try
     {
         return(DataTableAdapter.FillDataTable(DataReader, startRecord, maxRecords));
     }
     catch (Exception exception)
     {
         OnException(exception);
         throw;
     }
 }
 /// <summary>
 /// 加载数据到 DataTable
 /// </summary>
 /// <param name="startRecord">要填充的起始记录位置</param>
 /// <param name="maxRecords">最多填充的记录条数</param>
 /// <returns>填充好的 DataTable</returns>
 public virtual DataTable LoadDataTable(int startRecord, int maxRecords)
 {
     return(DataTableAdapter.FillDataTable(DataReader, startRecord, maxRecords));
 }