public Rssq BuildFromRow(DataRow row) { var returnRecord = Rssq.BuildRssqFromRow(row); returnRecord = this.BuildExtraFromRow <Rssq>(returnRecord, row); return(returnRecord); }
public Rssq Insert(Rssq record) { DataRow row = this.dataSet.ttblrssq.NewttblrssqRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblrssq.AddttblrssqRow((pdsrssqDataSet.ttblrssqRow)row); this.SaveChanges(); return(this.dataSet.ttblrssq.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrssq.Rows[0]) : null); }
public Rssq GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Rssq rssq = null; if (row != null) { rssq = this.BuildFromRow(row); } return(rssq); }
protected Rssq Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblrssq.AsEnumerable().SingleOrDefault(); Rssq rssq = null; if (row != null) { rssq = this.BuildFromRow(row); } return(rssq); }
public void Delete(Rssq record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblrssq.NewttblrssqRow(); Rssq.BuildMinimalRow(ref row, record); this.dataSet.ttblrssq.AddttblrssqRow((pdsrssqDataSet.ttblrssqRow)row); } row.Delete(); this.SaveChanges(); }
public Rssq Update(Rssq 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.ttblrssq.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrssq.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Rssq record) { Rssq.UpdateRowFromRssq(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Rssq record) { this.adapter.Delete(record); }
public Rssq Update(Rssq record) { return(this.adapter.Update(record)); }
public Rssq Insert(Rssq record) { return(this.adapter.Insert(record)); }
public void Delete(Rssq record) { this.repository.Delete(record); }
public Rssq Update(Rssq record) { return(this.repository.Update(record)); }
public Rssq Insert(Rssq record) { return(this.repository.Insert(record)); }