public Pdst BuildFromRow(DataRow row) { var returnRecord = Pdst.BuildPdstFromRow(row); returnRecord = this.BuildExtraFromRow <Pdst>(returnRecord, row); return(returnRecord); }
public Pdst Insert(Pdst record) { DataRow row = this.dataSet.ttblpdst.NewttblpdstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpdst.AddttblpdstRow((pdspdstDataSet.ttblpdstRow)row); this.SaveChanges(); return(this.dataSet.ttblpdst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpdst.Rows[0]) : null); }
public Pdst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pdst pdst = null; if (row != null) { pdst = this.BuildFromRow(row); } return(pdst); }
protected Pdst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpdst.AsEnumerable().SingleOrDefault(); Pdst pdst = null; if (row != null) { pdst = this.BuildFromRow(row); } return(pdst); }
public void Delete(Pdst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpdst.NewttblpdstRow(); Pdst.BuildMinimalRow(ref row, record); this.dataSet.ttblpdst.AddttblpdstRow((pdspdstDataSet.ttblpdstRow)row); } row.Delete(); this.SaveChanges(); }
public Pdst Update(Pdst 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.ttblpdst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpdst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Pdst record) { this.repository.Delete(record); }
public Pdst Update(Pdst record) { return(this.repository.Update(record)); }
public Pdst Insert(Pdst record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Pdst record) { Pdst.UpdateRowFromPdst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Pdst record) { this.adapter.Delete(record); }
public Pdst Update(Pdst record) { return(this.adapter.Update(record)); }
public Pdst Insert(Pdst record) { return(this.adapter.Insert(record)); }