public Pderc BuildFromRow(DataRow row) { var returnRecord = Pderc.BuildPdercFromRow(row); returnRecord = this.BuildExtraFromRow <Pderc>(returnRecord, row); return(returnRecord); }
public Pderc Insert(Pderc record) { DataRow row = this.dataSet.ttblpderc.NewttblpdercRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpderc.AddttblpdercRow((pdspdercDataSet.ttblpdercRow)row); this.SaveChanges(); return(this.dataSet.ttblpderc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpderc.Rows[0]) : null); }
public Pderc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pderc pderc = null; if (row != null) { pderc = this.BuildFromRow(row); } return(pderc); }
protected Pderc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpderc.AsEnumerable().SingleOrDefault(); Pderc pderc = null; if (row != null) { pderc = this.BuildFromRow(row); } return(pderc); }
public void Delete(Pderc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpderc.NewttblpdercRow(); Pderc.BuildMinimalRow(ref row, record); this.dataSet.ttblpderc.AddttblpdercRow((pdspdercDataSet.ttblpdercRow)row); } row.Delete(); this.SaveChanges(); }
public Pderc Update(Pderc 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.ttblpderc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpderc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Pderc record) { Pderc.UpdateRowFromPderc(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Pderc record) { this.adapter.Delete(record); }
public Pderc Update(Pderc record) { return(this.adapter.Update(record)); }
public Pderc Insert(Pderc record) { return(this.adapter.Insert(record)); }
public void Delete(Pderc record) { this.repository.Delete(record); }
public Pderc Update(Pderc record) { return(this.repository.Update(record)); }
public Pderc Insert(Pderc record) { return(this.repository.Insert(record)); }