public Bpsi BuildFromRow(DataRow row) { var returnRecord = Bpsi.BuildBpsiFromRow(row); returnRecord = this.BuildExtraFromRow <Bpsi>(returnRecord, row); return(returnRecord); }
public Bpsi Insert(Bpsi record) { DataRow row = this.dataSet.ttblbpsi.NewttblbpsiRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblbpsi.AddttblbpsiRow((pdsbpsiDataSet.ttblbpsiRow)row); this.SaveChanges(); return(this.dataSet.ttblbpsi.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbpsi.Rows[0]) : null); }
public Bpsi GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Bpsi bpsi = null; if (row != null) { bpsi = this.BuildFromRow(row); } return(bpsi); }
protected Bpsi Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblbpsi.AsEnumerable().SingleOrDefault(); Bpsi bpsi = null; if (row != null) { bpsi = this.BuildFromRow(row); } return(bpsi); }
public void Delete(Bpsi record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblbpsi.NewttblbpsiRow(); Bpsi.BuildMinimalRow(ref row, record); this.dataSet.ttblbpsi.AddttblbpsiRow((pdsbpsiDataSet.ttblbpsiRow)row); } row.Delete(); this.SaveChanges(); }
public Bpsi Update(Bpsi 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.ttblbpsi.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbpsi.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Bpsi Insert(Bpsi record) { return(this.repository.Insert(record)); }
public void Delete(Bpsi record) { this.repository.Delete(record); }
public Bpsi Update(Bpsi record) { return(this.repository.Update(record)); }
public void Delete(Bpsi record) { this.adapter.Delete(record); }
public Bpsi Update(Bpsi record) { return(this.adapter.Update(record)); }
public Bpsi Insert(Bpsi record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Bpsi record) { Bpsi.UpdateRowFromBpsi(ref row, record); this.ExtraUpdateToRow(ref row, record); }