public Poel BuildFromRow(DataRow row) { var returnRecord = Poel.BuildPoelFromRow(row); returnRecord = this.BuildExtraFromRow <Poel>(returnRecord, row); return(returnRecord); }
public Poel Insert(Poel record) { DataRow row = this.dataSet.ttblpoel.NewttblpoelRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpoel.AddttblpoelRow((pdspoelDataSet.ttblpoelRow)row); this.SaveChanges(); return(this.dataSet.ttblpoel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoel.Rows[0]) : null); }
public Poel GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Poel poel = null; if (row != null) { poel = this.BuildFromRow(row); } return(poel); }
protected Poel Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpoel.AsEnumerable().SingleOrDefault(); Poel poel = null; if (row != null) { poel = this.BuildFromRow(row); } return(poel); }
private void DeleteUseRowID(Poel record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpoel.NewttblpoelRow(); Poel.BuildMinimalRow(ref row, record); this.dataSet.ttblpoel.AddttblpoelRow((pdspoelDataSet.ttblpoelRow)row); } row.Delete(); this.SaveChanges(); }
public Poel Update(Poel record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblpoel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoel.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Poel record) { Poel.UpdateRowFromPoel(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Poel Update(Poel record) { return(this.adapter.Update(record)); }
public Poel Insert(Poel record) { return(this.adapter.Insert(record)); }
public void Delete(Poel record) { this.adapter.Delete(record); }
public void Delete(Poel record) { this.repository.Delete(record); }
public Poel Update(Poel record) { return(this.repository.Update(record)); }
public Poel Insert(Poel record) { return(this.repository.Insert(record)); }