public Pder BuildFromRow(DataRow row) { var returnRecord = Pder.BuildPderFromRow(row); returnRecord = this.BuildExtraFromRow <Pder>(returnRecord, row); return(returnRecord); }
public Pder Insert(Pder record) { DataRow row = this.dataSet.ttblpder.NewttblpderRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpder.AddttblpderRow((pdspderDataSet.ttblpderRow)row); this.SaveChanges(); return(this.dataSet.ttblpder.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpder.Rows[0]) : null); }
public Pder GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pder pder = null; if (row != null) { pder = this.BuildFromRow(row); } return(pder); }
protected Pder Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpder.AsEnumerable().SingleOrDefault(); Pder pder = null; if (row != null) { pder = this.BuildFromRow(row); } return(pder); }
public void Delete(Pder record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpder.NewttblpderRow(); Pder.BuildMinimalRow(ref row, record); this.dataSet.ttblpder.AddttblpderRow((pdspderDataSet.ttblpderRow)row); } row.Delete(); this.SaveChanges(); }
public Pder Update(Pder 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.ttblpder.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpder.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Pder record) { Pder.UpdateRowFromPder(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Pder record) { this.repository.Delete(record); }
public Pder Update(Pder record) { return(this.repository.Update(record)); }
public Pder Insert(Pder record) { return(this.repository.Insert(record)); }
public void Delete(Pder record) { this.adapter.Delete(record); }
public Pder Update(Pder record) { return(this.adapter.Update(record)); }
public Pder Insert(Pder record) { return(this.adapter.Insert(record)); }