public PvOeln BuildFromRow(DataRow row) { var returnRecord = PvOeln.BuildPvOelnFromRow(row); returnRecord = this.BuildExtraFromRow <PvOeln>(returnRecord, row); return(returnRecord); }
public PvOeln Insert(PvOeln record) { DataRow row = this.dataSet.ttblpv_oeln.Newttblpv_oelnRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_oeln.Addttblpv_oelnRow((pdspv_oelnDataSet.ttblpv_oelnRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_oeln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_oeln.Rows[0]) : null); }
public PvOeln GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvOeln pvOeln = null; if (row != null) { pvOeln = this.BuildFromRow(row); } return(pvOeln); }
protected PvOeln Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_oeln.AsEnumerable().SingleOrDefault(); PvOeln pvOeln = null; if (row != null) { pvOeln = this.BuildFromRow(row); } return(pvOeln); }
public void Delete(PvOeln record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_oeln.Newttblpv_oelnRow(); PvOeln.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_oeln.Addttblpv_oelnRow((pdspv_oelnDataSet.ttblpv_oelnRow)row); } row.Delete(); this.SaveChanges(); }
public PvOeln Update(PvOeln 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_oeln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_oeln.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, PvOeln record) { PvOeln.UpdateRowFromPvOeln(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(PvOeln record) { this.adapter.Delete(record); }
public PvOeln Update(PvOeln record) { return(this.adapter.Update(record)); }
public PvOeln Insert(PvOeln record) { return(this.adapter.Insert(record)); }
public PvOeln Insert(PvOeln record) { return(this.repository.Insert(record)); }
public void Delete(PvOeln record) { this.repository.Delete(record); }
public PvOeln Update(PvOeln record) { return(this.repository.Update(record)); }