public Oeao BuildFromRow(DataRow row) { var returnRecord = Oeao.BuildOeaoFromRow(row); returnRecord = this.BuildExtraFromRow <Oeao>(returnRecord, row); return(returnRecord); }
public Oeao Insert(Oeao record) { DataRow row = this.dataSet.ttbloeao.NewttbloeaoRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbloeao.AddttbloeaoRow((pdsoeaoDataSet.ttbloeaoRow)row); this.SaveChanges(); return(this.dataSet.ttbloeao.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeao.Rows[0]) : null); }
public Oeao GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Oeao oeao = null; if (row != null) { oeao = this.BuildFromRow(row); } return(oeao); }
protected Oeao Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbloeao.AsEnumerable().SingleOrDefault(); Oeao oeao = null; if (row != null) { oeao = this.BuildFromRow(row); } return(oeao); }
public void Delete(Oeao record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbloeao.NewttbloeaoRow(); Oeao.BuildMinimalRow(ref row, record); this.dataSet.ttbloeao.AddttbloeaoRow((pdsoeaoDataSet.ttbloeaoRow)row); } row.Delete(); this.SaveChanges(); }
public Oeao Update(Oeao 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.ttbloeao.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeao.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Oeao record) { Oeao.UpdateRowFromOeao(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Oeao record) { this.adapter.Delete(record); }
public Oeao Update(Oeao record) { return(this.adapter.Update(record)); }
public Oeao Insert(Oeao record) { return(this.adapter.Insert(record)); }
public Oeao Insert(Oeao record) { return(this.repository.Insert(record)); }
public void Delete(Oeao record) { this.repository.Delete(record); }
public Oeao Update(Oeao record) { return(this.repository.Update(record)); }