public Oeai BuildFromRow(DataRow row) { var returnRecord = Oeai.BuildOeaiFromRow(row); returnRecord = this.BuildExtraFromRow <Oeai>(returnRecord, row); return(returnRecord); }
public Oeai Insert(Oeai record) { DataRow row = this.dataSet.ttbloeai.NewttbloeaiRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbloeai.AddttbloeaiRow((pdsoeaiDataSet.ttbloeaiRow)row); this.SaveChanges(); return(this.dataSet.ttbloeai.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeai.Rows[0]) : null); }
public Oeai GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Oeai oeai = null; if (row != null) { oeai = this.BuildFromRow(row); } return(oeai); }
protected Oeai Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbloeai.AsEnumerable().SingleOrDefault(); Oeai oeai = null; if (row != null) { oeai = this.BuildFromRow(row); } return(oeai); }
public void Delete(Oeai record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbloeai.NewttbloeaiRow(); Oeai.BuildMinimalRow(ref row, record); this.dataSet.ttbloeai.AddttbloeaiRow((pdsoeaiDataSet.ttbloeaiRow)row); } row.Delete(); this.SaveChanges(); }
public Oeai Update(Oeai 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.ttbloeai.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeai.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Oeai Insert(Oeai record) { return(this.repository.Insert(record)); }
public void Delete(Oeai record) { this.repository.Delete(record); }
public Oeai Update(Oeai record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Oeai record) { Oeai.UpdateRowFromOeai(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Oeai record) { this.adapter.Delete(record); }
public Oeai Update(Oeai record) { return(this.adapter.Update(record)); }
public Oeai Insert(Oeai record) { return(this.adapter.Insert(record)); }