public Arsd BuildFromRow(DataRow row) { var returnRecord = Arsd.BuildArsdFromRow(row); returnRecord = this.BuildExtraFromRow <Arsd>(returnRecord, row); return(returnRecord); }
public Arsd Insert(Arsd record) { DataRow row = this.dataSet.ttblarsd.NewttblarsdRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarsd.AddttblarsdRow((pdsarsdDataSet.ttblarsdRow)row); this.SaveChanges(); return(this.dataSet.ttblarsd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsd.Rows[0]) : null); }
public Arsd GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arsd arsd = null; if (row != null) { arsd = this.BuildFromRow(row); } return(arsd); }
protected Arsd Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarsd.AsEnumerable().SingleOrDefault(); Arsd arsd = null; if (row != null) { arsd = this.BuildFromRow(row); } return(arsd); }
private void DeleteUseRowID(Arsd record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarsd.NewttblarsdRow(); Arsd.BuildMinimalRow(ref row, record); this.dataSet.ttblarsd.AddttblarsdRow((pdsarsdDataSet.ttblarsdRow)row); } row.Delete(); this.SaveChanges(); }
public Arsd Update(Arsd record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblarsd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsd.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arsd record) { this.adapter.Delete(record); }
public Arsd Update(Arsd record) { return(this.adapter.Update(record)); }
public Arsd Insert(Arsd record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arsd record) { Arsd.UpdateRowFromArsd(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Arsd record) { this.repository.Delete(record); }
public Arsd Update(Arsd record) { return(this.repository.Update(record)); }
public Arsd Insert(Arsd record) { return(this.repository.Insert(record)); }