public Bpehj BuildFromRow(DataRow row) { var returnRecord = Bpehj.BuildBpehjFromRow(row); returnRecord = this.BuildExtraFromRow <Bpehj>(returnRecord, row); return(returnRecord); }
public Bpehj Insert(Bpehj record) { DataRow row = this.dataSet.ttblbpehj.NewttblbpehjRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblbpehj.AddttblbpehjRow((pdsbpehjDataSet.ttblbpehjRow)row); this.SaveChanges(); return(this.dataSet.ttblbpehj.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbpehj.Rows[0]) : null); }
public Bpehj GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Bpehj bpehj = null; if (row != null) { bpehj = this.BuildFromRow(row); } return(bpehj); }
protected Bpehj Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblbpehj.AsEnumerable().SingleOrDefault(); Bpehj bpehj = null; if (row != null) { bpehj = this.BuildFromRow(row); } return(bpehj); }
public void Delete(Bpehj record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblbpehj.NewttblbpehjRow(); Bpehj.BuildMinimalRow(ref row, record); this.dataSet.ttblbpehj.AddttblbpehjRow((pdsbpehjDataSet.ttblbpehjRow)row); } row.Delete(); this.SaveChanges(); }
public Bpehj Update(Bpehj 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.ttblbpehj.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbpehj.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Bpehj record) { this.adapter.Delete(record); }
public Bpehj Update(Bpehj record) { return(this.adapter.Update(record)); }
public Bpehj Insert(Bpehj record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Bpehj record) { Bpehj.UpdateRowFromBpehj(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Bpehj record) { this.repository.Delete(record); }
public Bpehj Update(Bpehj record) { return(this.repository.Update(record)); }
public Bpehj Insert(Bpehj record) { return(this.repository.Insert(record)); }