Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7384


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

#1174 renamed UserId to UserGroupId

Location:
branches/OKB (trunk integration)
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB.DataAccess/3.3/OKB.dbml

    r5587 r7384  
    2020    <Type Name="AlgorithmUser">
    2121      <Column Name="AlgorithmId" Type="System.Int64" DbType="BigInt NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
    22       <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
     22      <Column Name="UserGroupId" Storage="_UserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
    2323      <Association Name="Algorithm_AlgorithmUser" Member="Algorithm" ThisKey="AlgorithmId" OtherKey="Id" Type="Algorithm" IsForeignKey="true" DeleteRule="CASCADE" DeleteOnNull="true" />
    2424    </Type>
     
    2727    <Type Name="ProblemUser">
    2828      <Column Name="ProblemId" Type="System.Int64" DbType="BigInt NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
    29       <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
     29      <Column Name="UserGroupId" Storage="_UserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
    3030      <Association Name="Problem_ProblemUser" Member="Problem" ThisKey="ProblemId" OtherKey="Id" Type="Problem" IsForeignKey="true" DeleteRule="CASCADE" DeleteOnNull="true" />
    3131    </Type>
  • branches/OKB (trunk integration)/HeuristicLab.Services.OKB.DataAccess/3.3/OKB.designer.cs

    r5587 r7384  
    33// <auto-generated>
    44//     This code was generated by a tool.
    5 //     Runtime Version:4.0.30319.1
     5//     Runtime Version:4.0.30319.239
    66//
    77//     Changes to this file may cause incorrect behavior and will be lost if
     
    512512    partial void OnAlgorithmIdChanging(long value);
    513513    partial void OnAlgorithmIdChanged();
    514     partial void OnUserIdChanging(System.Guid value);
    515     partial void OnUserIdChanged();
     514    partial void OnUserGroupIdChanging(System.Guid value);
     515    partial void OnUserGroupIdChanged();
    516516    #endregion
    517517   
     
    547547   
    548548    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
    549     public System.Guid UserId
     549    public System.Guid UserGroupId
    550550    {
    551551      get
     
    557557        if ((this._UserId != value))
    558558        {
    559           this.OnUserIdChanging(value);
     559          this.OnUserGroupIdChanging(value);
    560560          this.SendPropertyChanging();
    561561          this._UserId = value;
    562           this.SendPropertyChanged("UserId");
    563           this.OnUserIdChanged();
     562          this.SendPropertyChanged("UserGroupId");
     563          this.OnUserGroupIdChanged();
    564564        }
    565565      }
     
    639639    partial void OnProblemIdChanging(long value);
    640640    partial void OnProblemIdChanged();
    641     partial void OnUserIdChanging(System.Guid value);
    642     partial void OnUserIdChanged();
     641    partial void OnUserGroupIdChanging(System.Guid value);
     642    partial void OnUserGroupIdChanged();
    643643    #endregion
    644644   
     
    674674   
    675675    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
    676     public System.Guid UserId
     676    public System.Guid UserGroupId
    677677    {
    678678      get
     
    684684        if ((this._UserId != value))
    685685        {
    686           this.OnUserIdChanging(value);
     686          this.OnUserGroupIdChanging(value);
    687687          this.SendPropertyChanging();
    688688          this._UserId = value;
    689           this.SendPropertyChanged("UserId");
    690           this.OnUserIdChanged();
     689          this.SendPropertyChanged("UserGroupId");
     690          this.OnUserGroupIdChanged();
    691691        }
    692692      }
  • 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.