public void Find(Dso filter, DataTable dt) { using (var da = new SqlDataAdapter()) { da.SelectCommand = filter.GetSqlCommand(); da.SelectCommand.Connection = new SqlConnection(connectionString); try { da.Fill(dt); } catch (Exception ex) { throw new DetailedException(ex.Message, ex, da.SelectCommand); } } }
public void Find(Dso filter, int[] ids, ref int startRecord, ref int maxRecords, DataTable dt) { Find(filter.GetSqlCommand(), ids, ref startRecord, ref maxRecords, dt); }