public Pvsassmobj BuildFromRow(DataRow row) { var returnRecord = Pvsassmobj.BuildPvsassmobjFromRow(row); returnRecord = this.BuildExtraFromRow <Pvsassmobj>(returnRecord, row); return(returnRecord); }
public Pvsassmobj Insert(Pvsassmobj record) { DataRow row = this.dataSet.ttblpvsassmobj.NewttblpvsassmobjRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpvsassmobj.AddttblpvsassmobjRow((pdspvsassmobjDataSet.ttblpvsassmobjRow)row); this.SaveChanges(); return(this.dataSet.ttblpvsassmobj.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpvsassmobj.Rows[0]) : null); }
public Pvsassmobj GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pvsassmobj pvsassmobj = null; if (row != null) { pvsassmobj = this.BuildFromRow(row); } return(pvsassmobj); }
protected Pvsassmobj Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpvsassmobj.AsEnumerable().SingleOrDefault(); Pvsassmobj pvsassmobj = null; if (row != null) { pvsassmobj = this.BuildFromRow(row); } return(pvsassmobj); }
public void Delete(Pvsassmobj record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpvsassmobj.NewttblpvsassmobjRow(); Pvsassmobj.BuildMinimalRow(ref row, record); this.dataSet.ttblpvsassmobj.AddttblpvsassmobjRow((pdspvsassmobjDataSet.ttblpvsassmobjRow)row); } row.Delete(); this.SaveChanges(); }
public Pvsassmobj Update(Pvsassmobj 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.ttblpvsassmobj.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpvsassmobj.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Pvsassmobj record) { Pvsassmobj.UpdateRowFromPvsassmobj(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Pvsassmobj Insert(Pvsassmobj record) { return(this.repository.Insert(record)); }
public void Delete(Pvsassmobj record) { this.repository.Delete(record); }
public Pvsassmobj Update(Pvsassmobj record) { return(this.repository.Update(record)); }
public void Delete(Pvsassmobj record) { this.adapter.Delete(record); }
public Pvsassmobj Update(Pvsassmobj record) { return(this.adapter.Update(record)); }
public Pvsassmobj Insert(Pvsassmobj record) { return(this.adapter.Insert(record)); }