public Pdss BuildFromRow(DataRow row) { var returnRecord = Pdss.BuildPdssFromRow(row); returnRecord = this.BuildExtraFromRow <Pdss>(returnRecord, row); return(returnRecord); }
public Pdss Insert(Pdss record) { DataRow row = this.dataSet.ttblpdss.NewttblpdssRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpdss.AddttblpdssRow((pdspdssDataSet.ttblpdssRow)row); this.SaveChanges(); return(this.dataSet.ttblpdss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpdss.Rows[0]) : null); }
public Pdss GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pdss pdss = null; if (row != null) { pdss = this.BuildFromRow(row); } return(pdss); }
protected Pdss Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpdss.AsEnumerable().SingleOrDefault(); Pdss pdss = null; if (row != null) { pdss = this.BuildFromRow(row); } return(pdss); }
public void Delete(Pdss record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpdss.NewttblpdssRow(); Pdss.BuildMinimalRow(ref row, record); this.dataSet.ttblpdss.AddttblpdssRow((pdspdssDataSet.ttblpdssRow)row); } row.Delete(); this.SaveChanges(); }
public Pdss Update(Pdss 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.ttblpdss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpdss.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Pdss record) { Pdss.UpdateRowFromPdss(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Pdss record) { this.repository.Delete(record); }
public Pdss Update(Pdss record) { return(this.repository.Update(record)); }
public Pdss Insert(Pdss record) { return(this.repository.Insert(record)); }
public void Delete(Pdss record) { this.adapter.Delete(record); }
public Pdss Update(Pdss record) { return(this.adapter.Update(record)); }
public Pdss Insert(Pdss record) { return(this.adapter.Insert(record)); }