public Rssjc BuildFromRow(DataRow row) { var returnRecord = Rssjc.BuildRssjcFromRow(row); returnRecord = this.BuildExtraFromRow <Rssjc>(returnRecord, row); return(returnRecord); }
public Rssjc Insert(Rssjc record) { DataRow row = this.dataSet.ttblrssjc.NewttblrssjcRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblrssjc.AddttblrssjcRow((pdsrssjcDataSet.ttblrssjcRow)row); this.SaveChanges(); return(this.dataSet.ttblrssjc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrssjc.Rows[0]) : null); }
public Rssjc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Rssjc rssjc = null; if (row != null) { rssjc = this.BuildFromRow(row); } return(rssjc); }
protected Rssjc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblrssjc.AsEnumerable().SingleOrDefault(); Rssjc rssjc = null; if (row != null) { rssjc = this.BuildFromRow(row); } return(rssjc); }
public void Delete(Rssjc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblrssjc.NewttblrssjcRow(); Rssjc.BuildMinimalRow(ref row, record); this.dataSet.ttblrssjc.AddttblrssjcRow((pdsrssjcDataSet.ttblrssjcRow)row); } row.Delete(); this.SaveChanges(); }
public Rssjc Update(Rssjc 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.ttblrssjc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrssjc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Rssjc record) { this.repository.Delete(record); }
public Rssjc Update(Rssjc record) { return(this.repository.Update(record)); }
public Rssjc Insert(Rssjc record) { return(this.repository.Insert(record)); }
public void Delete(Rssjc record) { this.adapter.Delete(record); }
public Rssjc Update(Rssjc record) { return(this.adapter.Update(record)); }
public Rssjc Insert(Rssjc record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Rssjc record) { Rssjc.UpdateRowFromRssjc(ref row, record); this.ExtraUpdateToRow(ref row, record); }