public PvJmln BuildFromRow(DataRow row) { var returnRecord = PvJmln.BuildPvJmlnFromRow(row); returnRecord = this.BuildExtraFromRow <PvJmln>(returnRecord, row); return(returnRecord); }
public PvJmln Insert(PvJmln record) { DataRow row = this.dataSet.ttblpv_jmln.Newttblpv_jmlnRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_jmln.Addttblpv_jmlnRow((pdspv_jmlnDataSet.ttblpv_jmlnRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_jmln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_jmln.Rows[0]) : null); }
public PvJmln GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvJmln pvJmln = null; if (row != null) { pvJmln = this.BuildFromRow(row); } return(pvJmln); }
protected PvJmln Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_jmln.AsEnumerable().SingleOrDefault(); PvJmln pvJmln = null; if (row != null) { pvJmln = this.BuildFromRow(row); } return(pvJmln); }
public void Delete(PvJmln record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_jmln.Newttblpv_jmlnRow(); PvJmln.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_jmln.Addttblpv_jmlnRow((pdspv_jmlnDataSet.ttblpv_jmlnRow)row); } row.Delete(); this.SaveChanges(); }
public PvJmln Update(PvJmln 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_jmln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_jmln.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, PvJmln record) { PvJmln.UpdateRowFromPvJmln(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public PvJmln Insert(PvJmln record) { return(this.repository.Insert(record)); }
public void Delete(PvJmln record) { this.repository.Delete(record); }
public PvJmln Update(PvJmln record) { return(this.repository.Update(record)); }
public void Delete(PvJmln record) { this.adapter.Delete(record); }
public PvJmln Update(PvJmln record) { return(this.adapter.Update(record)); }
public PvJmln Insert(PvJmln record) { return(this.adapter.Insert(record)); }