Changeset 1009
- Timestamp:
- 12/17/08 15:18:45 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.ADODataAccess
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/ClientAdapter.cs
r995 r1009 242 242 243 243 if (row != null) { 244 //Referential integrity with client groups 245 ICollection<ClientGroup> clientGroups = 246 ClientGroupAdapter.MemberOf(client); 247 foreach (ClientGroup group in clientGroups) { 248 group.Resources.Remove(client); 249 ClientGroupAdapter.Update(group); 250 } 251 252 //Referential integrity with jobs 244 //Referential integrity with jobs - they are cached 253 245 ICollection<Job> jobs = 254 246 JobAdapter.GetJobsOf(client); -
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/UserAdapter.cs
r995 r1009 159 159 public override bool Delete(User user) { 160 160 if (user != null) { 161 //Referential integrity with user groups 162 ICollection<UserGroup> userGroups = 163 UserGroupAdapter.MemberOf(user); 164 foreach (UserGroup group in userGroups) { 165 group.Members.Remove(user); 166 UserGroupAdapter.Update(group); 167 } 168 169 //Referential integrity with jobs 161 //Referential integrity with jobs - they are cached 170 162 ICollection<Job> jobs = 171 163 JobAdapter.GetJobsOf(user);
Note: See TracChangeset
for help on using the changeset viewer.