示例#1
0
 public TimesheetCollection FetchAll()
 {
     TimesheetCollection coll = new TimesheetCollection();
     Query qry = new Query(Timesheet.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
示例#2
0
 public TimesheetCollection FetchAllByPeriodAccountId(int periodAccountId)
 {
     TimesheetCollection coll = new TimesheetCollection();
     Query qry = new Query(Timesheet.Schema);
     qry.WHERE(Timesheet.Columns.Periodaccountid, periodAccountId);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
示例#3
0
 public TimesheetCollection FetchByQuery(Query qry)
 {
     TimesheetCollection coll = new TimesheetCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader()); 
     return coll;
 }
示例#4
0
 public TimesheetCollection FetchByID(object Id)
 {
     TimesheetCollection coll = new TimesheetCollection().Where("id", Id).Load();
     return coll;
 }