public Apei BuildFromRow(DataRow row) { var returnRecord = Apei.BuildApeiFromRow(row); returnRecord = this.BuildExtraFromRow <Apei>(returnRecord, row); return(returnRecord); }
public Apei Insert(Apei record) { DataRow row = this.dataSet.ttblapei.NewttblapeiRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblapei.AddttblapeiRow((pdsapeiDataSet.ttblapeiRow)row); this.SaveChanges(); return(this.dataSet.ttblapei.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapei.Rows[0]) : null); }
public Apei GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Apei apei = null; if (row != null) { apei = this.BuildFromRow(row); } return(apei); }
protected Apei Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblapei.AsEnumerable().SingleOrDefault(); Apei apei = null; if (row != null) { apei = this.BuildFromRow(row); } return(apei); }
private void DeleteUseRowID(Apei record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblapei.NewttblapeiRow(); Apei.BuildMinimalRow(ref row, record); this.dataSet.ttblapei.AddttblapeiRow((pdsapeiDataSet.ttblapeiRow)row); } row.Delete(); this.SaveChanges(); }
public Apei Update(Apei record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblapei.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapei.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Apei record) { Apei.UpdateRowFromApei(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Apei record) { this.adapter.Delete(record); }
public Apei Update(Apei record) { return(this.adapter.Update(record)); }
public Apei Insert(Apei record) { return(this.adapter.Insert(record)); }
public void Delete(Apei record) { this.repository.Delete(record); }
public Apei Update(Apei record) { return(this.repository.Update(record)); }
public Apei Insert(Apei record) { return(this.repository.Insert(record)); }