Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 4583 was 4583, checked in by jhaider, 14 years ago

Added Solution with structure (#1197)

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