public Oeelb BuildFromRow(DataRow row) { var returnRecord = Oeelb.BuildOeelbFromRow(row); returnRecord = this.BuildExtraFromRow <Oeelb>(returnRecord, row); return(returnRecord); }
public Oeelb Insert(Oeelb record) { DataRow row = this.dataSet.ttbloeelb.NewttbloeelbRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbloeelb.AddttbloeelbRow((pdsoeelbDataSet.ttbloeelbRow)row); this.SaveChanges(); return(this.dataSet.ttbloeelb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeelb.Rows[0]) : null); }
public Oeelb GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Oeelb oeelb = null; if (row != null) { oeelb = this.BuildFromRow(row); } return(oeelb); }
protected Oeelb Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbloeelb.AsEnumerable().SingleOrDefault(); Oeelb oeelb = null; if (row != null) { oeelb = this.BuildFromRow(row); } return(oeelb); }
public void Delete(Oeelb record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbloeelb.NewttbloeelbRow(); Oeelb.BuildMinimalRow(ref row, record); this.dataSet.ttbloeelb.AddttbloeelbRow((pdsoeelbDataSet.ttbloeelbRow)row); } row.Delete(); this.SaveChanges(); }
public Oeelb Update(Oeelb 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.ttbloeelb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeelb.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Oeelb record) { this.adapter.Delete(record); }
public Oeelb Update(Oeelb record) { return(this.adapter.Update(record)); }
public Oeelb Insert(Oeelb record) { return(this.adapter.Insert(record)); }
public Oeelb Insert(Oeelb record) { return(this.repository.Insert(record)); }
public void Delete(Oeelb record) { this.repository.Delete(record); }
public Oeelb Update(Oeelb record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Oeelb record) { Oeelb.UpdateRowFromOeelb(ref row, record); this.ExtraUpdateToRow(ref row, record); }