public PvApeba BuildFromRow(DataRow row) { var returnRecord = PvApeba.BuildPvApebaFromRow(row); returnRecord = this.BuildExtraFromRow <PvApeba>(returnRecord, row); return(returnRecord); }
public PvApeba Insert(PvApeba record) { DataRow row = this.dataSet.ttblpv_apeba.Newttblpv_apebaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_apeba.Addttblpv_apebaRow((pdspv_apebaDataSet.ttblpv_apebaRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_apeba.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_apeba.Rows[0]) : null); }
public PvApeba GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvApeba pvApeba = null; if (row != null) { pvApeba = this.BuildFromRow(row); } return(pvApeba); }
protected PvApeba Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_apeba.AsEnumerable().SingleOrDefault(); PvApeba pvApeba = null; if (row != null) { pvApeba = this.BuildFromRow(row); } return(pvApeba); }
public void Delete(PvApeba record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_apeba.Newttblpv_apebaRow(); PvApeba.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_apeba.Addttblpv_apebaRow((pdspv_apebaDataSet.ttblpv_apebaRow)row); } row.Delete(); this.SaveChanges(); }
public PvApeba Update(PvApeba 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.ttblpv_apeba.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_apeba.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(PvApeba record) { this.repository.Delete(record); }
public PvApeba Update(PvApeba record) { return(this.repository.Update(record)); }
public PvApeba Insert(PvApeba record) { return(this.repository.Insert(record)); }
public void Delete(PvApeba record) { this.adapter.Delete(record); }
public PvApeba Update(PvApeba record) { return(this.adapter.Update(record)); }
public PvApeba Insert(PvApeba record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, PvApeba record) { PvApeba.UpdateRowFromPvApeba(ref row, record); this.ExtraUpdateToRow(ref row, record); }