public Arsrt BuildFromRow(DataRow row) { var returnRecord = Arsrt.BuildArsrtFromRow(row); returnRecord = this.BuildExtraFromRow <Arsrt>(returnRecord, row); return(returnRecord); }
public Arsrt Insert(Arsrt record) { DataRow row = this.dataSet.ttblarsrt.NewttblarsrtRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarsrt.AddttblarsrtRow((pdsarsrtDataSet.ttblarsrtRow)row); this.SaveChanges(); return(this.dataSet.ttblarsrt.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsrt.Rows[0]) : null); }
public Arsrt GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arsrt arsrt = null; if (row != null) { arsrt = this.BuildFromRow(row); } return(arsrt); }
protected Arsrt Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarsrt.AsEnumerable().SingleOrDefault(); Arsrt arsrt = null; if (row != null) { arsrt = this.BuildFromRow(row); } return(arsrt); }
public void Delete(Arsrt record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarsrt.NewttblarsrtRow(); Arsrt.BuildMinimalRow(ref row, record); this.dataSet.ttblarsrt.AddttblarsrtRow((pdsarsrtDataSet.ttblarsrtRow)row); } row.Delete(); this.SaveChanges(); }
public Arsrt Update(Arsrt 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.ttblarsrt.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsrt.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arsrt record) { this.adapter.Delete(record); }
public Arsrt Update(Arsrt record) { return(this.adapter.Update(record)); }
public Arsrt Insert(Arsrt record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arsrt record) { Arsrt.UpdateRowFromArsrt(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Arsrt record) { this.repository.Delete(record); }
public Arsrt Update(Arsrt record) { return(this.repository.Update(record)); }
public Arsrt Insert(Arsrt record) { return(this.repository.Insert(record)); }