public Apeia BuildFromRow(DataRow row) { var returnRecord = Apeia.BuildApeiaFromRow(row); returnRecord = this.BuildExtraFromRow <Apeia>(returnRecord, row); return(returnRecord); }
public Apeia Insert(Apeia record) { DataRow row = this.dataSet.ttblapeia.NewttblapeiaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblapeia.AddttblapeiaRow((pdsapeiaDataSet.ttblapeiaRow)row); this.SaveChanges(); return(this.dataSet.ttblapeia.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapeia.Rows[0]) : null); }
public Apeia GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Apeia apeia = null; if (row != null) { apeia = this.BuildFromRow(row); } return(apeia); }
protected Apeia Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblapeia.AsEnumerable().SingleOrDefault(); Apeia apeia = null; if (row != null) { apeia = this.BuildFromRow(row); } return(apeia); }
public void Delete(Apeia record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblapeia.NewttblapeiaRow(); Apeia.BuildMinimalRow(ref row, record); this.dataSet.ttblapeia.AddttblapeiaRow((pdsapeiaDataSet.ttblapeiaRow)row); } row.Delete(); this.SaveChanges(); }
public Apeia Update(Apeia 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.ttblapeia.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapeia.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Apeia record) { Apeia.UpdateRowFromApeia(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Apeia record) { this.repository.Delete(record); }
public Apeia Update(Apeia record) { return(this.repository.Update(record)); }
public Apeia Insert(Apeia record) { return(this.repository.Insert(record)); }
public void Delete(Apeia record) { this.adapter.Delete(record); }
public Apeia Update(Apeia record) { return(this.adapter.Update(record)); }
public Apeia Insert(Apeia record) { return(this.adapter.Insert(record)); }