private void Validate(Model.LunchDetail lunchDetail) { if (string.IsNullOrEmpty(lunchDetail.EmployeeId)) { throw new Helper.RequireValueException(Model.LunchDetail.PROPERTY_EMPLOYEEID); } }
/// <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); }
/// <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); }
public Model.LunchDetail GetPrev(Model.LunchDetail e) { return(sqlmapper.QueryForObject <Model.LunchDetail>("LunchDetail.get_prev", e)); }
public bool HasRowsAfter(Model.LunchDetail e) { return(sqlmapper.QueryForObject <bool>("LunchDetail.has_rows_after", e)); }
public Model.LunchDetail GetNext(Model.LunchDetail e) { return(sqlmapper.QueryForObject <Model.LunchDetail>("LunchDetail.get_next", e)); }
public void Update(Model.LunchDetail e) { this.Update <Model.LunchDetail>(e); }
public bool HasRowsBefore(Model.LunchDetail e) { return(sqlmapper.QueryForObject <bool>("LunchDetail.has_rows_before", e)); }
public void Insert(Model.LunchDetail e) { this.Insert <Model.LunchDetail>(e); }
public Model.LunchDetail GetNext(Model.LunchDetail e) { return(accessor.GetNext(e)); }
public Model.LunchDetail GetPrev(Model.LunchDetail e) { return(accessor.GetPrev(e)); }
public bool HasRowsAfter(Model.LunchDetail e) { return(accessor.HasRowsAfter(e)); }
public bool HasRowsBefore(Model.LunchDetail e) { return(accessor.HasRowsBefore(e)); }