Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/11 16:30:05 (13 years ago)
Author:
cneumuel
Message:

#1233

  • code cleanup
  • deleted obsolete folder
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDao.cs

    r6357 r6367  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    6868        if (entity == null) db.Jobs.InsertOnSubmit(Convert.ToEntity(dto));
    6969        else Convert.ToEntity(dto, entity);
    70         // todo: update required plugins
     70        foreach (Guid pluginId in dto.PluginsNeededIds) {
     71          if (db.RequiredPlugins.Count(p => p.PluginId == pluginId) == 0) {
     72            db.RequiredPlugins.InsertOnSubmit(new RequiredPlugin() { JobId = entity.JobId, PluginId = pluginId });
     73          }         
     74        }
    7175        db.SubmitChanges();
    7276      }
Note: See TracChangeset for help on using the changeset viewer.