public Arscl BuildFromRow(DataRow row) { var returnRecord = Arscl.BuildArsclFromRow(row); returnRecord = this.BuildExtraFromRow <Arscl>(returnRecord, row); return(returnRecord); }
public Arscl Insert(Arscl record) { DataRow row = this.dataSet.ttblarscl.NewttblarsclRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarscl.AddttblarsclRow((pdsarsclDataSet.ttblarsclRow)row); this.SaveChanges(); return(this.dataSet.ttblarscl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarscl.Rows[0]) : null); }
public Arscl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arscl arscl = null; if (row != null) { arscl = this.BuildFromRow(row); } return(arscl); }
protected Arscl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarscl.AsEnumerable().SingleOrDefault(); Arscl arscl = null; if (row != null) { arscl = this.BuildFromRow(row); } return(arscl); }
public void Delete(Arscl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarscl.NewttblarsclRow(); Arscl.BuildMinimalRow(ref row, record); this.dataSet.ttblarscl.AddttblarsclRow((pdsarsclDataSet.ttblarsclRow)row); } row.Delete(); this.SaveChanges(); }
public Arscl Update(Arscl 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.ttblarscl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarscl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arscl record) { this.repository.Delete(record); }
public Arscl Update(Arscl record) { return(this.repository.Update(record)); }
public Arscl Insert(Arscl record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arscl record) { Arscl.UpdateRowFromArscl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Arscl record) { this.adapter.Delete(record); }
public Arscl Update(Arscl record) { return(this.adapter.Update(record)); }
public Arscl Insert(Arscl record) { return(this.adapter.Insert(record)); }