public Apeid BuildFromRow(DataRow row) { var returnRecord = Apeid.BuildApeidFromRow(row); returnRecord = this.BuildExtraFromRow <Apeid>(returnRecord, row); return(returnRecord); }
public Apeid Insert(Apeid record) { DataRow row = this.dataSet.ttblapeid.NewttblapeidRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblapeid.AddttblapeidRow((pdsapeidDataSet.ttblapeidRow)row); this.SaveChanges(); return(this.dataSet.ttblapeid.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapeid.Rows[0]) : null); }
public Apeid GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Apeid apeid = null; if (row != null) { apeid = this.BuildFromRow(row); } return(apeid); }
protected Apeid Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblapeid.AsEnumerable().SingleOrDefault(); Apeid apeid = null; if (row != null) { apeid = this.BuildFromRow(row); } return(apeid); }
public void Delete(Apeid record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblapeid.NewttblapeidRow(); Apeid.BuildMinimalRow(ref row, record); this.dataSet.ttblapeid.AddttblapeidRow((pdsapeidDataSet.ttblapeidRow)row); } row.Delete(); this.SaveChanges(); }
public Apeid Update(Apeid 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.ttblapeid.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapeid.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Apeid record) { this.repository.Delete(record); }
public Apeid Update(Apeid record) { return(this.repository.Update(record)); }
public Apeid Insert(Apeid record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Apeid record) { Apeid.UpdateRowFromApeid(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Apeid record) { this.adapter.Delete(record); }
public Apeid Update(Apeid record) { return(this.adapter.Update(record)); }
public Apeid Insert(Apeid record) { return(this.adapter.Insert(record)); }