public PvRecovery BuildFromRow(DataRow row) { var returnRecord = PvRecovery.BuildPvRecoveryFromRow(row); returnRecord = this.BuildExtraFromRow <PvRecovery>(returnRecord, row); return(returnRecord); }
public PvRecovery Insert(PvRecovery record) { DataRow row = this.dataSet.ttblpv_recovery.Newttblpv_recoveryRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_recovery.Addttblpv_recoveryRow((pdspv_recoveryDataSet.ttblpv_recoveryRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_recovery.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_recovery.Rows[0]) : null); }
public PvRecovery GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvRecovery pvRecovery = null; if (row != null) { pvRecovery = this.BuildFromRow(row); } return(pvRecovery); }
protected PvRecovery Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_recovery.AsEnumerable().SingleOrDefault(); PvRecovery pvRecovery = null; if (row != null) { pvRecovery = this.BuildFromRow(row); } return(pvRecovery); }
public void Delete(PvRecovery record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_recovery.Newttblpv_recoveryRow(); PvRecovery.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_recovery.Addttblpv_recoveryRow((pdspv_recoveryDataSet.ttblpv_recoveryRow)row); } row.Delete(); this.SaveChanges(); }
public PvRecovery Update(PvRecovery 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_recovery.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_recovery.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, PvRecovery record) { PvRecovery.UpdateRowFromPvRecovery(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public PvRecovery Insert(PvRecovery record) { return(this.repository.Insert(record)); }
public void Delete(PvRecovery record) { this.repository.Delete(record); }
public PvRecovery Update(PvRecovery record) { return(this.repository.Update(record)); }
public void Delete(PvRecovery record) { this.adapter.Delete(record); }
public PvRecovery Update(PvRecovery record) { return(this.adapter.Update(record)); }
public PvRecovery Insert(PvRecovery record) { return(this.adapter.Insert(record)); }