コード例 #1
0
 public ExpenseEntryCollection FetchAll()
 {
     ExpenseEntryCollection coll = new ExpenseEntryCollection();
     Query qry = new Query(ExpenseEntry.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
コード例 #2
0
 public ExpenseEntryCollection FetchByTimesheetID(int timesheetid)
 {
     ExpenseEntryCollection coll = new ExpenseEntryCollection().Where(ExpenseEntry.Columns.Timesheetid, timesheetid).OrderByAsc(ExpenseEntry.Columns.Expensedate).Load();
     return coll;
 }
コード例 #3
0
 public ExpenseEntryCollection FetchByQuery(Query qry)
 {
     ExpenseEntryCollection coll = new ExpenseEntryCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader()); 
     return coll;
 }
コード例 #4
0
 public ExpenseEntryCollection FetchByID(object Id)
 {
     ExpenseEntryCollection coll = new ExpenseEntryCollection().Where("id", Id).Load();
     return coll;
 }