Example #1
0
 private void Validate(Model.LunchDetail lunchDetail)
 {
     if (string.IsNullOrEmpty(lunchDetail.EmployeeId))
     {
         throw new Helper.RequireValueException(Model.LunchDetail.PROPERTY_EMPLOYEEID);
     }
 }
Example #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);
 }
Example #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);
 }
Example #4
0
 public Model.LunchDetail GetPrev(Model.LunchDetail e)
 {
     return(sqlmapper.QueryForObject <Model.LunchDetail>("LunchDetail.get_prev", e));
 }
Example #5
0
 public bool HasRowsAfter(Model.LunchDetail e)
 {
     return(sqlmapper.QueryForObject <bool>("LunchDetail.has_rows_after", e));
 }
Example #6
0
 public Model.LunchDetail GetNext(Model.LunchDetail e)
 {
     return(sqlmapper.QueryForObject <Model.LunchDetail>("LunchDetail.get_next", e));
 }
Example #7
0
 public void Update(Model.LunchDetail e)
 {
     this.Update <Model.LunchDetail>(e);
 }
Example #8
0
 public bool HasRowsBefore(Model.LunchDetail e)
 {
     return(sqlmapper.QueryForObject <bool>("LunchDetail.has_rows_before", e));
 }
Example #9
0
 public void Insert(Model.LunchDetail e)
 {
     this.Insert <Model.LunchDetail>(e);
 }
Example #10
0
 public Model.LunchDetail GetNext(Model.LunchDetail e)
 {
     return(accessor.GetNext(e));
 }
Example #11
0
 public Model.LunchDetail GetPrev(Model.LunchDetail e)
 {
     return(accessor.GetPrev(e));
 }
Example #12
0
 public bool HasRowsAfter(Model.LunchDetail e)
 {
     return(accessor.HasRowsAfter(e));
 }
Example #13
0
 public bool HasRowsBefore(Model.LunchDetail e)
 {
     return(accessor.HasRowsBefore(e));
 }