Free cookie consent management tool by TermsFeed Policy Generator

source: branches/ClientUserManagement/HeuristicLab.Services.Access.DataAccess/3.3/ClientManagement.designer.cs @ 6815

Last change on this file since 6815 was 6815, checked in by ascheibe, 13 years ago

#1648

  • join user and client management to 1 project
  • completed webservice interface
File size: 34.7 KB
RevLine 
[6815]1#pragma warning disable 1591
2//------------------------------------------------------------------------------
3// <auto-generated>
4//     This code was generated by a tool.
5//     Runtime Version:4.0.30319.237
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.Access.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  [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="HeuristicLab.ClientManagement")]
26  public partial class ClientManagementDataContext : System.Data.Linq.DataContext
27  {
28   
29    private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
30   
31    #region Extensibility Method Definitions
32    partial void OnCreated();
33    partial void InsertResource(Resource instance);
34    partial void UpdateResource(Resource instance);
35    partial void DeleteResource(Resource instance);
36    partial void InsertResourceResourceGroup(ResourceResourceGroup instance);
37    partial void UpdateResourceResourceGroup(ResourceResourceGroup instance);
38    partial void DeleteResourceResourceGroup(ResourceResourceGroup instance);
39    partial void InsertClientLog(ClientLog instance);
40    partial void UpdateClientLog(ClientLog instance);
41    partial void DeleteClientLog(ClientLog instance);
42    partial void InsertUser(User instance);
43    partial void UpdateUser(User instance);
44    partial void DeleteUser(User instance);
45    partial void InsertUserGroup(UserGroup instance);
46    partial void UpdateUserGroup(UserGroup instance);
47    partial void DeleteUserGroup(UserGroup instance);
48    partial void InsertUserUserGroup(UserUserGroup instance);
49    partial void UpdateUserUserGroup(UserUserGroup instance);
50    partial void DeleteUserUserGroup(UserUserGroup instance);
51    #endregion
52   
53    public ClientManagementDataContext() :
54        base(global::HeuristicLab.Services.Access.DataAccess.Properties.Settings.Default.HeuristicLab_ClientManagementConnectionString, mappingSource)
55    {
56      OnCreated();
57    }
58   
59    public ClientManagementDataContext(string connection) :
60        base(connection, mappingSource)
61    {
62      OnCreated();
63    }
64   
65    public ClientManagementDataContext(System.Data.IDbConnection connection) :
66        base(connection, mappingSource)
67    {
68      OnCreated();
69    }
70   
71    public ClientManagementDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
72        base(connection, mappingSource)
73    {
74      OnCreated();
75    }
76   
77    public ClientManagementDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
78        base(connection, mappingSource)
79    {
80      OnCreated();
81    }
82   
83    public System.Data.Linq.Table<Resource> Resources
84    {
85      get
86      {
87        return this.GetTable<Resource>();
88      }
89    }
90   
91    public System.Data.Linq.Table<ResourceResourceGroup> ResourceResourceGroups
92    {
93      get
94      {
95        return this.GetTable<ResourceResourceGroup>();
96      }
97    }
98   
99    public System.Data.Linq.Table<ClientLog> ClientLogs
100    {
101      get
102      {
103        return this.GetTable<ClientLog>();
104      }
105    }
106   
107    public System.Data.Linq.Table<User> Users
108    {
109      get
110      {
111        return this.GetTable<User>();
112      }
113    }
114   
115    public System.Data.Linq.Table<UserGroup> UserGroups
116    {
117      get
118      {
119        return this.GetTable<UserGroup>();
120      }
121    }
122   
123    public System.Data.Linq.Table<UserUserGroup> UserUserGroups
124    {
125      get
126      {
127        return this.GetTable<UserUserGroup>();
128      }
129    }
130  }
131 
132  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Resource")]
133  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Resource", Type=typeof(Resource))]
134  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Client", Type=typeof(Client))]
135  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Group", Type=typeof(Group))]
136  public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged
137  {
138   
139    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
140   
141    private System.Guid _Id;
142   
143    private string _Name;
144   
145    private string _Description;
146   
147    private string _Type;
148   
149    private EntitySet<ResourceResourceGroup> _ResourceResourceGroups;
150   
151    private EntitySet<ResourceResourceGroup> _ResourceResourceGroups1;
152   
153    private EntitySet<ClientLog> _ClientLogs;
154   
155    #region Extensibility Method Definitions
156    partial void OnLoaded();
157    partial void OnValidate(System.Data.Linq.ChangeAction action);
158    partial void OnCreated();
159    partial void OnIdChanging(System.Guid value);
160    partial void OnIdChanged();
161    partial void OnNameChanging(string value);
162    partial void OnNameChanged();
163    partial void OnDescriptionChanging(string value);
164    partial void OnDescriptionChanged();
165    partial void OnTypeChanging(string value);
166    partial void OnTypeChanged();
167    #endregion
168   
169    public Resource()
170    {
171      this._ResourceResourceGroups = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups));
172      this._ResourceResourceGroups1 = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups1), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups1));
173      this._ClientLogs = new EntitySet<ClientLog>(new Action<ClientLog>(this.attach_ClientLogs), new Action<ClientLog>(this.detach_ClientLogs));
174      OnCreated();
175    }
176   
177    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
178    public System.Guid Id
179    {
180      get
181      {
182        return this._Id;
183      }
184      set
185      {
186        if ((this._Id != value))
187        {
188          this.OnIdChanging(value);
189          this.SendPropertyChanging();
190          this._Id = value;
191          this.SendPropertyChanged("Id");
192          this.OnIdChanged();
193        }
194      }
195    }
196   
197    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false)]
198    public string Name
199    {
200      get
201      {
202        return this._Name;
203      }
204      set
205      {
206        if ((this._Name != value))
207        {
208          this.OnNameChanging(value);
209          this.SendPropertyChanging();
210          this._Name = value;
211          this.SendPropertyChanged("Name");
212          this.OnNameChanged();
213        }
214      }
215    }
216   
217    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(MAX)")]
218    public string Description
219    {
220      get
221      {
222        return this._Description;
223      }
224      set
225      {
226        if ((this._Description != value))
227        {
228          this.OnDescriptionChanging(value);
229          this.SendPropertyChanging();
230          this._Description = value;
231          this.SendPropertyChanged("Description");
232          this.OnDescriptionChanged();
233        }
234      }
235    }
236   
237    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false, IsDiscriminator=true)]
238    public string Type
239    {
240      get
241      {
242        return this._Type;
243      }
244      set
245      {
246        if ((this._Type != value))
247        {
248          this.OnTypeChanging(value);
249          this.SendPropertyChanging();
250          this._Type = value;
251          this.SendPropertyChanged("Type");
252          this.OnTypeChanged();
253        }
254      }
255    }
256   
257    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_ResourceResourceGroups", ThisKey="Id", OtherKey="ResourceGroupId")]
258    public EntitySet<ResourceResourceGroup> ResourceResourceGroups
259    {
260      get
261      {
262        return this._ResourceResourceGroups;
263      }
264      set
265      {
266        this._ResourceResourceGroups.Assign(value);
267      }
268    }
269   
270    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_ResourceResourceGroups1", ThisKey="Id", OtherKey="ResourceId")]
271    public EntitySet<ResourceResourceGroup> ResourceResourceGroups1
272    {
273      get
274      {
275        return this._ResourceResourceGroups1;
276      }
277      set
278      {
279        this._ResourceResourceGroups1.Assign(value);
280      }
281    }
282   
283    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ClientLog", Storage="_ClientLogs", ThisKey="Id", OtherKey="ResourceId")]
284    public EntitySet<ClientLog> ClientLogs
285    {
286      get
287      {
288        return this._ClientLogs;
289      }
290      set
291      {
292        this._ClientLogs.Assign(value);
293      }
294    }
295   
296    public event PropertyChangingEventHandler PropertyChanging;
297   
298    public event PropertyChangedEventHandler PropertyChanged;
299   
300    protected virtual void SendPropertyChanging()
301    {
302      if ((this.PropertyChanging != null))
303      {
304        this.PropertyChanging(this, emptyChangingEventArgs);
305      }
306    }
307   
308    protected virtual void SendPropertyChanged(String propertyName)
309    {
310      if ((this.PropertyChanged != null))
311      {
312        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
313      }
314    }
315   
316    private void attach_ResourceResourceGroups(ResourceResourceGroup entity)
317    {
318      this.SendPropertyChanging();
319      entity.Resource = this;
320    }
321   
322    private void detach_ResourceResourceGroups(ResourceResourceGroup entity)
323    {
324      this.SendPropertyChanging();
325      entity.Resource = null;
326    }
327   
328    private void attach_ResourceResourceGroups1(ResourceResourceGroup entity)
329    {
330      this.SendPropertyChanging();
331      entity.Resource1 = this;
332    }
333   
334    private void detach_ResourceResourceGroups1(ResourceResourceGroup entity)
335    {
336      this.SendPropertyChanging();
337      entity.Resource1 = null;
338    }
339   
340    private void attach_ClientLogs(ClientLog entity)
341    {
342      this.SendPropertyChanging();
343      entity.Resource = this;
344    }
345   
346    private void detach_ClientLogs(ClientLog entity)
347    {
348      this.SendPropertyChanging();
349      entity.Resource = null;
350    }
351  }
352 
353  public partial class Client : Resource
354  {
355   
356    private string _ProcessorType;
357   
358    private System.Nullable<int> _NumberOfCores;
359   
360    private System.Nullable<int> _MemorySize;
361   
362    private string _OperatingSystem;
363   
364    private string _IPAdresss;
365   
366    private string _HeuristicLabVersion;
367   
368    private string _Country;
369   
370    #region Extensibility Method Definitions
371    partial void OnLoaded();
372    partial void OnValidate(System.Data.Linq.ChangeAction action);
373    partial void OnCreated();
374    partial void OnProcessorTypeChanging(string value);
375    partial void OnProcessorTypeChanged();
376    partial void OnNumberOfCoresChanging(System.Nullable<int> value);
377    partial void OnNumberOfCoresChanged();
378    partial void OnMemorySizeChanging(System.Nullable<int> value);
379    partial void OnMemorySizeChanged();
380    partial void OnOperatingSystemChanging(string value);
381    partial void OnOperatingSystemChanged();
382    partial void OnIPAddressChanging(string value);
383    partial void OnIPAddressChanged();
384    partial void OnHeuristicLabVersionChanging(string value);
385    partial void OnHeuristicLabVersionChanged();
386    partial void OnCountryChanging(string value);
387    partial void OnCountryChanged();
388    #endregion
389   
390    public Client()
391    {
392      OnCreated();
393    }
394   
395    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcessorType", DbType="NVarChar(MAX)")]
396    public string ProcessorType
397    {
398      get
399      {
400        return this._ProcessorType;
401      }
402      set
403      {
404        if ((this._ProcessorType != value))
405        {
406          this.OnProcessorTypeChanging(value);
407          this.SendPropertyChanging();
408          this._ProcessorType = value;
409          this.SendPropertyChanged("ProcessorType");
410          this.OnProcessorTypeChanged();
411        }
412      }
413    }
414   
415    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfCores", DbType="int")]
416    public System.Nullable<int> NumberOfCores
417    {
418      get
419      {
420        return this._NumberOfCores;
421      }
422      set
423      {
424        if ((this._NumberOfCores != value))
425        {
426          this.OnNumberOfCoresChanging(value);
427          this.SendPropertyChanging();
428          this._NumberOfCores = value;
429          this.SendPropertyChanged("NumberOfCores");
430          this.OnNumberOfCoresChanged();
431        }
432      }
433    }
434   
435    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemorySize", DbType="int")]
436    public System.Nullable<int> MemorySize
437    {
438      get
439      {
440        return this._MemorySize;
441      }
442      set
443      {
444        if ((this._MemorySize != value))
445        {
446          this.OnMemorySizeChanging(value);
447          this.SendPropertyChanging();
448          this._MemorySize = value;
449          this.SendPropertyChanged("MemorySize");
450          this.OnMemorySizeChanged();
451        }
452      }
453    }
454   
455    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingSystem", DbType="NVarChar(MAX)")]
456    public string OperatingSystem
457    {
458      get
459      {
460        return this._OperatingSystem;
461      }
462      set
463      {
464        if ((this._OperatingSystem != value))
465        {
466          this.OnOperatingSystemChanging(value);
467          this.SendPropertyChanging();
468          this._OperatingSystem = value;
469          this.SendPropertyChanged("OperatingSystem");
470          this.OnOperatingSystemChanged();
471        }
472      }
473    }
474   
475    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdresss", DbType="NVarChar(MAX)")]
476    public string IPAddress
477    {
478      get
479      {
480        return this._IPAdresss;
481      }
482      set
483      {
484        if ((this._IPAdresss != value))
485        {
486          this.OnIPAddressChanging(value);
487          this.SendPropertyChanging();
488          this._IPAdresss = value;
489          this.SendPropertyChanged("IPAddress");
490          this.OnIPAddressChanged();
491        }
492      }
493    }
494   
495    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HeuristicLabVersion", DbType="NVarChar(MAX)")]
496    public string HeuristicLabVersion
497    {
498      get
499      {
500        return this._HeuristicLabVersion;
501      }
502      set
503      {
504        if ((this._HeuristicLabVersion != value))
505        {
506          this.OnHeuristicLabVersionChanging(value);
507          this.SendPropertyChanging();
508          this._HeuristicLabVersion = value;
509          this.SendPropertyChanged("HeuristicLabVersion");
510          this.OnHeuristicLabVersionChanged();
511        }
512      }
513    }
514   
515    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Country", DbType="NVarChar(MAX)")]
516    public string Country
517    {
518      get
519      {
520        return this._Country;
521      }
522      set
523      {
524        if ((this._Country != value))
525        {
526          this.OnCountryChanging(value);
527          this.SendPropertyChanging();
528          this._Country = value;
529          this.SendPropertyChanged("Country");
530          this.OnCountryChanged();
531        }
532      }
533    }
534  }
535 
536  public partial class Group : Resource
537  {
538   
539    #region Extensibility Method Definitions
540    partial void OnLoaded();
541    partial void OnValidate(System.Data.Linq.ChangeAction action);
542    partial void OnCreated();
543    #endregion
544   
545    public Group()
546    {
547      OnCreated();
548    }
549  }
550 
551  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ResourceResourceGroup")]
552  public partial class ResourceResourceGroup : INotifyPropertyChanging, INotifyPropertyChanged
553  {
554   
555    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
556   
557    private System.Guid _ResourceId;
558   
559    private System.Guid _ResourceGroupId;
560   
561    private EntityRef<Resource> _Resource;
562   
563    private EntityRef<Resource> _Resource1;
564   
565    #region Extensibility Method Definitions
566    partial void OnLoaded();
567    partial void OnValidate(System.Data.Linq.ChangeAction action);
568    partial void OnCreated();
569    partial void OnResourceIdChanging(System.Guid value);
570    partial void OnResourceIdChanged();
571    partial void OnResourceGroupIdChanging(System.Guid value);
572    partial void OnResourceGroupIdChanged();
573    #endregion
574   
575    public ResourceResourceGroup()
576    {
577      this._Resource = default(EntityRef<Resource>);
578      this._Resource1 = default(EntityRef<Resource>);
579      OnCreated();
580    }
581   
582    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
583    public System.Guid ResourceId
584    {
585      get
586      {
587        return this._ResourceId;
588      }
589      set
590      {
591        if ((this._ResourceId != value))
592        {
593          if (this._Resource1.HasLoadedOrAssignedValue)
594          {
595            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
596          }
597          this.OnResourceIdChanging(value);
598          this.SendPropertyChanging();
599          this._ResourceId = value;
600          this.SendPropertyChanged("ResourceId");
601          this.OnResourceIdChanged();
602        }
603      }
604    }
605   
606    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceGroupId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
607    public System.Guid ResourceGroupId
608    {
609      get
610      {
611        return this._ResourceGroupId;
612      }
613      set
614      {
615        if ((this._ResourceGroupId != value))
616        {
617          if (this._Resource.HasLoadedOrAssignedValue)
618          {
619            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
620          }
621          this.OnResourceGroupIdChanging(value);
622          this.SendPropertyChanging();
623          this._ResourceGroupId = value;
624          this.SendPropertyChanged("ResourceGroupId");
625          this.OnResourceGroupIdChanged();
626        }
627      }
628    }
629   
630    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_Resource", ThisKey="ResourceGroupId", OtherKey="Id", IsForeignKey=true)]
631    public Resource Resource
632    {
633      get
634      {
635        return this._Resource.Entity;
636      }
637      set
638      {
639        Resource previousValue = this._Resource.Entity;
640        if (((previousValue != value)
641              || (this._Resource.HasLoadedOrAssignedValue == false)))
642        {
643          this.SendPropertyChanging();
644          if ((previousValue != null))
645          {
646            this._Resource.Entity = null;
647            previousValue.ResourceResourceGroups.Remove(this);
648          }
649          this._Resource.Entity = value;
650          if ((value != null))
651          {
652            value.ResourceResourceGroups.Add(this);
653            this._ResourceGroupId = value.Id;
654          }
655          else
656          {
657            this._ResourceGroupId = default(System.Guid);
658          }
659          this.SendPropertyChanged("Resource");
660        }
661      }
662    }
663   
664    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_Resource1", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)]
665    public Resource Resource1
666    {
667      get
668      {
669        return this._Resource1.Entity;
670      }
671      set
672      {
673        Resource previousValue = this._Resource1.Entity;
674        if (((previousValue != value)
675              || (this._Resource1.HasLoadedOrAssignedValue == false)))
676        {
677          this.SendPropertyChanging();
678          if ((previousValue != null))
679          {
680            this._Resource1.Entity = null;
681            previousValue.ResourceResourceGroups1.Remove(this);
682          }
683          this._Resource1.Entity = value;
684          if ((value != null))
685          {
686            value.ResourceResourceGroups1.Add(this);
687            this._ResourceId = value.Id;
688          }
689          else
690          {
691            this._ResourceId = default(System.Guid);
692          }
693          this.SendPropertyChanged("Resource1");
694        }
695      }
696    }
697   
698    public event PropertyChangingEventHandler PropertyChanging;
699   
700    public event PropertyChangedEventHandler PropertyChanged;
701   
702    protected virtual void SendPropertyChanging()
703    {
704      if ((this.PropertyChanging != null))
705      {
706        this.PropertyChanging(this, emptyChangingEventArgs);
707      }
708    }
709   
710    protected virtual void SendPropertyChanged(String propertyName)
711    {
712      if ((this.PropertyChanged != null))
713      {
714        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
715      }
716    }
717  }
718 
719  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ClientLog")]
720  public partial class ClientLog : INotifyPropertyChanging, INotifyPropertyChanged
721  {
722   
723    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
724   
725    private System.DateTime _Timestamp;
726   
727    private System.Guid _ResourceId;
728   
729    private string _Message;
730   
731    private string _Exception;
732   
733    private EntityRef<Resource> _Resource;
734   
735    #region Extensibility Method Definitions
736    partial void OnLoaded();
737    partial void OnValidate(System.Data.Linq.ChangeAction action);
738    partial void OnCreated();
739    partial void OnTimestampChanging(System.DateTime value);
740    partial void OnTimestampChanged();
741    partial void OnResourceIdChanging(System.Guid value);
742    partial void OnResourceIdChanged();
743    partial void OnMessageChanging(string value);
744    partial void OnMessageChanged();
745    partial void OnExceptionChanging(string value);
746    partial void OnExceptionChanged();
747    #endregion
748   
749    public ClientLog()
750    {
751      this._Resource = default(EntityRef<Resource>);
752      OnCreated();
753    }
754   
755    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Timestamp", DbType="DateTime NOT NULL", IsPrimaryKey=true)]
756    public System.DateTime Timestamp
757    {
758      get
759      {
760        return this._Timestamp;
761      }
762      set
763      {
764        if ((this._Timestamp != value))
765        {
766          this.OnTimestampChanging(value);
767          this.SendPropertyChanging();
768          this._Timestamp = value;
769          this.SendPropertyChanged("Timestamp");
770          this.OnTimestampChanged();
771        }
772      }
773    }
774   
775    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
776    public System.Guid ResourceId
777    {
778      get
779      {
780        return this._ResourceId;
781      }
782      set
783      {
784        if ((this._ResourceId != value))
785        {
786          if (this._Resource.HasLoadedOrAssignedValue)
787          {
788            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
789          }
790          this.OnResourceIdChanging(value);
791          this.SendPropertyChanging();
792          this._ResourceId = value;
793          this.SendPropertyChanged("ResourceId");
794          this.OnResourceIdChanged();
795        }
796      }
797    }
798   
799    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Message", DbType="NVarChar(MAX)")]
800    public string Message
801    {
802      get
803      {
804        return this._Message;
805      }
806      set
807      {
808        if ((this._Message != value))
809        {
810          this.OnMessageChanging(value);
811          this.SendPropertyChanging();
812          this._Message = value;
813          this.SendPropertyChanged("Message");
814          this.OnMessageChanged();
815        }
816      }
817    }
818   
819    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Exception", DbType="NVarChar(MAX)")]
820    public string Exception
821    {
822      get
823      {
824        return this._Exception;
825      }
826      set
827      {
828        if ((this._Exception != value))
829        {
830          this.OnExceptionChanging(value);
831          this.SendPropertyChanging();
832          this._Exception = value;
833          this.SendPropertyChanged("Exception");
834          this.OnExceptionChanged();
835        }
836      }
837    }
838   
839    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ClientLog", Storage="_Resource", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)]
840    public Resource Resource
841    {
842      get
843      {
844        return this._Resource.Entity;
845      }
846      set
847      {
848        Resource previousValue = this._Resource.Entity;
849        if (((previousValue != value)
850              || (this._Resource.HasLoadedOrAssignedValue == false)))
851        {
852          this.SendPropertyChanging();
853          if ((previousValue != null))
854          {
855            this._Resource.Entity = null;
856            previousValue.ClientLogs.Remove(this);
857          }
858          this._Resource.Entity = value;
859          if ((value != null))
860          {
861            value.ClientLogs.Add(this);
862            this._ResourceId = value.Id;
863          }
864          else
865          {
866            this._ResourceId = default(System.Guid);
867          }
868          this.SendPropertyChanged("Resource");
869        }
870      }
871    }
872   
873    public event PropertyChangingEventHandler PropertyChanging;
874   
875    public event PropertyChangedEventHandler PropertyChanged;
876   
877    protected virtual void SendPropertyChanging()
878    {
879      if ((this.PropertyChanging != null))
880      {
881        this.PropertyChanging(this, emptyChangingEventArgs);
882      }
883    }
884   
885    protected virtual void SendPropertyChanged(String propertyName)
886    {
887      if ((this.PropertyChanged != null))
888      {
889        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
890      }
891    }
892  }
893 
894  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.[User]")]
895  public partial class User : INotifyPropertyChanging, INotifyPropertyChanged
896  {
897   
898    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
899   
900    private System.Guid _Id;
901   
902    private string _FullName;
903   
904    private EntitySet<UserUserGroup> _UserUserGroups;
905   
906    #region Extensibility Method Definitions
907    partial void OnLoaded();
908    partial void OnValidate(System.Data.Linq.ChangeAction action);
909    partial void OnCreated();
910    partial void OnIdChanging(System.Guid value);
911    partial void OnIdChanged();
912    partial void OnFullNameChanging(string value);
913    partial void OnFullNameChanged();
914    #endregion
915   
916    public User()
917    {
918      this._UserUserGroups = new EntitySet<UserUserGroup>(new Action<UserUserGroup>(this.attach_UserUserGroups), new Action<UserUserGroup>(this.detach_UserUserGroups));
919      OnCreated();
920    }
921   
922    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
923    public System.Guid Id
924    {
925      get
926      {
927        return this._Id;
928      }
929      set
930      {
931        if ((this._Id != value))
932        {
933          this.OnIdChanging(value);
934          this.SendPropertyChanging();
935          this._Id = value;
936          this.SendPropertyChanged("Id");
937          this.OnIdChanged();
938        }
939      }
940    }
941   
942    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FullName", DbType="NVarChar(MAX)")]
943    public string FullName
944    {
945      get
946      {
947        return this._FullName;
948      }
949      set
950      {
951        if ((this._FullName != value))
952        {
953          this.OnFullNameChanging(value);
954          this.SendPropertyChanging();
955          this._FullName = value;
956          this.SendPropertyChanged("FullName");
957          this.OnFullNameChanged();
958        }
959      }
960    }
961   
962    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserUserGroup", Storage="_UserUserGroups", ThisKey="Id", OtherKey="UserId")]
963    public EntitySet<UserUserGroup> UserUserGroups
964    {
965      get
966      {
967        return this._UserUserGroups;
968      }
969      set
970      {
971        this._UserUserGroups.Assign(value);
972      }
973    }
974   
975    public event PropertyChangingEventHandler PropertyChanging;
976   
977    public event PropertyChangedEventHandler PropertyChanged;
978   
979    protected virtual void SendPropertyChanging()
980    {
981      if ((this.PropertyChanging != null))
982      {
983        this.PropertyChanging(this, emptyChangingEventArgs);
984      }
985    }
986   
987    protected virtual void SendPropertyChanged(String propertyName)
988    {
989      if ((this.PropertyChanged != null))
990      {
991        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
992      }
993    }
994   
995    private void attach_UserUserGroups(UserUserGroup entity)
996    {
997      this.SendPropertyChanging();
998      entity.User = this;
999    }
1000   
1001    private void detach_UserUserGroups(UserUserGroup entity)
1002    {
1003      this.SendPropertyChanging();
1004      entity.User = null;
1005    }
1006  }
1007 
1008  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserGroup")]
1009  public partial class UserGroup : INotifyPropertyChanging, INotifyPropertyChanged
1010  {
1011   
1012    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1013   
1014    private System.Guid _Id;
1015   
1016    private string _Name;
1017   
1018    private System.Nullable<System.Guid> _ParentUserGroup;
1019   
1020    private EntitySet<UserUserGroup> _UserUserGroups;
1021   
1022    #region Extensibility Method Definitions
1023    partial void OnLoaded();
1024    partial void OnValidate(System.Data.Linq.ChangeAction action);
1025    partial void OnCreated();
1026    partial void OnIdChanging(System.Guid value);
1027    partial void OnIdChanged();
1028    partial void OnNameChanging(string value);
1029    partial void OnNameChanged();
1030    partial void OnParentUserGroupChanging(System.Nullable<System.Guid> value);
1031    partial void OnParentUserGroupChanged();
1032    #endregion
1033   
1034    public UserGroup()
1035    {
1036      this._UserUserGroups = new EntitySet<UserUserGroup>(new Action<UserUserGroup>(this.attach_UserUserGroups), new Action<UserUserGroup>(this.detach_UserUserGroups));
1037      OnCreated();
1038    }
1039   
1040    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1041    public System.Guid Id
1042    {
1043      get
1044      {
1045        return this._Id;
1046      }
1047      set
1048      {
1049        if ((this._Id != value))
1050        {
1051          this.OnIdChanging(value);
1052          this.SendPropertyChanging();
1053          this._Id = value;
1054          this.SendPropertyChanged("Id");
1055          this.OnIdChanged();
1056        }
1057      }
1058    }
1059   
1060    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false)]
1061    public string Name
1062    {
1063      get
1064      {
1065        return this._Name;
1066      }
1067      set
1068      {
1069        if ((this._Name != value))
1070        {
1071          this.OnNameChanging(value);
1072          this.SendPropertyChanging();
1073          this._Name = value;
1074          this.SendPropertyChanged("Name");
1075          this.OnNameChanged();
1076        }
1077      }
1078    }
1079   
1080    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentUserGroup", DbType="UniqueIdentifier")]
1081    public System.Nullable<System.Guid> ParentUserGroup
1082    {
1083      get
1084      {
1085        return this._ParentUserGroup;
1086      }
1087      set
1088      {
1089        if ((this._ParentUserGroup != value))
1090        {
1091          this.OnParentUserGroupChanging(value);
1092          this.SendPropertyChanging();
1093          this._ParentUserGroup = value;
1094          this.SendPropertyChanged("ParentUserGroup");
1095          this.OnParentUserGroupChanged();
1096        }
1097      }
1098    }
1099   
1100    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="UserGroup_UserUserGroup", Storage="_UserUserGroups", ThisKey="Id", OtherKey="UserGroupId")]
1101    public EntitySet<UserUserGroup> UserUserGroups
1102    {
1103      get
1104      {
1105        return this._UserUserGroups;
1106      }
1107      set
1108      {
1109        this._UserUserGroups.Assign(value);
1110      }
1111    }
1112   
1113    public event PropertyChangingEventHandler PropertyChanging;
1114   
1115    public event PropertyChangedEventHandler PropertyChanged;
1116   
1117    protected virtual void SendPropertyChanging()
1118    {
1119      if ((this.PropertyChanging != null))
1120      {
1121        this.PropertyChanging(this, emptyChangingEventArgs);
1122      }
1123    }
1124   
1125    protected virtual void SendPropertyChanged(String propertyName)
1126    {
1127      if ((this.PropertyChanged != null))
1128      {
1129        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1130      }
1131    }
1132   
1133    private void attach_UserUserGroups(UserUserGroup entity)
1134    {
1135      this.SendPropertyChanging();
1136      entity.UserGroup = this;
1137    }
1138   
1139    private void detach_UserUserGroups(UserUserGroup entity)
1140    {
1141      this.SendPropertyChanging();
1142      entity.UserGroup = null;
1143    }
1144  }
1145 
1146  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserUserGroup")]
1147  public partial class UserUserGroup : INotifyPropertyChanging, INotifyPropertyChanged
1148  {
1149   
1150    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
1151   
1152    private System.Guid _UserId;
1153   
1154    private System.Guid _UserGroupId;
1155   
1156    private EntityRef<User> _User;
1157   
1158    private EntityRef<UserGroup> _UserGroup;
1159   
1160    #region Extensibility Method Definitions
1161    partial void OnLoaded();
1162    partial void OnValidate(System.Data.Linq.ChangeAction action);
1163    partial void OnCreated();
1164    partial void OnUserIdChanging(System.Guid value);
1165    partial void OnUserIdChanged();
1166    partial void OnUserGroupIdChanging(System.Guid value);
1167    partial void OnUserGroupIdChanged();
1168    #endregion
1169   
1170    public UserUserGroup()
1171    {
1172      this._User = default(EntityRef<User>);
1173      this._UserGroup = default(EntityRef<UserGroup>);
1174      OnCreated();
1175    }
1176   
1177    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1178    public System.Guid UserId
1179    {
1180      get
1181      {
1182        return this._UserId;
1183      }
1184      set
1185      {
1186        if ((this._UserId != value))
1187        {
1188          if (this._User.HasLoadedOrAssignedValue)
1189          {
1190            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1191          }
1192          this.OnUserIdChanging(value);
1193          this.SendPropertyChanging();
1194          this._UserId = value;
1195          this.SendPropertyChanged("UserId");
1196          this.OnUserIdChanged();
1197        }
1198      }
1199    }
1200   
1201    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserGroupId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
1202    public System.Guid UserGroupId
1203    {
1204      get
1205      {
1206        return this._UserGroupId;
1207      }
1208      set
1209      {
1210        if ((this._UserGroupId != value))
1211        {
1212          if (this._UserGroup.HasLoadedOrAssignedValue)
1213          {
1214            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
1215          }
1216          this.OnUserGroupIdChanging(value);
1217          this.SendPropertyChanging();
1218          this._UserGroupId = value;
1219          this.SendPropertyChanged("UserGroupId");
1220          this.OnUserGroupIdChanged();
1221        }
1222      }
1223    }
1224   
1225    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserUserGroup", Storage="_User", ThisKey="UserId", OtherKey="Id", IsForeignKey=true)]
1226    public User User
1227    {
1228      get
1229      {
1230        return this._User.Entity;
1231      }
1232      set
1233      {
1234        User previousValue = this._User.Entity;
1235        if (((previousValue != value)
1236              || (this._User.HasLoadedOrAssignedValue == false)))
1237        {
1238          this.SendPropertyChanging();
1239          if ((previousValue != null))
1240          {
1241            this._User.Entity = null;
1242            previousValue.UserUserGroups.Remove(this);
1243          }
1244          this._User.Entity = value;
1245          if ((value != null))
1246          {
1247            value.UserUserGroups.Add(this);
1248            this._UserId = value.Id;
1249          }
1250          else
1251          {
1252            this._UserId = default(System.Guid);
1253          }
1254          this.SendPropertyChanged("User");
1255        }
1256      }
1257    }
1258   
1259    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="UserGroup_UserUserGroup", Storage="_UserGroup", ThisKey="UserGroupId", OtherKey="Id", IsForeignKey=true)]
1260    public UserGroup UserGroup
1261    {
1262      get
1263      {
1264        return this._UserGroup.Entity;
1265      }
1266      set
1267      {
1268        UserGroup previousValue = this._UserGroup.Entity;
1269        if (((previousValue != value)
1270              || (this._UserGroup.HasLoadedOrAssignedValue == false)))
1271        {
1272          this.SendPropertyChanging();
1273          if ((previousValue != null))
1274          {
1275            this._UserGroup.Entity = null;
1276            previousValue.UserUserGroups.Remove(this);
1277          }
1278          this._UserGroup.Entity = value;
1279          if ((value != null))
1280          {
1281            value.UserUserGroups.Add(this);
1282            this._UserGroupId = value.Id;
1283          }
1284          else
1285          {
1286            this._UserGroupId = default(System.Guid);
1287          }
1288          this.SendPropertyChanged("UserGroup");
1289        }
1290      }
1291    }
1292   
1293    public event PropertyChangingEventHandler PropertyChanging;
1294   
1295    public event PropertyChangedEventHandler PropertyChanged;
1296   
1297    protected virtual void SendPropertyChanging()
1298    {
1299      if ((this.PropertyChanging != null))
1300      {
1301        this.PropertyChanging(this, emptyChangingEventArgs);
1302      }
1303    }
1304   
1305    protected virtual void SendPropertyChanged(String propertyName)
1306    {
1307      if ((this.PropertyChanged != null))
1308      {
1309        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
1310      }
1311    }
1312  }
1313}
1314#pragma warning restore 1591
Note: See TracBrowser for help on using the repository browser.