public PvSapbq BuildFromRow(DataRow row) { var returnRecord = PvSapbq.BuildPvSapbqFromRow(row); returnRecord = this.BuildExtraFromRow <PvSapbq>(returnRecord, row); return(returnRecord); }
public PvSapbq Insert(PvSapbq record) { DataRow row = this.dataSet.ttblpv_sapbq.Newttblpv_sapbqRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_sapbq.Addttblpv_sapbqRow((pdspv_sapbqDataSet.ttblpv_sapbqRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_sapbq.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_sapbq.Rows[0]) : null); }
public PvSapbq GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvSapbq pvSapbq = null; if (row != null) { pvSapbq = this.BuildFromRow(row); } return(pvSapbq); }
protected PvSapbq Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_sapbq.AsEnumerable().SingleOrDefault(); PvSapbq pvSapbq = null; if (row != null) { pvSapbq = this.BuildFromRow(row); } return(pvSapbq); }
public void Delete(PvSapbq record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_sapbq.Newttblpv_sapbqRow(); PvSapbq.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_sapbq.Addttblpv_sapbqRow((pdspv_sapbqDataSet.ttblpv_sapbqRow)row); } row.Delete(); this.SaveChanges(); }
public PvSapbq Update(PvSapbq 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_sapbq.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_sapbq.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public PvSapbq Update(PvSapbq record) { return(this.repository.Update(record)); }
public PvSapbq Insert(PvSapbq record) { return(this.repository.Insert(record)); }
public void Delete(PvSapbq record) { this.repository.Delete(record); }
public void Delete(PvSapbq record) { this.adapter.Delete(record); }
public PvSapbq Update(PvSapbq record) { return(this.adapter.Update(record)); }
public PvSapbq Insert(PvSapbq record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, PvSapbq record) { PvSapbq.UpdateRowFromPvSapbq(ref row, record); this.ExtraUpdateToRow(ref row, record); }