Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/20/12 14:18:04 (13 years ago)
Author:
ascheibe
Message:

#1174 renamed UserId to UserGroupId

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Administration/AdministrationService.cs

    r7360 r7384  
    172172
    173173      using (OKBDataContext okb = new OKBDataContext()) {
    174         return okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId).Select(x => x.UserId).ToArray();
     174        return okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId).Select(x => x.UserGroupId).ToArray();
    175175      }
    176176    }
     
    180180      using (OKBDataContext okb = new OKBDataContext()) {
    181181        okb.AlgorithmUsers.DeleteAllOnSubmit(okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId));
    182         okb.AlgorithmUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.AlgorithmUser { AlgorithmId = algorithmId, UserId = x }));
     182        okb.AlgorithmUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.AlgorithmUser { AlgorithmId = algorithmId, UserGroupId = x }));
    183183        okb.SubmitChanges();
    184184      }
     
    297297
    298298      using (OKBDataContext okb = new OKBDataContext()) {
    299         return okb.ProblemUsers.Where(x => x.ProblemId == problemId).Select(x => x.UserId).ToArray();
     299        return okb.ProblemUsers.Where(x => x.ProblemId == problemId).Select(x => x.UserGroupId).ToArray();
    300300      }
    301301    }
     
    305305      using (OKBDataContext okb = new OKBDataContext()) {
    306306        okb.ProblemUsers.DeleteAllOnSubmit(okb.ProblemUsers.Where(x => x.ProblemId == problemId));
    307         okb.ProblemUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.ProblemUser { ProblemId = problemId, UserId = x }));
     307        okb.ProblemUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.ProblemUser { ProblemId = problemId, UserGroupId = x }));
    308308        okb.SubmitChanges();
    309309      }
Note: See TracChangeset for help on using the changeset viewer.