- Timestamp:
- 05/01/10 13:58:24 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/PluginInfoDao.cs
r3011 r3578 26 26 PluginInfo pi = DtoToEntity(bObj, null); 27 27 Context.PluginInfos.InsertOnSubmit(pi); 28 Co ntext.SubmitChanges();28 CommitChanges(); 29 29 bObj.Id = pi.PluginId; 30 30 return bObj; … … 39 39 PluginInfo pi = Context.PluginInfos.SingleOrDefault(p => p.PluginId.Equals(bObj.Id)); 40 40 DtoToEntity(bObj, pi); 41 Co ntext.SubmitChanges();41 CommitChanges(); 42 42 } 43 43 … … 53 53 }; 54 54 Context.PluginInfos.InsertOnSubmit(dbpi); 55 Co ntext.SubmitChanges();55 CommitChanges(); 56 56 } 57 57 … … 60 60 rq.PluginInfo = dbpi; 61 61 Context.RequiredPlugins.InsertOnSubmit(rq); 62 Co ntext.SubmitChanges();62 CommitChanges(); 63 63 } 64 } 65 66 public List<HivePluginInfoDto> GetPluginDependenciesForJob(JobDto jobDto) { 67 return (from rp in Context.RequiredPlugins 68 where rp.JobId.Equals(jobDto.Id) 69 select EntityToDto(rp.PluginInfo, null)).ToList(); 70 64 71 } 65 72
Note: See TracChangeset
for help on using the changeset viewer.