Changeset 4732 for branches/ClientManagement
- Timestamp:
- 11/06/10 14:28:39 (14 years ago)
- Location:
- branches/ClientManagement/HeuristicLab.Services.Authentication
- Files:
-
- 3 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.dbml
r4731 r4732 1 1 <?xml version="1.0" encoding="utf-8"?><Database Class="ClientManagmentDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007"> 2 2 <Table Name="" Member="Resources"> 3 <Type Name="Resource" InheritanceCode="Resource" IsInheritanceDefault="true">3 <Type Name="Resource" InheritanceCode="Resource"> 4 4 <Column Name="ResourceID" Member="Id" Storage="_ResourceID" AutoSync="OnInsert" Type="System.Guid" IsPrimaryKey="true" CanBeNull="false" /> 5 5 <Column Name="Name" Type="System.String" CanBeNull="false" /> 6 6 <Column Name="Description" Type="System.String" CanBeNull="true" /> 7 <Column Name="ResourceType" Type="System. Guid" CanBeNull="false" IsDiscriminator="true" />7 <Column Name="ResourceType" Type="System.String" CanBeNull="false" IsDiscriminator="true" /> 8 8 <Association Name="Resource_ResourceResourceGroup" Member="Clients" Storage="_ResourceResourceGroups" ThisKey="Id" OtherKey="ResourceId" Type="ResourceResourceGroup" /> 9 9 <Association Name="Resource_ResourceResourceGroup1" Member="ResourceGroups" Storage="_ResourceResourceGroups1" ThisKey="Id" OtherKey="ResourceGroupId" Type="ResourceResourceGroup" /> … … 16 16 <Column Name="OperatingSystem" Type="System.String" CanBeNull="true" /> 17 17 </Type> 18 <Type Name="ResourceGroup" InheritanceCode="ResourceGroup" />18 <Type Name="ResourceGroup" InheritanceCode="ResourceGroup" IsInheritanceDefault="true" /> 19 19 </Type> 20 20 </Table> -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.designer.cs
r4694 r4732 37 37 partial void DeleteResourceResourceGroup(ResourceResourceGroup instance); 38 38 #endregion 39 40 41 public ClientManagmentDataContext() : 42 base(global::HeuristicLab.Services.Authentication.DataAccess.Properties.Settings.Default.ClientManagementConnectionString, mappingSource) { 43 OnCreated(); 44 } 45 39 46 40 public ClientManagmentDataContext(string connection) : 47 41 base(connection, mappingSource) … … 86 80 87 81 [global::System.Data.Linq.Mapping.TableAttribute(Name="")] 88 [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Resource", Type=typeof(Resource) , IsDefault=true)]82 [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Resource", Type=typeof(Resource))] 89 83 [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Client", Type=typeof(Client))] 90 [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="ResourceGroup", Type=typeof(ResourceGroup) )]84 [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="ResourceGroup", Type=typeof(ResourceGroup), IsDefault=true)] 91 85 public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged 92 86 { … … 110 104 partial void OnValidate(System.Data.Linq.ChangeAction action); 111 105 partial void OnCreated(); 112 partial void On ResourceIDChanging(System.Guid value);113 partial void On ResourceIDChanged();106 partial void OnIdChanging(System.Guid value); 107 partial void OnIdChanged(); 114 108 partial void OnNameChanging(string value); 115 109 partial void OnNameChanged(); … … 127 121 } 128 122 129 [global::System.Data.Linq.Mapping.ColumnAttribute( Storage="_ResourceID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true)]130 public System.Guid ResourceID123 [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ResourceID", Storage="_ResourceID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true)] 124 public System.Guid Id 131 125 { 132 126 get … … 138 132 if ((this._ResourceID != value)) 139 133 { 140 this.On ResourceIDChanging(value);134 this.OnIdChanging(value); 141 135 this.SendPropertyChanging(); 142 136 this._ResourceID = value; 143 this.SendPropertyChanged(" ResourceID");144 this.On ResourceIDChanged();137 this.SendPropertyChanged("Id"); 138 this.OnIdChanged(); 145 139 } 146 140 } … … 207 201 } 208 202 209 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_ResourceResourceGroups", ThisKey=" ResourceID", OtherKey="ResourceID")]203 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_ResourceResourceGroups", ThisKey="Id", OtherKey="ResourceId")] 210 204 public EntitySet<ResourceResourceGroup> Clients 211 205 { … … 220 214 } 221 215 222 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_ResourceResourceGroups1", ThisKey=" ResourceID", OtherKey="ResourceGroupID")]216 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_ResourceResourceGroups1", ThisKey="Id", OtherKey="ResourceGroupId")] 223 217 public EntitySet<ResourceResourceGroup> ResourceGroups 224 218 { … … 470 464 partial void OnValidate(System.Data.Linq.ChangeAction action); 471 465 partial void OnCreated(); 472 partial void OnResourceI DChanging(System.Guid value);473 partial void OnResourceI DChanged();474 partial void OnResourceGroupI DChanging(System.Guid value);475 partial void OnResourceGroupI DChanged();466 partial void OnResourceIdChanging(System.Guid value); 467 partial void OnResourceIdChanged(); 468 partial void OnResourceGroupIdChanging(System.Guid value); 469 partial void OnResourceGroupIdChanged(); 476 470 #endregion 477 471 … … 483 477 } 484 478 485 [global::System.Data.Linq.Mapping.ColumnAttribute( Storage="_ResourceID", IsPrimaryKey=true)]486 public System.Guid ResourceI D479 [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ResourceID", Storage="_ResourceID", IsPrimaryKey=true)] 480 public System.Guid ResourceId 487 481 { 488 482 get … … 494 488 if ((this._ResourceID != value)) 495 489 { 496 if (this._Resource.HasLoadedOrAssignedValue) 497 { 498 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 499 } 500 this.OnResourceIDChanging(value); 490 this.OnResourceIdChanging(value); 501 491 this.SendPropertyChanging(); 502 492 this._ResourceID = value; 503 this.SendPropertyChanged("ResourceI D");504 this.OnResourceI DChanged();505 } 506 } 507 } 508 509 [global::System.Data.Linq.Mapping.ColumnAttribute( Storage="_ResourceGroupID", IsPrimaryKey=true)]510 public System.Guid ResourceGroupI D493 this.SendPropertyChanged("ResourceId"); 494 this.OnResourceIdChanged(); 495 } 496 } 497 } 498 499 [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ResourceGroupID", Storage="_ResourceGroupID", IsPrimaryKey=true)] 500 public System.Guid ResourceGroupId 511 501 { 512 502 get … … 518 508 if ((this._ResourceGroupID != value)) 519 509 { 520 if (this._Resource1.HasLoadedOrAssignedValue) 521 { 522 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 523 } 524 this.OnResourceGroupIDChanging(value); 510 this.OnResourceGroupIdChanging(value); 525 511 this.SendPropertyChanging(); 526 512 this._ResourceGroupID = value; 527 this.SendPropertyChanged("ResourceGroupI D");528 this.OnResourceGroupI DChanged();529 } 530 } 531 } 532 533 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_Resource", ThisKey="ResourceI D", OtherKey="ResourceID", IsForeignKey=true)]513 this.SendPropertyChanged("ResourceGroupId"); 514 this.OnResourceGroupIdChanged(); 515 } 516 } 517 } 518 519 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_Resource", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)] 534 520 public Resource Client 535 521 { … … 554 540 { 555 541 value.Clients.Add(this); 556 this._ResourceID = value. ResourceID;542 this._ResourceID = value.Id; 557 543 } 558 544 else … … 565 551 } 566 552 567 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_Resource1", ThisKey="ResourceGroupI D", OtherKey="ResourceID", IsForeignKey=true)]553 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_Resource1", ThisKey="ResourceGroupId", OtherKey="Id", IsForeignKey=true)] 568 554 public Resource ResourceGroup 569 555 { … … 588 574 { 589 575 value.ResourceGroups.Add(this); 590 this._ResourceGroupID = value. ResourceID;576 this._ResourceGroupID = value.Id; 591 577 } 592 578 else -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.sln
r4694 r4732 9 9 EndProject 10 10 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{D83C93B5-5DDE-4A66-A9B8-D7FD0A891ABB}" 11 EndProject12 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Authentication.AdminMethods", "HeuristicLab.Services.Authentication.AdminMethods\HeuristicLab.Services.Authentication.AdminMethods.csproj", "{2DC20235-6A91-4ABC-8E3E-660B43EAD23B}"13 EndProject14 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Authentication.UserInterface", "UserInterface\HeuristicLab.Services.Authentication.UserInterface.csproj", "{345CD2B9-F5A9-498C-A50C-79D41E449351}"15 EndProject16 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.DemoClient", "HLDemo\HeuristicLab.DemoClient\HeuristicLab.DemoClient.csproj", "{92119B2A-37FA-444B-8C68-61114BD041F4}"17 EndProject18 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.DemoService", "HLDemo\HeuristicLab.Services.DemoService\HeuristicLab.Services.DemoService.csproj", "{C1A05138-12F5-4B47-B32D-80A508D3073A}"19 11 EndProject 20 12 Global … … 68 60 {D83C93B5-5DDE-4A66-A9B8-D7FD0A891ABB}.Release|x86.ActiveCfg = Release|x86 69 61 {D83C93B5-5DDE-4A66-A9B8-D7FD0A891ABB}.Release|x86.Build.0 = Release|x86 70 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Debug|Any CPU.ActiveCfg = Debug|x8671 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Debug|Mixed Platforms.ActiveCfg = Debug|x8672 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Debug|Mixed Platforms.Build.0 = Debug|x8673 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Debug|x86.ActiveCfg = Debug|x8674 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Debug|x86.Build.0 = Debug|x8675 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Release|Any CPU.ActiveCfg = Release|x8676 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Release|Mixed Platforms.ActiveCfg = Release|x8677 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Release|Mixed Platforms.Build.0 = Release|x8678 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Release|x86.ActiveCfg = Release|x8679 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Release|x86.Build.0 = Release|x8680 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|Any CPU.ActiveCfg = Debug|x8681 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|Mixed Platforms.ActiveCfg = Debug|x8682 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|Mixed Platforms.Build.0 = Debug|x8683 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|x86.ActiveCfg = Debug|x8684 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|x86.Build.0 = Debug|x8685 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|Any CPU.ActiveCfg = Release|x8686 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|Mixed Platforms.ActiveCfg = Release|x8687 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|Mixed Platforms.Build.0 = Release|x8688 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|x86.ActiveCfg = Release|x8689 {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|x86.Build.0 = Release|x8690 {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU91 {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|Any CPU.Build.0 = Debug|Any CPU92 {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU93 {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU94 {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|x86.ActiveCfg = Debug|x8695 {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|x86.Build.0 = Debug|x8696 {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|Any CPU.ActiveCfg = Release|Any CPU97 {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|Any CPU.Build.0 = Release|Any CPU98 {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU99 {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|Mixed Platforms.Build.0 = Release|Any CPU100 {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|x86.ActiveCfg = Release|x86101 {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|x86.Build.0 = Release|x86102 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU103 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|Any CPU.Build.0 = Debug|Any CPU104 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU105 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU106 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|x86.ActiveCfg = Debug|Any CPU107 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|Any CPU.ActiveCfg = Release|Any CPU108 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|Any CPU.Build.0 = Release|Any CPU109 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU110 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|Mixed Platforms.Build.0 = Release|Any CPU111 {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|x86.ActiveCfg = Release|Any CPU112 62 EndGlobalSection 113 63 GlobalSection(SolutionProperties) = preSolution -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication/Convert.cs
r4694 r4732 31 31 if (source == null) return null; 32 32 return new DT.Client { 33 ResourceID = source. ResourceID,33 ResourceID = source.Id, 34 34 Name = source.Name, 35 35 Description = source.Description, … … 47 47 if (source == null) return null; 48 48 return new DA.Client { 49 ResourceID= source.ResourceID,49 Id = source.ResourceID, 50 50 Name = source.Name, 51 51 Description = source.Description, … … 62 62 public static void ToEntity(DT.Client source, DA.Client target) { 63 63 if ((source != null) && (target != null)) { 64 target. ResourceID= source.ResourceID;64 target.Id = source.ResourceID; 65 65 target.Name = source.Name; 66 66 target.Description = source.Description; … … 81 81 if (source == null) return null; 82 82 return new DT.ResourceGroup { 83 ResourceID = source. ResourceID,83 ResourceID = source.Id, 84 84 Name = source.Name, 85 85 Description = source.Description, … … 91 91 if (source == null) return null; 92 92 return new DA.ResourceGroup { 93 ResourceID= source.ResourceID,93 Id = source.ResourceID, 94 94 Name = source.Name, 95 95 Description = source.Description, … … 100 100 public static void ToEntity(DT.ResourceGroup source, DA.ResourceGroup target) { 101 101 if ((source != null) && (target != null)) { 102 target. ResourceID= source.ResourceID;102 target.Id = source.ResourceID; 103 103 target.Name = source.Name; 104 104 target.Description = source.Description; -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.csproj
r4731 r4732 64 64 </ItemGroup> 65 65 <ItemGroup> 66 <Content Include=" AuthenticationService.svc" />66 <Content Include="ClientService.svc" /> 67 67 <Content Include="Web.config" /> 68 68 <Content Include="Web.Debug.config"> … … 75 75 <ItemGroup> 76 76 <Compile Include="Convert.cs" /> 77 <Compile Include=" AuthenticationService.svc.cs">78 <DependentUpon> AuthenticationService.svc</DependentUpon>77 <Compile Include="ClientService.svc.cs"> 78 <DependentUpon>ClientService.svc</DependentUpon> 79 79 </Compile> 80 <Compile Include="Interfaces\I AuthenticationService.cs" />80 <Compile Include="Interfaces\IClientService.cs" /> 81 81 <Compile Include="Properties\AssemblyInfo.cs" /> 82 82 </ItemGroup> -
branches/ClientManagement/HeuristicLab.Services.Authentication/Test/Program.cs
r4694 r4732 26 26 Client c = new Client(); 27 27 28 c. ResourceID= Guid.NewGuid();28 c.Id = Guid.NewGuid(); 29 29 c.Name = "Eagle-Eye"; 30 30 c.Description = "Development-PC";
Note: See TracChangeset
for help on using the changeset viewer.