public PvSwewl BuildFromRow(DataRow row) { var returnRecord = PvSwewl.BuildPvSwewlFromRow(row); returnRecord = this.BuildExtraFromRow <PvSwewl>(returnRecord, row); return(returnRecord); }
public PvSwewl Insert(PvSwewl record) { DataRow row = this.dataSet.ttblpv_swewl.Newttblpv_swewlRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_swewl.Addttblpv_swewlRow((pdspv_swewlDataSet.ttblpv_swewlRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_swewl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_swewl.Rows[0]) : null); }
public PvSwewl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvSwewl pvSwewl = null; if (row != null) { pvSwewl = this.BuildFromRow(row); } return(pvSwewl); }
protected PvSwewl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_swewl.AsEnumerable().SingleOrDefault(); PvSwewl pvSwewl = null; if (row != null) { pvSwewl = this.BuildFromRow(row); } return(pvSwewl); }
public void Delete(PvSwewl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_swewl.Newttblpv_swewlRow(); PvSwewl.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_swewl.Addttblpv_swewlRow((pdspv_swewlDataSet.ttblpv_swewlRow)row); } row.Delete(); this.SaveChanges(); }
public PvSwewl Update(PvSwewl 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.ttblpv_swewl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_swewl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(PvSwewl record) { this.repository.Delete(record); }
public PvSwewl Update(PvSwewl record) { return(this.repository.Update(record)); }
public PvSwewl Insert(PvSwewl record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, PvSwewl record) { PvSwewl.UpdateRowFromPvSwewl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(PvSwewl record) { this.adapter.Delete(record); }
public PvSwewl Update(PvSwewl record) { return(this.adapter.Update(record)); }
public PvSwewl Insert(PvSwewl record) { return(this.adapter.Insert(record)); }