public Arbsid BuildFromRow(DataRow row) { var returnRecord = Arbsid.BuildArbsidFromRow(row); returnRecord = this.BuildExtraFromRow <Arbsid>(returnRecord, row); return(returnRecord); }
public Arbsid Insert(Arbsid record) { DataRow row = this.dataSet.ttblarbsid.NewttblarbsidRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarbsid.AddttblarbsidRow((pdsarbsidDataSet.ttblarbsidRow)row); this.SaveChanges(); return(this.dataSet.ttblarbsid.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbsid.Rows[0]) : null); }
public Arbsid GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arbsid arbsid = null; if (row != null) { arbsid = this.BuildFromRow(row); } return(arbsid); }
protected Arbsid Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarbsid.AsEnumerable().SingleOrDefault(); Arbsid arbsid = null; if (row != null) { arbsid = this.BuildFromRow(row); } return(arbsid); }
public void Delete(Arbsid record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarbsid.NewttblarbsidRow(); Arbsid.BuildMinimalRow(ref row, record); this.dataSet.ttblarbsid.AddttblarbsidRow((pdsarbsidDataSet.ttblarbsidRow)row); } row.Delete(); this.SaveChanges(); }
public Arbsid Update(Arbsid 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.ttblarbsid.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbsid.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arbsid record) { this.adapter.Delete(record); }
public Arbsid Update(Arbsid record) { return(this.adapter.Update(record)); }
public Arbsid Insert(Arbsid record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arbsid record) { Arbsid.UpdateRowFromArbsid(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Arbsid Update(Arbsid record) { return(this.repository.Update(record)); }
public Arbsid Insert(Arbsid record) { return(this.repository.Insert(record)); }
public void Delete(Arbsid record) { this.repository.Delete(record); }