public Pvobjects BuildFromRow(DataRow row) { var returnRecord = Pvobjects.BuildPvobjectsFromRow(row); returnRecord = this.BuildExtraFromRow <Pvobjects>(returnRecord, row); return(returnRecord); }
public Pvobjects Insert(Pvobjects record) { DataRow row = this.dataSet.ttblpvobjects.NewttblpvobjectsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpvobjects.AddttblpvobjectsRow((pdspvobjectsDataSet.ttblpvobjectsRow)row); this.SaveChanges(); return(this.dataSet.ttblpvobjects.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpvobjects.Rows[0]) : null); }
public Pvobjects GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pvobjects pvobjects = null; if (row != null) { pvobjects = this.BuildFromRow(row); } return(pvobjects); }
protected Pvobjects Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpvobjects.AsEnumerable().SingleOrDefault(); Pvobjects pvobjects = null; if (row != null) { pvobjects = this.BuildFromRow(row); } return(pvobjects); }
public void Delete(Pvobjects record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpvobjects.NewttblpvobjectsRow(); Pvobjects.BuildMinimalRow(ref row, record); this.dataSet.ttblpvobjects.AddttblpvobjectsRow((pdspvobjectsDataSet.ttblpvobjectsRow)row); } row.Delete(); this.SaveChanges(); }
public Pvobjects Update(Pvobjects 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.ttblpvobjects.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpvobjects.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Pvobjects record) { Pvobjects.UpdateRowFromPvobjects(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Pvobjects record) { this.adapter.Delete(record); }
public Pvobjects Update(Pvobjects record) { return(this.adapter.Update(record)); }
public Pvobjects Insert(Pvobjects record) { return(this.adapter.Insert(record)); }
public Pvobjects Insert(Pvobjects record) { return(this.repository.Insert(record)); }
public void Delete(Pvobjects record) { this.repository.Delete(record); }
public Pvobjects Update(Pvobjects record) { return(this.repository.Update(record)); }