Changeset 6367 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDao.cs
- Timestamp:
- 06/06/11 16:30:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDao.cs
r6357 r6367 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 68 68 if (entity == null) db.Jobs.InsertOnSubmit(Convert.ToEntity(dto)); 69 69 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 } 71 75 db.SubmitChanges(); 72 76 }
Note: See TracChangeset
for help on using the changeset viewer.