public Arsl BuildFromRow(DataRow row) { var returnRecord = Arsl.BuildArslFromRow(row); returnRecord = this.BuildExtraFromRow <Arsl>(returnRecord, row); return(returnRecord); }
public Arsl Insert(Arsl record) { DataRow row = this.dataSet.ttblarsl.NewttblarslRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarsl.AddttblarslRow((pdsarslDataSet.ttblarslRow)row); this.SaveChanges(); return(this.dataSet.ttblarsl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsl.Rows[0]) : null); }
public Arsl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arsl arsl = null; if (row != null) { arsl = this.BuildFromRow(row); } return(arsl); }
protected Arsl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarsl.AsEnumerable().SingleOrDefault(); Arsl arsl = null; if (row != null) { arsl = this.BuildFromRow(row); } return(arsl); }
public void Delete(Arsl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarsl.NewttblarslRow(); Arsl.BuildMinimalRow(ref row, record); this.dataSet.ttblarsl.AddttblarslRow((pdsarslDataSet.ttblarslRow)row); } row.Delete(); this.SaveChanges(); }
public Arsl Update(Arsl 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.ttblarsl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarsl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arsl record) { this.adapter.Delete(record); }
public Arsl Update(Arsl record) { return(this.adapter.Update(record)); }
public Arsl Insert(Arsl record) { return(this.adapter.Insert(record)); }
public void Delete(Arsl record) { this.repository.Delete(record); }
public Arsl Update(Arsl record) { return(this.repository.Update(record)); }
public Arsl Insert(Arsl record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arsl record) { Arsl.UpdateRowFromArsl(ref row, record); this.ExtraUpdateToRow(ref row, record); }