Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1009


Ignore:
Timestamp:
12/17/08 15:18:45 (16 years ago)
Author:
svonolfe
Message:

Updated client/user adapter (#372)

Location:
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/ClientAdapter.cs

    r995 r1009  
    242242
    243243        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
    253245          ICollection<Job> jobs =
    254246            JobAdapter.GetJobsOf(client);
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/UserAdapter.cs

    r995 r1009  
    159159    public override bool Delete(User user) {
    160160      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
    170162        ICollection<Job> jobs =
    171163          JobAdapter.GetJobsOf(user);
Note: See TracChangeset for help on using the changeset viewer.