Exemplo n.º 1
0
 public TimesheetCollection FetchAll()
 {
     TimesheetCollection coll = new TimesheetCollection();
     Query qry = new Query(Timesheet.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public TimesheetCollection FetchByQuery(Query qry)
 {
     TimesheetCollection coll = new TimesheetCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader()); 
     return coll;
 }
Exemplo n.º 4
0
 public TimesheetCollection FetchByID(object Id)
 {
     TimesheetCollection coll = new TimesheetCollection().Where("id", Id).Load();
     return coll;
 }