public Oeehb BuildFromRow(DataRow row) { var returnRecord = Oeehb.BuildOeehbFromRow(row); returnRecord = this.BuildExtraFromRow <Oeehb>(returnRecord, row); return(returnRecord); }
public Oeehb Insert(Oeehb record) { DataRow row = this.dataSet.ttbloeehb.NewttbloeehbRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbloeehb.AddttbloeehbRow((pdsoeehbDataSet.ttbloeehbRow)row); this.SaveChanges(); return(this.dataSet.ttbloeehb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeehb.Rows[0]) : null); }
public Oeehb GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Oeehb oeehb = null; if (row != null) { oeehb = this.BuildFromRow(row); } return(oeehb); }
protected Oeehb Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbloeehb.AsEnumerable().SingleOrDefault(); Oeehb oeehb = null; if (row != null) { oeehb = this.BuildFromRow(row); } return(oeehb); }
public void Delete(Oeehb record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbloeehb.NewttbloeehbRow(); Oeehb.BuildMinimalRow(ref row, record); this.dataSet.ttbloeehb.AddttbloeehbRow((pdsoeehbDataSet.ttbloeehbRow)row); } row.Delete(); this.SaveChanges(); }
public Oeehb Update(Oeehb 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.ttbloeehb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeehb.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Oeehb record) { Oeehb.UpdateRowFromOeehb(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Oeehb record) { this.adapter.Delete(record); }
public Oeehb Update(Oeehb record) { return(this.adapter.Update(record)); }
public Oeehb Insert(Oeehb record) { return(this.adapter.Insert(record)); }
public void Delete(Oeehb record) { this.repository.Delete(record); }
public Oeehb Update(Oeehb record) { return(this.repository.Update(record)); }
public Oeehb Insert(Oeehb record) { return(this.repository.Insert(record)); }