public Cmsi BuildFromRow(DataRow row) { var returnRecord = Cmsi.BuildCmsiFromRow(row); returnRecord = this.BuildExtraFromRow <Cmsi>(returnRecord, row); return(returnRecord); }
public Cmsi Insert(Cmsi record) { DataRow row = this.dataSet.ttblcmsi.NewttblcmsiRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcmsi.AddttblcmsiRow((pdscmsiDataSet.ttblcmsiRow)row); this.SaveChanges(); return(this.dataSet.ttblcmsi.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmsi.Rows[0]) : null); }
public Cmsi GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Cmsi cmsi = null; if (row != null) { cmsi = this.BuildFromRow(row); } return(cmsi); }
protected Cmsi Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcmsi.AsEnumerable().SingleOrDefault(); Cmsi cmsi = null; if (row != null) { cmsi = this.BuildFromRow(row); } return(cmsi); }
public void Delete(Cmsi record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcmsi.NewttblcmsiRow(); Cmsi.BuildMinimalRow(ref row, record); this.dataSet.ttblcmsi.AddttblcmsiRow((pdscmsiDataSet.ttblcmsiRow)row); } row.Delete(); this.SaveChanges(); }
public Cmsi Update(Cmsi 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.ttblcmsi.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmsi.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Cmsi record) { Cmsi.UpdateRowFromCmsi(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Cmsi record) { this.repository.Delete(record); }
public Cmsi Update(Cmsi record) { return(this.repository.Update(record)); }
public Cmsi Insert(Cmsi record) { return(this.repository.Insert(record)); }
public void Delete(Cmsi record) { this.adapter.Delete(record); }
public Cmsi Update(Cmsi record) { return(this.adapter.Update(record)); }
public Cmsi Insert(Cmsi record) { return(this.adapter.Insert(record)); }