Changeset 7384
- Timestamp:
- 01/20/12 14:18:04 (13 years ago)
- 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 20 20 <Type Name="AlgorithmUser"> 21 21 <Column Name="AlgorithmId" Type="System.Int64" DbType="BigInt NOT NULL" IsPrimaryKey="true" CanBeNull="false" /> 22 <Column Name="User Id" 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" /> 23 23 <Association Name="Algorithm_AlgorithmUser" Member="Algorithm" ThisKey="AlgorithmId" OtherKey="Id" Type="Algorithm" IsForeignKey="true" DeleteRule="CASCADE" DeleteOnNull="true" /> 24 24 </Type> … … 27 27 <Type Name="ProblemUser"> 28 28 <Column Name="ProblemId" Type="System.Int64" DbType="BigInt NOT NULL" IsPrimaryKey="true" CanBeNull="false" /> 29 <Column Name="User Id" 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" /> 30 30 <Association Name="Problem_ProblemUser" Member="Problem" ThisKey="ProblemId" OtherKey="Id" Type="Problem" IsForeignKey="true" DeleteRule="CASCADE" DeleteOnNull="true" /> 31 31 </Type> -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB.DataAccess/3.3/OKB.designer.cs
r5587 r7384 3 3 // <auto-generated> 4 4 // This code was generated by a tool. 5 // Runtime Version:4.0.30319. 15 // Runtime Version:4.0.30319.239 6 6 // 7 7 // Changes to this file may cause incorrect behavior and will be lost if … … 512 512 partial void OnAlgorithmIdChanging(long value); 513 513 partial void OnAlgorithmIdChanged(); 514 partial void OnUser IdChanging(System.Guid value);515 partial void OnUser IdChanged();514 partial void OnUserGroupIdChanging(System.Guid value); 515 partial void OnUserGroupIdChanged(); 516 516 #endregion 517 517 … … 547 547 548 548 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 549 public System.Guid User Id549 public System.Guid UserGroupId 550 550 { 551 551 get … … 557 557 if ((this._UserId != value)) 558 558 { 559 this.OnUser IdChanging(value);559 this.OnUserGroupIdChanging(value); 560 560 this.SendPropertyChanging(); 561 561 this._UserId = value; 562 this.SendPropertyChanged("User Id");563 this.OnUser IdChanged();562 this.SendPropertyChanged("UserGroupId"); 563 this.OnUserGroupIdChanged(); 564 564 } 565 565 } … … 639 639 partial void OnProblemIdChanging(long value); 640 640 partial void OnProblemIdChanged(); 641 partial void OnUser IdChanging(System.Guid value);642 partial void OnUser IdChanged();641 partial void OnUserGroupIdChanging(System.Guid value); 642 partial void OnUserGroupIdChanged(); 643 643 #endregion 644 644 … … 674 674 675 675 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 676 public System.Guid User Id676 public System.Guid UserGroupId 677 677 { 678 678 get … … 684 684 if ((this._UserId != value)) 685 685 { 686 this.OnUser IdChanging(value);686 this.OnUserGroupIdChanging(value); 687 687 this.SendPropertyChanging(); 688 688 this._UserId = value; 689 this.SendPropertyChanged("User Id");690 this.OnUser IdChanged();689 this.SendPropertyChanged("UserGroupId"); 690 this.OnUserGroupIdChanged(); 691 691 } 692 692 } -
branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Administration/AdministrationService.cs
r7360 r7384 172 172 173 173 using (OKBDataContext okb = new OKBDataContext()) { 174 return okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId).Select(x => x.User Id).ToArray();174 return okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId).Select(x => x.UserGroupId).ToArray(); 175 175 } 176 176 } … … 180 180 using (OKBDataContext okb = new OKBDataContext()) { 181 181 okb.AlgorithmUsers.DeleteAllOnSubmit(okb.AlgorithmUsers.Where(x => x.AlgorithmId == algorithmId)); 182 okb.AlgorithmUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.AlgorithmUser { AlgorithmId = algorithmId, User Id = x }));182 okb.AlgorithmUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.AlgorithmUser { AlgorithmId = algorithmId, UserGroupId = x })); 183 183 okb.SubmitChanges(); 184 184 } … … 297 297 298 298 using (OKBDataContext okb = new OKBDataContext()) { 299 return okb.ProblemUsers.Where(x => x.ProblemId == problemId).Select(x => x.User Id).ToArray();299 return okb.ProblemUsers.Where(x => x.ProblemId == problemId).Select(x => x.UserGroupId).ToArray(); 300 300 } 301 301 } … … 305 305 using (OKBDataContext okb = new OKBDataContext()) { 306 306 okb.ProblemUsers.DeleteAllOnSubmit(okb.ProblemUsers.Where(x => x.ProblemId == problemId)); 307 okb.ProblemUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.ProblemUser { ProblemId = problemId, User Id = x }));307 okb.ProblemUsers.InsertAllOnSubmit(users.Select(x => new DataAccess.ProblemUser { ProblemId = problemId, UserGroupId = x })); 308 308 okb.SubmitChanges(); 309 309 }
Note: See TracChangeset
for help on using the changeset viewer.