public Sapbv BuildFromRow(DataRow row) { var returnRecord = Sapbv.BuildSapbvFromRow(row); returnRecord = this.BuildExtraFromRow <Sapbv>(returnRecord, row); return(returnRecord); }
public Sapbv Insert(Sapbv record) { DataRow row = this.dataSet.ttblsapbv.NewttblsapbvRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsapbv.AddttblsapbvRow((pdssapbvDataSet.ttblsapbvRow)row); this.SaveChanges(); return(this.dataSet.ttblsapbv.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsapbv.Rows[0]) : null); }
public Sapbv GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sapbv sapbv = null; if (row != null) { sapbv = this.BuildFromRow(row); } return(sapbv); }
protected Sapbv Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsapbv.AsEnumerable().SingleOrDefault(); Sapbv sapbv = null; if (row != null) { sapbv = this.BuildFromRow(row); } return(sapbv); }
public void Delete(Sapbv record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsapbv.NewttblsapbvRow(); Sapbv.BuildMinimalRow(ref row, record); this.dataSet.ttblsapbv.AddttblsapbvRow((pdssapbvDataSet.ttblsapbvRow)row); } row.Delete(); this.SaveChanges(); }
public Sapbv Update(Sapbv 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.ttblsapbv.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsapbv.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Sapbv record) { this.repository.Delete(record); }
public Sapbv Update(Sapbv record) { return(this.repository.Update(record)); }
public Sapbv Insert(Sapbv record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Sapbv record) { Sapbv.UpdateRowFromSapbv(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sapbv record) { this.adapter.Delete(record); }
public Sapbv Update(Sapbv record) { return(this.adapter.Update(record)); }
public Sapbv Insert(Sapbv record) { return(this.adapter.Insert(record)); }