public PvApebc BuildFromRow(DataRow row) { var returnRecord = PvApebc.BuildPvApebcFromRow(row); returnRecord = this.BuildExtraFromRow <PvApebc>(returnRecord, row); return(returnRecord); }
public PvApebc Insert(PvApebc record) { DataRow row = this.dataSet.ttblpv_apebc.Newttblpv_apebcRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_apebc.Addttblpv_apebcRow((pdspv_apebcDataSet.ttblpv_apebcRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_apebc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_apebc.Rows[0]) : null); }
public PvApebc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvApebc pvApebc = null; if (row != null) { pvApebc = this.BuildFromRow(row); } return(pvApebc); }
protected PvApebc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_apebc.AsEnumerable().SingleOrDefault(); PvApebc pvApebc = null; if (row != null) { pvApebc = this.BuildFromRow(row); } return(pvApebc); }
public void Delete(PvApebc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_apebc.Newttblpv_apebcRow(); PvApebc.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_apebc.Addttblpv_apebcRow((pdspv_apebcDataSet.ttblpv_apebcRow)row); } row.Delete(); this.SaveChanges(); }
public PvApebc Update(PvApebc 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_apebc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_apebc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(PvApebc record) { this.repository.Delete(record); }
public PvApebc Update(PvApebc record) { return(this.repository.Update(record)); }
public PvApebc Insert(PvApebc record) { return(this.repository.Insert(record)); }
public void Delete(PvApebc record) { this.adapter.Delete(record); }
public PvApebc Update(PvApebc record) { return(this.adapter.Update(record)); }
public PvApebc Insert(PvApebc record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, PvApebc record) { PvApebc.UpdateRowFromPvApebc(ref row, record); this.ExtraUpdateToRow(ref row, record); }