public Bpel BuildFromRow(DataRow row) { var returnRecord = Bpel.BuildBpelFromRow(row); returnRecord = this.BuildExtraFromRow <Bpel>(returnRecord, row); return(returnRecord); }
public Bpel Insert(Bpel record) { DataRow row = this.dataSet.ttblbpel.NewttblbpelRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblbpel.AddttblbpelRow((pdsbpelDataSet.ttblbpelRow)row); this.SaveChanges(); return(this.dataSet.ttblbpel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbpel.Rows[0]) : null); }
public Bpel GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Bpel bpel = null; if (row != null) { bpel = this.BuildFromRow(row); } return(bpel); }
protected Bpel Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblbpel.AsEnumerable().SingleOrDefault(); Bpel bpel = null; if (row != null) { bpel = this.BuildFromRow(row); } return(bpel); }
public void Delete(Bpel record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblbpel.NewttblbpelRow(); Bpel.BuildMinimalRow(ref row, record); this.dataSet.ttblbpel.AddttblbpelRow((pdsbpelDataSet.ttblbpelRow)row); } row.Delete(); this.SaveChanges(); }
public Bpel Update(Bpel 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.ttblbpel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbpel.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Bpel record) { this.repository.Delete(record); }
public Bpel Update(Bpel record) { return(this.repository.Update(record)); }
public Bpel Insert(Bpel record) { return(this.repository.Insert(record)); }
public void Delete(Bpel record) { this.adapter.Delete(record); }
public Bpel Update(Bpel record) { return(this.adapter.Update(record)); }
public Bpel Insert(Bpel record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Bpel record) { Bpel.UpdateRowFromBpel(ref row, record); this.ExtraUpdateToRow(ref row, record); }