public Arsop BuildFromRow(DataRow row) { var returnRecord = Arsop.BuildArsopFromRow(row); returnRecord = this.BuildExtraFromRow <Arsop>(returnRecord, row); return(returnRecord); }
public Arsop Insert(Arsop record) { DataRow row = this.dataSet.ttblarsop.NewttblarsopRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarsop.AddttblarsopRow((pdsarsopDataSet.ttblarsopRow)row); this.SaveChanges(); return(this.dataSet.ttblarsop.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsop.Rows[0]) : null); }
public Arsop GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arsop arsop = null; if (row != null) { arsop = this.BuildFromRow(row); } return(arsop); }
protected Arsop Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarsop.AsEnumerable().SingleOrDefault(); Arsop arsop = null; if (row != null) { arsop = this.BuildFromRow(row); } return(arsop); }
public void Delete(Arsop record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarsop.NewttblarsopRow(); Arsop.BuildMinimalRow(ref row, record); this.dataSet.ttblarsop.AddttblarsopRow((pdsarsopDataSet.ttblarsopRow)row); } row.Delete(); this.SaveChanges(); }
public Arsop Update(Arsop 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.ttblarsop.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsop.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arsop record) { this.adapter.Delete(record); }
public Arsop Update(Arsop record) { return(this.adapter.Update(record)); }
public Arsop Insert(Arsop record) { return(this.adapter.Insert(record)); }
public void Delete(Arsop record) { this.repository.Delete(record); }
public Arsop Update(Arsop record) { return(this.repository.Update(record)); }
public Arsop Insert(Arsop record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arsop record) { Arsop.UpdateRowFromArsop(ref row, record); this.ExtraUpdateToRow(ref row, record); }