public Bpelc BuildFromRow(DataRow row) { var returnRecord = Bpelc.BuildBpelcFromRow(row); returnRecord = this.BuildExtraFromRow <Bpelc>(returnRecord, row); return(returnRecord); }
public Bpelc Insert(Bpelc record) { DataRow row = this.dataSet.ttblbpelc.NewttblbpelcRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblbpelc.AddttblbpelcRow((pdsbpelcDataSet.ttblbpelcRow)row); this.SaveChanges(); return(this.dataSet.ttblbpelc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbpelc.Rows[0]) : null); }
public Bpelc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Bpelc bpelc = null; if (row != null) { bpelc = this.BuildFromRow(row); } return(bpelc); }
protected Bpelc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblbpelc.AsEnumerable().SingleOrDefault(); Bpelc bpelc = null; if (row != null) { bpelc = this.BuildFromRow(row); } return(bpelc); }
public void Delete(Bpelc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblbpelc.NewttblbpelcRow(); Bpelc.BuildMinimalRow(ref row, record); this.dataSet.ttblbpelc.AddttblbpelcRow((pdsbpelcDataSet.ttblbpelcRow)row); } row.Delete(); this.SaveChanges(); }
public Bpelc Update(Bpelc 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.ttblbpelc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbpelc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Bpelc record) { this.repository.Delete(record); }
public Bpelc Update(Bpelc record) { return(this.repository.Update(record)); }
public Bpelc Insert(Bpelc record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Bpelc record) { Bpelc.UpdateRowFromBpelc(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Bpelc record) { this.adapter.Delete(record); }
public Bpelc Update(Bpelc record) { return(this.adapter.Update(record)); }
public Bpelc Insert(Bpelc record) { return(this.adapter.Insert(record)); }