Free cookie consent management tool by TermsFeed Policy Generator

source: branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.designer.cs @ 4728

Last change on this file since 4728 was 4694, checked in by fruehrli, 14 years ago

#1197
Administration methods updated
WinForm for administration added
Demo WebService added

File size: 16.7 KB
Line 
1#pragma warning disable 1591
2//------------------------------------------------------------------------------
3// <auto-generated>
4//     This code was generated by a tool.
5//     Runtime Version:4.0.30319.1
6//
7//     Changes to this file may cause incorrect behavior and will be lost if
8//     the code is regenerated.
9// </auto-generated>
10//------------------------------------------------------------------------------
11
12namespace HeuristicLab.Services.Authentication.DataAccess
13{
14  using System.Data.Linq;
15  using System.Data.Linq.Mapping;
16  using System.Data;
17  using System.Collections.Generic;
18  using System.Reflection;
19  using System.Linq;
20  using System.Linq.Expressions;
21  using System.ComponentModel;
22  using System;
23 
24 
25  public partial class ClientManagmentDataContext : System.Data.Linq.DataContext
26  {
27   
28    private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
29   
30    #region Extensibility Method Definitions
31    partial void OnCreated();
32    partial void InsertResource(Resource instance);
33    partial void UpdateResource(Resource instance);
34    partial void DeleteResource(Resource instance);
35    partial void InsertResourceResourceGroup(ResourceResourceGroup instance);
36    partial void UpdateResourceResourceGroup(ResourceResourceGroup instance);
37    partial void DeleteResourceResourceGroup(ResourceResourceGroup instance);
38    #endregion
39
40
41    public ClientManagmentDataContext() :
42      base(global::HeuristicLab.Services.Authentication.DataAccess.Properties.Settings.Default.ClientManagementConnectionString, mappingSource) {
43      OnCreated();
44    }
45
46    public ClientManagmentDataContext(string connection) :
47        base(connection, mappingSource)
48    {
49      OnCreated();
50    }
51   
52    public ClientManagmentDataContext(System.Data.IDbConnection connection) :
53        base(connection, mappingSource)
54    {
55      OnCreated();
56    }
57   
58    public ClientManagmentDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
59        base(connection, mappingSource)
60    {
61      OnCreated();
62    }
63   
64    public ClientManagmentDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
65        base(connection, mappingSource)
66    {
67      OnCreated();
68    }
69   
70    public System.Data.Linq.Table<Resource> Resources
71    {
72      get
73      {
74        return this.GetTable<Resource>();
75      }
76    }
77   
78    public System.Data.Linq.Table<ResourceResourceGroup> ResourceResourceGroups
79    {
80      get
81      {
82        return this.GetTable<ResourceResourceGroup>();
83      }
84    }
85  }
86 
87  [global::System.Data.Linq.Mapping.TableAttribute(Name="")]
88  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Resource", Type=typeof(Resource), IsDefault=true)]
89  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Client", Type=typeof(Client))]
90  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="ResourceGroup", Type=typeof(ResourceGroup))]
91  public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged
92  {
93   
94    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
95   
96    private System.Guid _ResourceID;
97   
98    private string _Name;
99   
100    private string _Description;
101   
102    private string _ResourceType;
103   
104    private EntitySet<ResourceResourceGroup> _ResourceResourceGroups;
105   
106    private EntitySet<ResourceResourceGroup> _ResourceResourceGroups1;
107   
108    #region Extensibility Method Definitions
109    partial void OnLoaded();
110    partial void OnValidate(System.Data.Linq.ChangeAction action);
111    partial void OnCreated();
112    partial void OnResourceIDChanging(System.Guid value);
113    partial void OnResourceIDChanged();
114    partial void OnNameChanging(string value);
115    partial void OnNameChanged();
116    partial void OnDescriptionChanging(string value);
117    partial void OnDescriptionChanged();
118    partial void OnResourceTypeChanging(string value);
119    partial void OnResourceTypeChanged();
120    #endregion
121   
122    public Resource()
123    {
124      this._ResourceResourceGroups = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups));
125      this._ResourceResourceGroups1 = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups1), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups1));
126      OnCreated();
127    }
128   
129    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true)]
130    public System.Guid ResourceID
131    {
132      get
133      {
134        return this._ResourceID;
135      }
136      set
137      {
138        if ((this._ResourceID != value))
139        {
140          this.OnResourceIDChanging(value);
141          this.SendPropertyChanging();
142          this._ResourceID = value;
143          this.SendPropertyChanged("ResourceID");
144          this.OnResourceIDChanged();
145        }
146      }
147    }
148   
149    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", CanBeNull=false)]
150    public string Name
151    {
152      get
153      {
154        return this._Name;
155      }
156      set
157      {
158        if ((this._Name != value))
159        {
160          this.OnNameChanging(value);
161          this.SendPropertyChanging();
162          this._Name = value;
163          this.SendPropertyChanged("Name");
164          this.OnNameChanged();
165        }
166      }
167    }
168   
169    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description")]
170    public string Description
171    {
172      get
173      {
174        return this._Description;
175      }
176      set
177      {
178        if ((this._Description != value))
179        {
180          this.OnDescriptionChanging(value);
181          this.SendPropertyChanging();
182          this._Description = value;
183          this.SendPropertyChanged("Description");
184          this.OnDescriptionChanged();
185        }
186      }
187    }
188   
189    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceType", CanBeNull=false, IsDiscriminator=true)]
190    public string ResourceType
191    {
192      get
193      {
194        return this._ResourceType;
195      }
196      set
197      {
198        if ((this._ResourceType != value))
199        {
200          this.OnResourceTypeChanging(value);
201          this.SendPropertyChanging();
202          this._ResourceType = value;
203          this.SendPropertyChanged("ResourceType");
204          this.OnResourceTypeChanged();
205        }
206      }
207    }
208   
209    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_ResourceResourceGroups", ThisKey="ResourceID", OtherKey="ResourceID")]
210    public EntitySet<ResourceResourceGroup> Clients
211    {
212      get
213      {
214        return this._ResourceResourceGroups;
215      }
216      set
217      {
218        this._ResourceResourceGroups.Assign(value);
219      }
220    }
221   
222    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_ResourceResourceGroups1", ThisKey="ResourceID", OtherKey="ResourceGroupID")]
223    public EntitySet<ResourceResourceGroup> ResourceGroups
224    {
225      get
226      {
227        return this._ResourceResourceGroups1;
228      }
229      set
230      {
231        this._ResourceResourceGroups1.Assign(value);
232      }
233    }
234   
235    public event PropertyChangingEventHandler PropertyChanging;
236   
237    public event PropertyChangedEventHandler PropertyChanged;
238   
239    protected virtual void SendPropertyChanging()
240    {
241      if ((this.PropertyChanging != null))
242      {
243        this.PropertyChanging(this, emptyChangingEventArgs);
244      }
245    }
246   
247    protected virtual void SendPropertyChanged(String propertyName)
248    {
249      if ((this.PropertyChanged != null))
250      {
251        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
252      }
253    }
254   
255    private void attach_ResourceResourceGroups(ResourceResourceGroup entity)
256    {
257      this.SendPropertyChanging();
258      entity.Client = this;
259    }
260   
261    private void detach_ResourceResourceGroups(ResourceResourceGroup entity)
262    {
263      this.SendPropertyChanging();
264      entity.Client = null;
265    }
266   
267    private void attach_ResourceResourceGroups1(ResourceResourceGroup entity)
268    {
269      this.SendPropertyChanging();
270      entity.ResourceGroup = this;
271    }
272   
273    private void detach_ResourceResourceGroups1(ResourceResourceGroup entity)
274    {
275      this.SendPropertyChanging();
276      entity.ResourceGroup = null;
277    }
278  }
279 
280  public partial class Client : Resource
281  {
282   
283    private string _ProcessorType;
284   
285    private string _NumberOfProcessors;
286   
287    private string _NumberOfThreads;
288   
289    private string _IPAdress;
290   
291    private string _MemorySize;
292   
293    private string _OperatingSystem;
294   
295    #region Extensibility Method Definitions
296    partial void OnLoaded();
297    partial void OnValidate(System.Data.Linq.ChangeAction action);
298    partial void OnCreated();
299    partial void OnProcessorTypeChanging(string value);
300    partial void OnProcessorTypeChanged();
301    partial void OnNumberOfProcessorsChanging(string value);
302    partial void OnNumberOfProcessorsChanged();
303    partial void OnNumberOfThreadsChanging(string value);
304    partial void OnNumberOfThreadsChanged();
305    partial void OnIPAdressChanging(string value);
306    partial void OnIPAdressChanged();
307    partial void OnMemorySizeChanging(string value);
308    partial void OnMemorySizeChanged();
309    partial void OnOperatingSystemChanging(string value);
310    partial void OnOperatingSystemChanged();
311    #endregion
312   
313    public Client()
314    {
315      OnCreated();
316    }
317   
318    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcessorType")]
319    public string ProcessorType
320    {
321      get
322      {
323        return this._ProcessorType;
324      }
325      set
326      {
327        if ((this._ProcessorType != value))
328        {
329          this.OnProcessorTypeChanging(value);
330          this.SendPropertyChanging();
331          this._ProcessorType = value;
332          this.SendPropertyChanged("ProcessorType");
333          this.OnProcessorTypeChanged();
334        }
335      }
336    }
337   
338    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfProcessors")]
339    public string NumberOfProcessors
340    {
341      get
342      {
343        return this._NumberOfProcessors;
344      }
345      set
346      {
347        if ((this._NumberOfProcessors != value))
348        {
349          this.OnNumberOfProcessorsChanging(value);
350          this.SendPropertyChanging();
351          this._NumberOfProcessors = value;
352          this.SendPropertyChanged("NumberOfProcessors");
353          this.OnNumberOfProcessorsChanged();
354        }
355      }
356    }
357   
358    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfThreads")]
359    public string NumberOfThreads
360    {
361      get
362      {
363        return this._NumberOfThreads;
364      }
365      set
366      {
367        if ((this._NumberOfThreads != value))
368        {
369          this.OnNumberOfThreadsChanging(value);
370          this.SendPropertyChanging();
371          this._NumberOfThreads = value;
372          this.SendPropertyChanged("NumberOfThreads");
373          this.OnNumberOfThreadsChanged();
374        }
375      }
376    }
377   
378    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdress")]
379    public string IPAdress
380    {
381      get
382      {
383        return this._IPAdress;
384      }
385      set
386      {
387        if ((this._IPAdress != value))
388        {
389          this.OnIPAdressChanging(value);
390          this.SendPropertyChanging();
391          this._IPAdress = value;
392          this.SendPropertyChanged("IPAdress");
393          this.OnIPAdressChanged();
394        }
395      }
396    }
397   
398    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemorySize")]
399    public string MemorySize
400    {
401      get
402      {
403        return this._MemorySize;
404      }
405      set
406      {
407        if ((this._MemorySize != value))
408        {
409          this.OnMemorySizeChanging(value);
410          this.SendPropertyChanging();
411          this._MemorySize = value;
412          this.SendPropertyChanged("MemorySize");
413          this.OnMemorySizeChanged();
414        }
415      }
416    }
417   
418    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingSystem")]
419    public string OperatingSystem
420    {
421      get
422      {
423        return this._OperatingSystem;
424      }
425      set
426      {
427        if ((this._OperatingSystem != value))
428        {
429          this.OnOperatingSystemChanging(value);
430          this.SendPropertyChanging();
431          this._OperatingSystem = value;
432          this.SendPropertyChanged("OperatingSystem");
433          this.OnOperatingSystemChanged();
434        }
435      }
436    }
437  }
438 
439  public partial class ResourceGroup : Resource
440  {
441   
442    #region Extensibility Method Definitions
443    partial void OnLoaded();
444    partial void OnValidate(System.Data.Linq.ChangeAction action);
445    partial void OnCreated();
446    #endregion
447   
448    public ResourceGroup()
449    {
450      OnCreated();
451    }
452  }
453 
454  [global::System.Data.Linq.Mapping.TableAttribute(Name="")]
455  public partial class ResourceResourceGroup : INotifyPropertyChanging, INotifyPropertyChanged
456  {
457   
458    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
459   
460    private System.Guid _ResourceID;
461   
462    private System.Guid _ResourceGroupID;
463   
464    private EntityRef<Resource> _Resource;
465   
466    private EntityRef<Resource> _Resource1;
467   
468    #region Extensibility Method Definitions
469    partial void OnLoaded();
470    partial void OnValidate(System.Data.Linq.ChangeAction action);
471    partial void OnCreated();
472    partial void OnResourceIDChanging(System.Guid value);
473    partial void OnResourceIDChanged();
474    partial void OnResourceGroupIDChanging(System.Guid value);
475    partial void OnResourceGroupIDChanged();
476    #endregion
477   
478    public ResourceResourceGroup()
479    {
480      this._Resource = default(EntityRef<Resource>);
481      this._Resource1 = default(EntityRef<Resource>);
482      OnCreated();
483    }
484   
485    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceID", IsPrimaryKey=true)]
486    public System.Guid ResourceID
487    {
488      get
489      {
490        return this._ResourceID;
491      }
492      set
493      {
494        if ((this._ResourceID != value))
495        {
496          if (this._Resource.HasLoadedOrAssignedValue)
497          {
498            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
499          }
500          this.OnResourceIDChanging(value);
501          this.SendPropertyChanging();
502          this._ResourceID = value;
503          this.SendPropertyChanged("ResourceID");
504          this.OnResourceIDChanged();
505        }
506      }
507    }
508   
509    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceGroupID", IsPrimaryKey=true)]
510    public System.Guid ResourceGroupID
511    {
512      get
513      {
514        return this._ResourceGroupID;
515      }
516      set
517      {
518        if ((this._ResourceGroupID != value))
519        {
520          if (this._Resource1.HasLoadedOrAssignedValue)
521          {
522            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
523          }
524          this.OnResourceGroupIDChanging(value);
525          this.SendPropertyChanging();
526          this._ResourceGroupID = value;
527          this.SendPropertyChanged("ResourceGroupID");
528          this.OnResourceGroupIDChanged();
529        }
530      }
531    }
532   
533    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_Resource", ThisKey="ResourceID", OtherKey="ResourceID", IsForeignKey=true)]
534    public Resource Client
535    {
536      get
537      {
538        return this._Resource.Entity;
539      }
540      set
541      {
542        Resource previousValue = this._Resource.Entity;
543        if (((previousValue != value)
544              || (this._Resource.HasLoadedOrAssignedValue == false)))
545        {
546          this.SendPropertyChanging();
547          if ((previousValue != null))
548          {
549            this._Resource.Entity = null;
550            previousValue.Clients.Remove(this);
551          }
552          this._Resource.Entity = value;
553          if ((value != null))
554          {
555            value.Clients.Add(this);
556            this._ResourceID = value.ResourceID;
557          }
558          else
559          {
560            this._ResourceID = default(System.Guid);
561          }
562          this.SendPropertyChanged("Client");
563        }
564      }
565    }
566   
567    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_Resource1", ThisKey="ResourceGroupID", OtherKey="ResourceID", IsForeignKey=true)]
568    public Resource ResourceGroup
569    {
570      get
571      {
572        return this._Resource1.Entity;
573      }
574      set
575      {
576        Resource previousValue = this._Resource1.Entity;
577        if (((previousValue != value)
578              || (this._Resource1.HasLoadedOrAssignedValue == false)))
579        {
580          this.SendPropertyChanging();
581          if ((previousValue != null))
582          {
583            this._Resource1.Entity = null;
584            previousValue.ResourceGroups.Remove(this);
585          }
586          this._Resource1.Entity = value;
587          if ((value != null))
588          {
589            value.ResourceGroups.Add(this);
590            this._ResourceGroupID = value.ResourceID;
591          }
592          else
593          {
594            this._ResourceGroupID = default(System.Guid);
595          }
596          this.SendPropertyChanged("ResourceGroup");
597        }
598      }
599    }
600   
601    public event PropertyChangingEventHandler PropertyChanging;
602   
603    public event PropertyChangedEventHandler PropertyChanged;
604   
605    protected virtual void SendPropertyChanging()
606    {
607      if ((this.PropertyChanging != null))
608      {
609        this.PropertyChanging(this, emptyChangingEventArgs);
610      }
611    }
612   
613    protected virtual void SendPropertyChanged(String propertyName)
614    {
615      if ((this.PropertyChanged != null))
616      {
617        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
618      }
619    }
620  }
621}
622#pragma warning restore 1591
Note: See TracBrowser for help on using the repository browser.