public CycleCnt BuildFromRow(DataRow row) { var returnRecord = CycleCnt.BuildCycleCntFromRow(row); returnRecord = this.BuildExtraFromRow <CycleCnt>(returnRecord, row); return(returnRecord); }
public CycleCnt Insert(CycleCnt record) { DataRow row = this.dataSet.ttblcycle_cnt.Newttblcycle_cntRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcycle_cnt.Addttblcycle_cntRow((pdscycle_cntDataSet.ttblcycle_cntRow)row); this.SaveChanges(); return(this.dataSet.ttblcycle_cnt.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcycle_cnt.Rows[0]) : null); }
public CycleCnt GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); CycleCnt cycleCnt = null; if (row != null) { cycleCnt = this.BuildFromRow(row); } return(cycleCnt); }
protected CycleCnt Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcycle_cnt.AsEnumerable().SingleOrDefault(); CycleCnt cycleCnt = null; if (row != null) { cycleCnt = this.BuildFromRow(row); } return(cycleCnt); }
public void Delete(CycleCnt record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcycle_cnt.Newttblcycle_cntRow(); CycleCnt.BuildMinimalRow(ref row, record); this.dataSet.ttblcycle_cnt.Addttblcycle_cntRow((pdscycle_cntDataSet.ttblcycle_cntRow)row); } row.Delete(); this.SaveChanges(); }
public CycleCnt Update(CycleCnt 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.ttblcycle_cnt.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcycle_cnt.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(CycleCnt record) { this.adapter.Delete(record); }
public CycleCnt Update(CycleCnt record) { return this.adapter.Update(record); }
public CycleCnt Insert(CycleCnt record) { return this.adapter.Insert(record); }
public void UpdateToRow(ref DataRow row, CycleCnt record) { CycleCnt.UpdateRowFromCycleCnt(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public CycleCnt Insert(CycleCnt record) { return(this.repository.Insert(record)); }
public void Delete(CycleCnt record) { this.repository.Delete(record); }
public CycleCnt Update(CycleCnt record) { return(this.repository.Update(record)); }