public virtual UserRow[] GetAsArray(string whereSql, string orderBySql,
                                     int startIndex, int length, ref int totalRecordCount)
 {
     using (IDataReader reader = _db.ExecuteReader(CreateGetCommand(whereSql, orderBySql))) {
         return(MapRecords(reader, startIndex, length, ref totalRecordCount));
     }
 }
 protected DataTable MapRecordsToDataTable(IDbCommand command)
 {
     using (IDataReader reader = _db.ExecuteReader(command))
     {
         return(MapRecordsToDataTable(reader));
     }
 }