public Arso BuildFromRow(DataRow row) { var returnRecord = Arso.BuildArsoFromRow(row); returnRecord = this.BuildExtraFromRow <Arso>(returnRecord, row); return(returnRecord); }
public Arso Insert(Arso record) { DataRow row = this.dataSet.ttblarso.NewttblarsoRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarso.AddttblarsoRow((pdsarsoDataSet.ttblarsoRow)row); this.SaveChanges(); return(this.dataSet.ttblarso.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarso.Rows[0]) : null); }
public Arso GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arso arso = null; if (row != null) { arso = this.BuildFromRow(row); } return(arso); }
protected Arso Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarso.AsEnumerable().SingleOrDefault(); Arso arso = null; if (row != null) { arso = this.BuildFromRow(row); } return(arso); }
public void Delete(Arso record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarso.NewttblarsoRow(); Arso.BuildMinimalRow(ref row, record); this.dataSet.ttblarso.AddttblarsoRow((pdsarsoDataSet.ttblarsoRow)row); } row.Delete(); this.SaveChanges(); }
public Arso Update(Arso 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.ttblarso.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarso.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Arso record) { Arso.UpdateRowFromArso(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Arso record) { this.adapter.Delete(record); }
public Arso Update(Arso record) { return(this.adapter.Update(record)); }
public Arso Insert(Arso record) { return(this.adapter.Insert(record)); }
public void Delete(Arso record) { this.repository.Delete(record); }
public Arso Update(Arso record) { return(this.repository.Update(record)); }
public Arso Insert(Arso record) { return(this.repository.Insert(record)); }