public PvWtln BuildFromRow(DataRow row) { var returnRecord = PvWtln.BuildPvWtlnFromRow(row); returnRecord = this.BuildExtraFromRow <PvWtln>(returnRecord, row); return(returnRecord); }
public PvWtln Insert(PvWtln record) { DataRow row = this.dataSet.ttblpv_wtln.Newttblpv_wtlnRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_wtln.Addttblpv_wtlnRow((pdspv_wtlnDataSet.ttblpv_wtlnRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_wtln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_wtln.Rows[0]) : null); }
public PvWtln GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvWtln pvWtln = null; if (row != null) { pvWtln = this.BuildFromRow(row); } return(pvWtln); }
protected PvWtln Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_wtln.AsEnumerable().SingleOrDefault(); PvWtln pvWtln = null; if (row != null) { pvWtln = this.BuildFromRow(row); } return(pvWtln); }
public void Delete(PvWtln record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_wtln.Newttblpv_wtlnRow(); PvWtln.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_wtln.Addttblpv_wtlnRow((pdspv_wtlnDataSet.ttblpv_wtlnRow)row); } row.Delete(); this.SaveChanges(); }
public PvWtln Update(PvWtln 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_wtln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_wtln.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, PvWtln record) { PvWtln.UpdateRowFromPvWtln(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(PvWtln record) { this.adapter.Delete(record); }
public PvWtln Update(PvWtln record) { return(this.adapter.Update(record)); }
public PvWtln Insert(PvWtln record) { return(this.adapter.Insert(record)); }
public PvWtln Update(PvWtln record) { return(this.repository.Update(record)); }
public PvWtln Insert(PvWtln record) { return(this.repository.Insert(record)); }
public void Delete(PvWtln record) { this.repository.Delete(record); }