- Timestamp:
- 04/26/13 17:36:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/HiveDao.cs
r9397 r9399 40 40 select t 41 41 ); 42 43 public Task GetTaskByDto(DT.Task taskDto) { 44 var task = GetTaskById(taskDto.Id); 45 DT.Convert.ToEntity(taskDto, task); 46 return task; 47 } 42 48 43 49 public Tuple<Task, Guid?> GetTaskByIdAndLastStateLogSlaveId(Guid taskId) { … … 177 183 178 184 #region Plugin Methods 185 public Plugin GetPluginById(Guid pluginId) { 186 return GetPluginByIdQuery(Db, pluginId).SingleOrDefault(); 187 } 188 189 private static Func<HiveDataContext, Guid, IQueryable<Plugin>> GetPluginByIdQuery = CompiledQuery.Compile((HiveDataContext db, Guid pluginId) => 190 from p in db.Plugins 191 where p.PluginId == pluginId 192 select p 193 ); 179 194 180 195 #endregion
Note: See TracChangeset
for help on using the changeset viewer.