public Poela BuildFromRow(DataRow row) { var returnRecord = Poela.BuildPoelaFromRow(row); returnRecord = this.BuildExtraFromRow <Poela>(returnRecord, row); return(returnRecord); }
public Poela Insert(Poela record) { DataRow row = this.dataSet.ttblpoela.NewttblpoelaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpoela.AddttblpoelaRow((pdspoelaDataSet.ttblpoelaRow)row); this.SaveChanges(); return(this.dataSet.ttblpoela.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoela.Rows[0]) : null); }
public Poela GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Poela poela = null; if (row != null) { poela = this.BuildFromRow(row); } return(poela); }
protected Poela Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpoela.AsEnumerable().SingleOrDefault(); Poela poela = null; if (row != null) { poela = this.BuildFromRow(row); } return(poela); }
public void Delete(Poela record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpoela.NewttblpoelaRow(); Poela.BuildMinimalRow(ref row, record); this.dataSet.ttblpoela.AddttblpoelaRow((pdspoelaDataSet.ttblpoelaRow)row); } row.Delete(); this.SaveChanges(); }
public Poela Update(Poela 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.ttblpoela.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoela.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Poela record) { this.adapter.Delete(record); }
public Poela Update(Poela record) { return(this.adapter.Update(record)); }
public Poela Insert(Poela record) { return(this.adapter.Insert(record)); }
public void Delete(Poela record) { this.repository.Delete(record); }
public Poela Update(Poela record) { return(this.repository.Update(record)); }
public Poela Insert(Poela record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Poela record) { Poela.UpdateRowFromPoela(ref row, record); this.ExtraUpdateToRow(ref row, record); }