public Apemf BuildFromRow(DataRow row) { var returnRecord = Apemf.BuildApemfFromRow(row); returnRecord = this.BuildExtraFromRow <Apemf>(returnRecord, row); return(returnRecord); }
public Apemf Insert(Apemf record) { DataRow row = this.dataSet.ttblapemf.NewttblapemfRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblapemf.AddttblapemfRow((pdsapemfDataSet.ttblapemfRow)row); this.SaveChanges(); return(this.dataSet.ttblapemf.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapemf.Rows[0]) : null); }
public Apemf GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Apemf apemf = null; if (row != null) { apemf = this.BuildFromRow(row); } return(apemf); }
protected Apemf Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblapemf.AsEnumerable().SingleOrDefault(); Apemf apemf = null; if (row != null) { apemf = this.BuildFromRow(row); } return(apemf); }
public void Delete(Apemf record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblapemf.NewttblapemfRow(); Apemf.BuildMinimalRow(ref row, record); this.dataSet.ttblapemf.AddttblapemfRow((pdsapemfDataSet.ttblapemfRow)row); } row.Delete(); this.SaveChanges(); }
public Apemf Update(Apemf 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.ttblapemf.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapemf.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Apemf record) { this.repository.Delete(record); }
public Apemf Update(Apemf record) { return(this.repository.Update(record)); }
public Apemf Insert(Apemf record) { return(this.repository.Insert(record)); }
public void Delete(Apemf record) { this.adapter.Delete(record); }
public Apemf Update(Apemf record) { return(this.adapter.Update(record)); }
public Apemf Insert(Apemf record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Apemf record) { Apemf.UpdateRowFromApemf(ref row, record); this.ExtraUpdateToRow(ref row, record); }