public Apef BuildFromRow(DataRow row) { var returnRecord = Apef.BuildApefFromRow(row); returnRecord = this.BuildExtraFromRow <Apef>(returnRecord, row); return(returnRecord); }
public Apef Insert(Apef record) { DataRow row = this.dataSet.ttblapef.NewttblapefRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblapef.AddttblapefRow((pdsapefDataSet.ttblapefRow)row); this.SaveChanges(); return(this.dataSet.ttblapef.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapef.Rows[0]) : null); }
public Apef GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Apef apef = null; if (row != null) { apef = this.BuildFromRow(row); } return(apef); }
protected Apef Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblapef.AsEnumerable().SingleOrDefault(); Apef apef = null; if (row != null) { apef = this.BuildFromRow(row); } return(apef); }
public void Delete(Apef record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblapef.NewttblapefRow(); Apef.BuildMinimalRow(ref row, record); this.dataSet.ttblapef.AddttblapefRow((pdsapefDataSet.ttblapefRow)row); } row.Delete(); this.SaveChanges(); }
public Apef Update(Apef 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.ttblapef.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapef.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Apef record) { this.adapter.Delete(record); }
public Apef Update(Apef record) { return(this.adapter.Update(record)); }
public Apef Insert(Apef record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Apef record) { Apef.UpdateRowFromApef(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Apef record) { this.repository.Delete(record); }
public Apef Update(Apef record) { return(this.repository.Update(record)); }
public Apef Insert(Apef record) { return(this.repository.Insert(record)); }