Changeset 4423 for branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/SlaveGroupDao.cs
- Timestamp:
- 09/17/10 10:26:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/SlaveGroupDao.cs
r4267 r4423 36 36 } 37 37 38 public void Delete( SlaveGroupDto bObj) {38 public void Delete(Guid id) { 39 39 40 40 //Deleting all references 41 Context.SlaveGroup_Resources.DeleteAllOnSubmit(Context.SlaveGroup_Resources.Where(cg => cg.SlaveGroupId.Equals( bObj.Id)));41 Context.SlaveGroup_Resources.DeleteAllOnSubmit(Context.SlaveGroup_Resources.Where(cg => cg.SlaveGroupId.Equals(id))); 42 42 43 Resource res = Context.Resources.SingleOrDefault(c => c.ResourceId.Equals( bObj.Id));43 Resource res = Context.Resources.SingleOrDefault(c => c.ResourceId.Equals(id)); 44 44 45 45 Context.Resources.DeleteOnSubmit(res);
Note: See TracChangeset
for help on using the changeset viewer.