public Poelb BuildFromRow(DataRow row) { var returnRecord = Poelb.BuildPoelbFromRow(row); returnRecord = this.BuildExtraFromRow <Poelb>(returnRecord, row); return(returnRecord); }
public Poelb Insert(Poelb record) { DataRow row = this.dataSet.ttblpoelb.NewttblpoelbRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpoelb.AddttblpoelbRow((pdspoelbDataSet.ttblpoelbRow)row); this.SaveChanges(); return(this.dataSet.ttblpoelb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoelb.Rows[0]) : null); }
public Poelb GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Poelb poelb = null; if (row != null) { poelb = this.BuildFromRow(row); } return(poelb); }
protected Poelb Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpoelb.AsEnumerable().SingleOrDefault(); Poelb poelb = null; if (row != null) { poelb = this.BuildFromRow(row); } return(poelb); }
public void Delete(Poelb record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpoelb.NewttblpoelbRow(); Poelb.BuildMinimalRow(ref row, record); this.dataSet.ttblpoelb.AddttblpoelbRow((pdspoelbDataSet.ttblpoelbRow)row); } row.Delete(); this.SaveChanges(); }
public Poelb Update(Poelb 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.ttblpoelb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoelb.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Poelb record) { this.repository.Delete(record); }
public Poelb Update(Poelb record) { return(this.repository.Update(record)); }
public Poelb Insert(Poelb record) { return(this.repository.Insert(record)); }
public void Delete(Poelb record) { this.adapter.Delete(record); }
public Poelb Update(Poelb record) { return(this.adapter.Update(record)); }
public Poelb Insert(Poelb record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Poelb record) { Poelb.UpdateRowFromPoelb(ref row, record); this.ExtraUpdateToRow(ref row, record); }