public Rssj BuildFromRow(DataRow row) { var returnRecord = Rssj.BuildRssjFromRow(row); returnRecord = this.BuildExtraFromRow <Rssj>(returnRecord, row); return(returnRecord); }
public Rssj Insert(Rssj record) { DataRow row = this.dataSet.ttblrssj.NewttblrssjRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblrssj.AddttblrssjRow((pdsrssjDataSet.ttblrssjRow)row); this.SaveChanges(); return(this.dataSet.ttblrssj.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrssj.Rows[0]) : null); }
public Rssj GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Rssj rssj = null; if (row != null) { rssj = this.BuildFromRow(row); } return(rssj); }
protected Rssj Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblrssj.AsEnumerable().SingleOrDefault(); Rssj rssj = null; if (row != null) { rssj = this.BuildFromRow(row); } return(rssj); }
public void Delete(Rssj record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblrssj.NewttblrssjRow(); Rssj.BuildMinimalRow(ref row, record); this.dataSet.ttblrssj.AddttblrssjRow((pdsrssjDataSet.ttblrssjRow)row); } row.Delete(); this.SaveChanges(); }
public Rssj Update(Rssj 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.ttblrssj.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrssj.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Rssj Update(Rssj record) { return(this.repository.Update(record)); }
public Rssj Insert(Rssj record) { return(this.repository.Insert(record)); }
public void Delete(Rssj record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, Rssj record) { Rssj.UpdateRowFromRssj(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Rssj record) { this.adapter.Delete(record); }
public Rssj Update(Rssj record) { return(this.adapter.Update(record)); }
public Rssj Insert(Rssj record) { return(this.adapter.Insert(record)); }