public Cmpmst BuildFromRow(DataRow row) { var returnRecord = Cmpmst.BuildCmpmstFromRow(row); returnRecord = this.BuildExtraFromRow <Cmpmst>(returnRecord, row); return(returnRecord); }
public Cmpmst Insert(Cmpmst record) { DataRow row = this.dataSet.ttblcmpmst.NewttblcmpmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcmpmst.AddttblcmpmstRow((pdscmpmstDataSet.ttblcmpmstRow)row); this.SaveChanges(); return(this.dataSet.ttblcmpmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmpmst.Rows[0]) : null); }
public Cmpmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Cmpmst cmpmst = null; if (row != null) { cmpmst = this.BuildFromRow(row); } return(cmpmst); }
protected Cmpmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcmpmst.AsEnumerable().SingleOrDefault(); Cmpmst cmpmst = null; if (row != null) { cmpmst = this.BuildFromRow(row); } return(cmpmst); }
public void Delete(Cmpmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcmpmst.NewttblcmpmstRow(); Cmpmst.BuildMinimalRow(ref row, record); this.dataSet.ttblcmpmst.AddttblcmpmstRow((pdscmpmstDataSet.ttblcmpmstRow)row); } row.Delete(); this.SaveChanges(); }
public Cmpmst Update(Cmpmst 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.ttblcmpmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmpmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Cmpmst Update(Cmpmst record) { return(this.repository.Update(record)); }
public Cmpmst Insert(Cmpmst record) { return(this.repository.Insert(record)); }
public void Delete(Cmpmst record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, Cmpmst record) { Cmpmst.UpdateRowFromCmpmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Cmpmst record) { this.adapter.Delete(record); }
public Cmpmst Update(Cmpmst record) { return(this.adapter.Update(record)); }
public Cmpmst Insert(Cmpmst record) { return(this.adapter.Insert(record)); }