public Poehb BuildFromRow(DataRow row) { var returnRecord = Poehb.BuildPoehbFromRow(row); returnRecord = this.BuildExtraFromRow <Poehb>(returnRecord, row); return(returnRecord); }
public Poehb Insert(Poehb record) { DataRow row = this.dataSet.ttblpoehb.NewttblpoehbRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpoehb.AddttblpoehbRow((pdspoehbDataSet.ttblpoehbRow)row); this.SaveChanges(); return(this.dataSet.ttblpoehb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoehb.Rows[0]) : null); }
public Poehb GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Poehb poehb = null; if (row != null) { poehb = this.BuildFromRow(row); } return(poehb); }
protected Poehb Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpoehb.AsEnumerable().SingleOrDefault(); Poehb poehb = null; if (row != null) { poehb = this.BuildFromRow(row); } return(poehb); }
public void Delete(Poehb record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpoehb.NewttblpoehbRow(); Poehb.BuildMinimalRow(ref row, record); this.dataSet.ttblpoehb.AddttblpoehbRow((pdspoehbDataSet.ttblpoehbRow)row); } row.Delete(); this.SaveChanges(); }
public Poehb Update(Poehb 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.ttblpoehb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoehb.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Poehb record) { Poehb.UpdateRowFromPoehb(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Poehb record) { this.adapter.Delete(record); }
public Poehb Update(Poehb record) { return(this.adapter.Update(record)); }
public Poehb Insert(Poehb record) { return(this.adapter.Insert(record)); }
public void Delete(Poehb record) { this.repository.Delete(record); }
public Poehb Update(Poehb record) { return(this.repository.Update(record)); }
public Poehb Insert(Poehb record) { return(this.repository.Insert(record)); }