public Pvsassmattr BuildFromRow(DataRow row) { var returnRecord = Pvsassmattr.BuildPvsassmattrFromRow(row); returnRecord = this.BuildExtraFromRow <Pvsassmattr>(returnRecord, row); return(returnRecord); }
public Pvsassmattr Insert(Pvsassmattr record) { DataRow row = this.dataSet.ttblpvsassmattr.NewttblpvsassmattrRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpvsassmattr.AddttblpvsassmattrRow((pdspvsassmattrDataSet.ttblpvsassmattrRow)row); this.SaveChanges(); return(this.dataSet.ttblpvsassmattr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpvsassmattr.Rows[0]) : null); }
public Pvsassmattr GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pvsassmattr pvsassmattr = null; if (row != null) { pvsassmattr = this.BuildFromRow(row); } return(pvsassmattr); }
protected Pvsassmattr Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpvsassmattr.AsEnumerable().SingleOrDefault(); Pvsassmattr pvsassmattr = null; if (row != null) { pvsassmattr = this.BuildFromRow(row); } return(pvsassmattr); }
public void Delete(Pvsassmattr record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpvsassmattr.NewttblpvsassmattrRow(); Pvsassmattr.BuildMinimalRow(ref row, record); this.dataSet.ttblpvsassmattr.AddttblpvsassmattrRow((pdspvsassmattrDataSet.ttblpvsassmattrRow)row); } row.Delete(); this.SaveChanges(); }
public Pvsassmattr Update(Pvsassmattr 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.ttblpvsassmattr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpvsassmattr.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Pvsassmattr record) { this.repository.Delete(record); }
public Pvsassmattr Update(Pvsassmattr record) { return(this.repository.Update(record)); }
public Pvsassmattr Insert(Pvsassmattr record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Pvsassmattr record) { Pvsassmattr.UpdateRowFromPvsassmattr(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Pvsassmattr record) { this.adapter.Delete(record); }
public Pvsassmattr Update(Pvsassmattr record) { return(this.adapter.Update(record)); }
public Pvsassmattr Insert(Pvsassmattr record) { return(this.adapter.Insert(record)); }