public Oeinvp BuildFromRow(DataRow row) { var returnRecord = Oeinvp.BuildOeinvpFromRow(row); returnRecord = this.BuildExtraFromRow <Oeinvp>(returnRecord, row); return(returnRecord); }
public Oeinvp Insert(Oeinvp record) { DataRow row = this.dataSet.ttbloeinvp.NewttbloeinvpRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbloeinvp.AddttbloeinvpRow((pdsoeinvpDataSet.ttbloeinvpRow)row); this.SaveChanges(); return(this.dataSet.ttbloeinvp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeinvp.Rows[0]) : null); }
public Oeinvp GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Oeinvp oeinvp = null; if (row != null) { oeinvp = this.BuildFromRow(row); } return(oeinvp); }
protected Oeinvp Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbloeinvp.AsEnumerable().SingleOrDefault(); Oeinvp oeinvp = null; if (row != null) { oeinvp = this.BuildFromRow(row); } return(oeinvp); }
public void Delete(Oeinvp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbloeinvp.NewttbloeinvpRow(); Oeinvp.BuildMinimalRow(ref row, record); this.dataSet.ttbloeinvp.AddttbloeinvpRow((pdsoeinvpDataSet.ttbloeinvpRow)row); } row.Delete(); this.SaveChanges(); }
public Oeinvp Update(Oeinvp 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.ttbloeinvp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeinvp.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Oeinvp Insert(Oeinvp record) { return(this.repository.Insert(record)); }
public void Delete(Oeinvp record) { this.repository.Delete(record); }
public Oeinvp Update(Oeinvp record) { return(this.repository.Update(record)); }
public void Delete(Oeinvp record) { this.adapter.Delete(record); }
public Oeinvp Update(Oeinvp record) { return(this.adapter.Update(record)); }
public Oeinvp Insert(Oeinvp record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Oeinvp record) { Oeinvp.UpdateRowFromOeinvp(ref row, record); this.ExtraUpdateToRow(ref row, record); }