public PvSwln BuildFromRow(DataRow row) { var returnRecord = PvSwln.BuildPvSwlnFromRow(row); returnRecord = this.BuildExtraFromRow <PvSwln>(returnRecord, row); return(returnRecord); }
public PvSwln Insert(PvSwln record) { DataRow row = this.dataSet.ttblpv_swln.Newttblpv_swlnRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_swln.Addttblpv_swlnRow((pdspv_swlnDataSet.ttblpv_swlnRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_swln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_swln.Rows[0]) : null); }
public PvSwln GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvSwln pvSwln = null; if (row != null) { pvSwln = this.BuildFromRow(row); } return(pvSwln); }
protected PvSwln Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_swln.AsEnumerable().SingleOrDefault(); PvSwln pvSwln = null; if (row != null) { pvSwln = this.BuildFromRow(row); } return(pvSwln); }
public void Delete(PvSwln record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_swln.Newttblpv_swlnRow(); PvSwln.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_swln.Addttblpv_swlnRow((pdspv_swlnDataSet.ttblpv_swlnRow)row); } row.Delete(); this.SaveChanges(); }
public PvSwln Update(PvSwln 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_swln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_swln.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, PvSwln record) { PvSwln.UpdateRowFromPvSwln(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public PvSwln Insert(PvSwln record) { return(this.repository.Insert(record)); }
public void Delete(PvSwln record) { this.repository.Delete(record); }
public PvSwln Update(PvSwln record) { return(this.repository.Update(record)); }
public void Delete(PvSwln record) { this.adapter.Delete(record); }
public PvSwln Update(PvSwln record) { return(this.adapter.Update(record)); }
public PvSwln Insert(PvSwln record) { return(this.adapter.Insert(record)); }