Esempio n. 1
0
 private void Validate(Model.LunchDetail lunchDetail)
 {
     if (string.IsNullOrEmpty(lunchDetail.EmployeeId))
     {
         throw new Helper.RequireValueException(Model.LunchDetail.PROPERTY_EMPLOYEEID);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Update a LunchDetail.
 /// </summary>
 public void Update(Model.LunchDetail lunchDetail)
 {
     //
     // todo: add other logic here.
     //
     lunchDetail.UpdateTime = DateTime.Now;
     Validate(lunchDetail);
     accessor.Update(lunchDetail);
 }
Esempio n. 3
0
 /// <summary>
 /// Insert a LunchDetail.
 /// </summary>
 public void Insert(Model.LunchDetail lunchDetail)
 {
     //
     // todo:add other logic here
     //
     lunchDetail.InsertTime = DateTime.Now;
     Validate(lunchDetail);
     accessor.Insert(lunchDetail);
 }
Esempio n. 4
0
 public Model.LunchDetail GetPrev(Model.LunchDetail e)
 {
     return(sqlmapper.QueryForObject <Model.LunchDetail>("LunchDetail.get_prev", e));
 }
Esempio n. 5
0
 public bool HasRowsAfter(Model.LunchDetail e)
 {
     return(sqlmapper.QueryForObject <bool>("LunchDetail.has_rows_after", e));
 }
Esempio n. 6
0
 public Model.LunchDetail GetNext(Model.LunchDetail e)
 {
     return(sqlmapper.QueryForObject <Model.LunchDetail>("LunchDetail.get_next", e));
 }
Esempio n. 7
0
 public void Update(Model.LunchDetail e)
 {
     this.Update <Model.LunchDetail>(e);
 }
Esempio n. 8
0
 public bool HasRowsBefore(Model.LunchDetail e)
 {
     return(sqlmapper.QueryForObject <bool>("LunchDetail.has_rows_before", e));
 }
Esempio n. 9
0
 public void Insert(Model.LunchDetail e)
 {
     this.Insert <Model.LunchDetail>(e);
 }
Esempio n. 10
0
 public Model.LunchDetail GetNext(Model.LunchDetail e)
 {
     return(accessor.GetNext(e));
 }
Esempio n. 11
0
 public Model.LunchDetail GetPrev(Model.LunchDetail e)
 {
     return(accessor.GetPrev(e));
 }
Esempio n. 12
0
 public bool HasRowsAfter(Model.LunchDetail e)
 {
     return(accessor.HasRowsAfter(e));
 }
Esempio n. 13
0
 public bool HasRowsBefore(Model.LunchDetail e)
 {
     return(accessor.HasRowsBefore(e));
 }