public Arsp BuildFromRow(DataRow row) { var returnRecord = Arsp.BuildArspFromRow(row); returnRecord = this.BuildExtraFromRow <Arsp>(returnRecord, row); return(returnRecord); }
public Arsp Insert(Arsp record) { DataRow row = this.dataSet.ttblarsp.NewttblarspRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarsp.AddttblarspRow((pdsarspDataSet.ttblarspRow)row); this.SaveChanges(); return(this.dataSet.ttblarsp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsp.Rows[0]) : null); }
public Arsp GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arsp arsp = null; if (row != null) { arsp = this.BuildFromRow(row); } return(arsp); }
protected Arsp Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarsp.AsEnumerable().SingleOrDefault(); Arsp arsp = null; if (row != null) { arsp = this.BuildFromRow(row); } return(arsp); }
public void Delete(Arsp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarsp.NewttblarspRow(); Arsp.BuildMinimalRow(ref row, record); this.dataSet.ttblarsp.AddttblarspRow((pdsarspDataSet.ttblarspRow)row); } row.Delete(); this.SaveChanges(); }
public Arsp Update(Arsp 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.ttblarsp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsp.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Arsp Insert(Arsp record) { return(this.repository.Insert(record)); }
public void Delete(Arsp record) { this.repository.Delete(record); }
public Arsp Update(Arsp record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Arsp record) { Arsp.UpdateRowFromArsp(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Arsp record) { this.adapter.Delete(record); }
public Arsp Update(Arsp record) { return(this.adapter.Update(record)); }
public Arsp Insert(Arsp record) { return(this.adapter.Insert(record)); }