public TaskEmp BuildFromRow(DataRow row) { var returnRecord = TaskEmp.BuildTaskEmpFromRow(row); returnRecord = this.BuildExtraFromRow <TaskEmp>(returnRecord, row); return(returnRecord); }
public TaskEmp Insert(TaskEmp record) { DataRow row = this.dataSet.ttbltask_emp.Newttbltask_empRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbltask_emp.Addttbltask_empRow((pdstask_empDataSet.ttbltask_empRow)row); this.SaveChanges(); return(this.dataSet.ttbltask_emp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltask_emp.Rows[0]) : null); }
public TaskEmp GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); TaskEmp taskEmp = null; if (row != null) { taskEmp = this.BuildFromRow(row); } return(taskEmp); }
protected TaskEmp Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbltask_emp.AsEnumerable().SingleOrDefault(); TaskEmp taskEmp = null; if (row != null) { taskEmp = this.BuildFromRow(row); } return(taskEmp); }
public void Delete(TaskEmp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbltask_emp.Newttbltask_empRow(); TaskEmp.BuildMinimalRow(ref row, record); this.dataSet.ttbltask_emp.Addttbltask_empRow((pdstask_empDataSet.ttbltask_empRow)row); } row.Delete(); this.SaveChanges(); }
public TaskEmp Update(TaskEmp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttbltask_emp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltask_emp.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public TaskEmp Insert(TaskEmp record) { return(this.repository.Insert(record)); }
public void Delete(TaskEmp record) { this.repository.Delete(record); }
public TaskEmp Update(TaskEmp record) { return(this.repository.Update(record)); }
public void Delete(TaskEmp record) { this.adapter.Delete(record); }
public TaskEmp Update(TaskEmp record) { return(this.adapter.Update(record)); }
public TaskEmp Insert(TaskEmp record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, TaskEmp record) { TaskEmp.UpdateRowFromTaskEmp(ref row, record); this.ExtraUpdateToRow(ref row, record); }