Free cookie consent management tool by TermsFeed Policy Generator

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

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

#1648 added data model and service interface for client management

File size: 23.0 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.235
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.ClientManagement.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    #endregion
43   
44    public ClientManagementDataContext() :
45        base(global::HeuristicLab.Services.ClientManagement.DataAccess.Properties.Settings.Default.HeuristicLab_ClientManagementConnectionString, mappingSource)
46    {
47      OnCreated();
48    }
49   
50    public ClientManagementDataContext(string connection) :
51        base(connection, mappingSource)
52    {
53      OnCreated();
54    }
55   
56    public ClientManagementDataContext(System.Data.IDbConnection connection) :
57        base(connection, mappingSource)
58    {
59      OnCreated();
60    }
61   
62    public ClientManagementDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
63        base(connection, mappingSource)
64    {
65      OnCreated();
66    }
67   
68    public ClientManagementDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
69        base(connection, mappingSource)
70    {
71      OnCreated();
72    }
73   
74    public System.Data.Linq.Table<Resource> Resources
75    {
76      get
77      {
78        return this.GetTable<Resource>();
79      }
80    }
81   
82    public System.Data.Linq.Table<ResourceResourceGroup> ResourceResourceGroups
83    {
84      get
85      {
86        return this.GetTable<ResourceResourceGroup>();
87      }
88    }
89   
90    public System.Data.Linq.Table<ClientLog> ClientLogs
91    {
92      get
93      {
94        return this.GetTable<ClientLog>();
95      }
96    }
97  }
98 
99  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Resource")]
100  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Resource", Type=typeof(Resource))]
101  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Client", Type=typeof(Client))]
102  [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Group", Type=typeof(Group))]
103  public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged
104  {
105   
106    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
107   
108    private System.Guid _Id;
109   
110    private string _Name;
111   
112    private string _Description;
113   
114    private string _Type;
115   
116    private EntitySet<ResourceResourceGroup> _ResourceResourceGroups;
117   
118    private EntitySet<ResourceResourceGroup> _ResourceResourceGroups1;
119   
120    private EntitySet<ClientLog> _ClientLogs;
121   
122    #region Extensibility Method Definitions
123    partial void OnLoaded();
124    partial void OnValidate(System.Data.Linq.ChangeAction action);
125    partial void OnCreated();
126    partial void OnIdChanging(System.Guid value);
127    partial void OnIdChanged();
128    partial void OnNameChanging(string value);
129    partial void OnNameChanged();
130    partial void OnDescriptionChanging(string value);
131    partial void OnDescriptionChanged();
132    partial void OnTypeChanging(string value);
133    partial void OnTypeChanged();
134    #endregion
135   
136    public Resource()
137    {
138      this._ResourceResourceGroups = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups));
139      this._ResourceResourceGroups1 = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups1), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups1));
140      this._ClientLogs = new EntitySet<ClientLog>(new Action<ClientLog>(this.attach_ClientLogs), new Action<ClientLog>(this.detach_ClientLogs));
141      OnCreated();
142    }
143   
144    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
145    public System.Guid Id
146    {
147      get
148      {
149        return this._Id;
150      }
151      set
152      {
153        if ((this._Id != value))
154        {
155          this.OnIdChanging(value);
156          this.SendPropertyChanging();
157          this._Id = value;
158          this.SendPropertyChanged("Id");
159          this.OnIdChanged();
160        }
161      }
162    }
163   
164    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false)]
165    public string Name
166    {
167      get
168      {
169        return this._Name;
170      }
171      set
172      {
173        if ((this._Name != value))
174        {
175          this.OnNameChanging(value);
176          this.SendPropertyChanging();
177          this._Name = value;
178          this.SendPropertyChanged("Name");
179          this.OnNameChanged();
180        }
181      }
182    }
183   
184    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(MAX)")]
185    public string Description
186    {
187      get
188      {
189        return this._Description;
190      }
191      set
192      {
193        if ((this._Description != value))
194        {
195          this.OnDescriptionChanging(value);
196          this.SendPropertyChanging();
197          this._Description = value;
198          this.SendPropertyChanged("Description");
199          this.OnDescriptionChanged();
200        }
201      }
202    }
203   
204    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false, IsDiscriminator=true)]
205    public string Type
206    {
207      get
208      {
209        return this._Type;
210      }
211      set
212      {
213        if ((this._Type != value))
214        {
215          this.OnTypeChanging(value);
216          this.SendPropertyChanging();
217          this._Type = value;
218          this.SendPropertyChanged("Type");
219          this.OnTypeChanged();
220        }
221      }
222    }
223   
224    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_ResourceResourceGroups", ThisKey="Id", OtherKey="ResourceGroupId")]
225    public EntitySet<ResourceResourceGroup> ResourceResourceGroups
226    {
227      get
228      {
229        return this._ResourceResourceGroups;
230      }
231      set
232      {
233        this._ResourceResourceGroups.Assign(value);
234      }
235    }
236   
237    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_ResourceResourceGroups1", ThisKey="Id", OtherKey="ResourceId")]
238    public EntitySet<ResourceResourceGroup> ResourceResourceGroups1
239    {
240      get
241      {
242        return this._ResourceResourceGroups1;
243      }
244      set
245      {
246        this._ResourceResourceGroups1.Assign(value);
247      }
248    }
249   
250    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ClientLog", Storage="_ClientLogs", ThisKey="Id", OtherKey="ResourceId")]
251    public EntitySet<ClientLog> ClientLogs
252    {
253      get
254      {
255        return this._ClientLogs;
256      }
257      set
258      {
259        this._ClientLogs.Assign(value);
260      }
261    }
262   
263    public event PropertyChangingEventHandler PropertyChanging;
264   
265    public event PropertyChangedEventHandler PropertyChanged;
266   
267    protected virtual void SendPropertyChanging()
268    {
269      if ((this.PropertyChanging != null))
270      {
271        this.PropertyChanging(this, emptyChangingEventArgs);
272      }
273    }
274   
275    protected virtual void SendPropertyChanged(String propertyName)
276    {
277      if ((this.PropertyChanged != null))
278      {
279        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
280      }
281    }
282   
283    private void attach_ResourceResourceGroups(ResourceResourceGroup entity)
284    {
285      this.SendPropertyChanging();
286      entity.Resource = this;
287    }
288   
289    private void detach_ResourceResourceGroups(ResourceResourceGroup entity)
290    {
291      this.SendPropertyChanging();
292      entity.Resource = null;
293    }
294   
295    private void attach_ResourceResourceGroups1(ResourceResourceGroup entity)
296    {
297      this.SendPropertyChanging();
298      entity.Resource1 = this;
299    }
300   
301    private void detach_ResourceResourceGroups1(ResourceResourceGroup entity)
302    {
303      this.SendPropertyChanging();
304      entity.Resource1 = null;
305    }
306   
307    private void attach_ClientLogs(ClientLog entity)
308    {
309      this.SendPropertyChanging();
310      entity.Resource = this;
311    }
312   
313    private void detach_ClientLogs(ClientLog entity)
314    {
315      this.SendPropertyChanging();
316      entity.Resource = null;
317    }
318  }
319 
320  public partial class Client : Resource
321  {
322   
323    private string _ProcessorType;
324   
325    private System.Nullable<int> _NumberOfCores;
326   
327    private System.Nullable<int> _MemorySize;
328   
329    private string _OperatingSystem;
330   
331    private string _IPAdresss;
332   
333    private string _HeuristicLabVersion;
334   
335    private string _Country;
336   
337    #region Extensibility Method Definitions
338    partial void OnLoaded();
339    partial void OnValidate(System.Data.Linq.ChangeAction action);
340    partial void OnCreated();
341    partial void OnProcessorTypeChanging(string value);
342    partial void OnProcessorTypeChanged();
343    partial void OnNumberOfCoresChanging(System.Nullable<int> value);
344    partial void OnNumberOfCoresChanged();
345    partial void OnMemorySizeChanging(System.Nullable<int> value);
346    partial void OnMemorySizeChanged();
347    partial void OnOperatingSystemChanging(string value);
348    partial void OnOperatingSystemChanged();
349    partial void OnIPAddressChanging(string value);
350    partial void OnIPAddressChanged();
351    partial void OnHeuristicLabVersionChanging(string value);
352    partial void OnHeuristicLabVersionChanged();
353    partial void OnCountryChanging(string value);
354    partial void OnCountryChanged();
355    #endregion
356   
357    public Client()
358    {
359      OnCreated();
360    }
361   
362    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcessorType", DbType="NVarChar(MAX)")]
363    public string ProcessorType
364    {
365      get
366      {
367        return this._ProcessorType;
368      }
369      set
370      {
371        if ((this._ProcessorType != value))
372        {
373          this.OnProcessorTypeChanging(value);
374          this.SendPropertyChanging();
375          this._ProcessorType = value;
376          this.SendPropertyChanged("ProcessorType");
377          this.OnProcessorTypeChanged();
378        }
379      }
380    }
381   
382    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfCores", DbType="int")]
383    public System.Nullable<int> NumberOfCores
384    {
385      get
386      {
387        return this._NumberOfCores;
388      }
389      set
390      {
391        if ((this._NumberOfCores != value))
392        {
393          this.OnNumberOfCoresChanging(value);
394          this.SendPropertyChanging();
395          this._NumberOfCores = value;
396          this.SendPropertyChanged("NumberOfCores");
397          this.OnNumberOfCoresChanged();
398        }
399      }
400    }
401   
402    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemorySize", DbType="int")]
403    public System.Nullable<int> MemorySize
404    {
405      get
406      {
407        return this._MemorySize;
408      }
409      set
410      {
411        if ((this._MemorySize != value))
412        {
413          this.OnMemorySizeChanging(value);
414          this.SendPropertyChanging();
415          this._MemorySize = value;
416          this.SendPropertyChanged("MemorySize");
417          this.OnMemorySizeChanged();
418        }
419      }
420    }
421   
422    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingSystem", DbType="NVarChar(MAX)")]
423    public string OperatingSystem
424    {
425      get
426      {
427        return this._OperatingSystem;
428      }
429      set
430      {
431        if ((this._OperatingSystem != value))
432        {
433          this.OnOperatingSystemChanging(value);
434          this.SendPropertyChanging();
435          this._OperatingSystem = value;
436          this.SendPropertyChanged("OperatingSystem");
437          this.OnOperatingSystemChanged();
438        }
439      }
440    }
441   
442    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdresss", DbType="NVarChar(MAX)")]
443    public string IPAddress
444    {
445      get
446      {
447        return this._IPAdresss;
448      }
449      set
450      {
451        if ((this._IPAdresss != value))
452        {
453          this.OnIPAddressChanging(value);
454          this.SendPropertyChanging();
455          this._IPAdresss = value;
456          this.SendPropertyChanged("IPAddress");
457          this.OnIPAddressChanged();
458        }
459      }
460    }
461   
462    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HeuristicLabVersion", DbType="NVarChar(MAX)")]
463    public string HeuristicLabVersion
464    {
465      get
466      {
467        return this._HeuristicLabVersion;
468      }
469      set
470      {
471        if ((this._HeuristicLabVersion != value))
472        {
473          this.OnHeuristicLabVersionChanging(value);
474          this.SendPropertyChanging();
475          this._HeuristicLabVersion = value;
476          this.SendPropertyChanged("HeuristicLabVersion");
477          this.OnHeuristicLabVersionChanged();
478        }
479      }
480    }
481   
482    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Country", DbType="NVarChar(MAX)")]
483    public string Country
484    {
485      get
486      {
487        return this._Country;
488      }
489      set
490      {
491        if ((this._Country != value))
492        {
493          this.OnCountryChanging(value);
494          this.SendPropertyChanging();
495          this._Country = value;
496          this.SendPropertyChanged("Country");
497          this.OnCountryChanged();
498        }
499      }
500    }
501  }
502 
503  public partial class Group : Resource
504  {
505   
506    #region Extensibility Method Definitions
507    partial void OnLoaded();
508    partial void OnValidate(System.Data.Linq.ChangeAction action);
509    partial void OnCreated();
510    #endregion
511   
512    public Group()
513    {
514      OnCreated();
515    }
516  }
517 
518  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ResourceResourceGroup")]
519  public partial class ResourceResourceGroup : INotifyPropertyChanging, INotifyPropertyChanged
520  {
521   
522    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
523   
524    private System.Guid _ResourceId;
525   
526    private System.Guid _ResourceGroupId;
527   
528    private EntityRef<Resource> _Resource;
529   
530    private EntityRef<Resource> _Resource1;
531   
532    #region Extensibility Method Definitions
533    partial void OnLoaded();
534    partial void OnValidate(System.Data.Linq.ChangeAction action);
535    partial void OnCreated();
536    partial void OnResourceIdChanging(System.Guid value);
537    partial void OnResourceIdChanged();
538    partial void OnResourceGroupIdChanging(System.Guid value);
539    partial void OnResourceGroupIdChanged();
540    #endregion
541   
542    public ResourceResourceGroup()
543    {
544      this._Resource = default(EntityRef<Resource>);
545      this._Resource1 = default(EntityRef<Resource>);
546      OnCreated();
547    }
548   
549    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
550    public System.Guid ResourceId
551    {
552      get
553      {
554        return this._ResourceId;
555      }
556      set
557      {
558        if ((this._ResourceId != value))
559        {
560          if (this._Resource1.HasLoadedOrAssignedValue)
561          {
562            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
563          }
564          this.OnResourceIdChanging(value);
565          this.SendPropertyChanging();
566          this._ResourceId = value;
567          this.SendPropertyChanged("ResourceId");
568          this.OnResourceIdChanged();
569        }
570      }
571    }
572   
573    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceGroupId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
574    public System.Guid ResourceGroupId
575    {
576      get
577      {
578        return this._ResourceGroupId;
579      }
580      set
581      {
582        if ((this._ResourceGroupId != value))
583        {
584          if (this._Resource.HasLoadedOrAssignedValue)
585          {
586            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
587          }
588          this.OnResourceGroupIdChanging(value);
589          this.SendPropertyChanging();
590          this._ResourceGroupId = value;
591          this.SendPropertyChanged("ResourceGroupId");
592          this.OnResourceGroupIdChanged();
593        }
594      }
595    }
596   
597    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_Resource", ThisKey="ResourceGroupId", OtherKey="Id", IsForeignKey=true)]
598    public Resource Resource
599    {
600      get
601      {
602        return this._Resource.Entity;
603      }
604      set
605      {
606        Resource previousValue = this._Resource.Entity;
607        if (((previousValue != value)
608              || (this._Resource.HasLoadedOrAssignedValue == false)))
609        {
610          this.SendPropertyChanging();
611          if ((previousValue != null))
612          {
613            this._Resource.Entity = null;
614            previousValue.ResourceResourceGroups.Remove(this);
615          }
616          this._Resource.Entity = value;
617          if ((value != null))
618          {
619            value.ResourceResourceGroups.Add(this);
620            this._ResourceGroupId = value.Id;
621          }
622          else
623          {
624            this._ResourceGroupId = default(System.Guid);
625          }
626          this.SendPropertyChanged("Resource");
627        }
628      }
629    }
630   
631    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_Resource1", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)]
632    public Resource Resource1
633    {
634      get
635      {
636        return this._Resource1.Entity;
637      }
638      set
639      {
640        Resource previousValue = this._Resource1.Entity;
641        if (((previousValue != value)
642              || (this._Resource1.HasLoadedOrAssignedValue == false)))
643        {
644          this.SendPropertyChanging();
645          if ((previousValue != null))
646          {
647            this._Resource1.Entity = null;
648            previousValue.ResourceResourceGroups1.Remove(this);
649          }
650          this._Resource1.Entity = value;
651          if ((value != null))
652          {
653            value.ResourceResourceGroups1.Add(this);
654            this._ResourceId = value.Id;
655          }
656          else
657          {
658            this._ResourceId = default(System.Guid);
659          }
660          this.SendPropertyChanged("Resource1");
661        }
662      }
663    }
664   
665    public event PropertyChangingEventHandler PropertyChanging;
666   
667    public event PropertyChangedEventHandler PropertyChanged;
668   
669    protected virtual void SendPropertyChanging()
670    {
671      if ((this.PropertyChanging != null))
672      {
673        this.PropertyChanging(this, emptyChangingEventArgs);
674      }
675    }
676   
677    protected virtual void SendPropertyChanged(String propertyName)
678    {
679      if ((this.PropertyChanged != null))
680      {
681        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
682      }
683    }
684  }
685 
686  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ClientLog")]
687  public partial class ClientLog : INotifyPropertyChanging, INotifyPropertyChanged
688  {
689   
690    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
691   
692    private System.DateTime _Timestamp;
693   
694    private System.Guid _ResourceId;
695   
696    private string _Message;
697   
698    private string _Exception;
699   
700    private EntityRef<Resource> _Resource;
701   
702    #region Extensibility Method Definitions
703    partial void OnLoaded();
704    partial void OnValidate(System.Data.Linq.ChangeAction action);
705    partial void OnCreated();
706    partial void OnTimestampChanging(System.DateTime value);
707    partial void OnTimestampChanged();
708    partial void OnResourceIdChanging(System.Guid value);
709    partial void OnResourceIdChanged();
710    partial void OnMessageChanging(string value);
711    partial void OnMessageChanged();
712    partial void OnExceptionChanging(string value);
713    partial void OnExceptionChanged();
714    #endregion
715   
716    public ClientLog()
717    {
718      this._Resource = default(EntityRef<Resource>);
719      OnCreated();
720    }
721   
722    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Timestamp", DbType="DateTime NOT NULL", IsPrimaryKey=true)]
723    public System.DateTime Timestamp
724    {
725      get
726      {
727        return this._Timestamp;
728      }
729      set
730      {
731        if ((this._Timestamp != value))
732        {
733          this.OnTimestampChanging(value);
734          this.SendPropertyChanging();
735          this._Timestamp = value;
736          this.SendPropertyChanged("Timestamp");
737          this.OnTimestampChanged();
738        }
739      }
740    }
741   
742    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
743    public System.Guid ResourceId
744    {
745      get
746      {
747        return this._ResourceId;
748      }
749      set
750      {
751        if ((this._ResourceId != value))
752        {
753          if (this._Resource.HasLoadedOrAssignedValue)
754          {
755            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
756          }
757          this.OnResourceIdChanging(value);
758          this.SendPropertyChanging();
759          this._ResourceId = value;
760          this.SendPropertyChanged("ResourceId");
761          this.OnResourceIdChanged();
762        }
763      }
764    }
765   
766    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Message", DbType="NVarChar(MAX)")]
767    public string Message
768    {
769      get
770      {
771        return this._Message;
772      }
773      set
774      {
775        if ((this._Message != value))
776        {
777          this.OnMessageChanging(value);
778          this.SendPropertyChanging();
779          this._Message = value;
780          this.SendPropertyChanged("Message");
781          this.OnMessageChanged();
782        }
783      }
784    }
785   
786    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Exception", DbType="NVarChar(MAX)")]
787    public string Exception
788    {
789      get
790      {
791        return this._Exception;
792      }
793      set
794      {
795        if ((this._Exception != value))
796        {
797          this.OnExceptionChanging(value);
798          this.SendPropertyChanging();
799          this._Exception = value;
800          this.SendPropertyChanged("Exception");
801          this.OnExceptionChanged();
802        }
803      }
804    }
805   
806    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ClientLog", Storage="_Resource", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)]
807    public Resource Resource
808    {
809      get
810      {
811        return this._Resource.Entity;
812      }
813      set
814      {
815        Resource previousValue = this._Resource.Entity;
816        if (((previousValue != value)
817              || (this._Resource.HasLoadedOrAssignedValue == false)))
818        {
819          this.SendPropertyChanging();
820          if ((previousValue != null))
821          {
822            this._Resource.Entity = null;
823            previousValue.ClientLogs.Remove(this);
824          }
825          this._Resource.Entity = value;
826          if ((value != null))
827          {
828            value.ClientLogs.Add(this);
829            this._ResourceId = value.Id;
830          }
831          else
832          {
833            this._ResourceId = default(System.Guid);
834          }
835          this.SendPropertyChanged("Resource");
836        }
837      }
838    }
839   
840    public event PropertyChangingEventHandler PropertyChanging;
841   
842    public event PropertyChangedEventHandler PropertyChanged;
843   
844    protected virtual void SendPropertyChanging()
845    {
846      if ((this.PropertyChanging != null))
847      {
848        this.PropertyChanging(this, emptyChangingEventArgs);
849      }
850    }
851   
852    protected virtual void SendPropertyChanged(String propertyName)
853    {
854      if ((this.PropertyChanged != null))
855      {
856        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
857      }
858    }
859  }
860}
861#pragma warning restore 1591
Note: See TracBrowser for help on using the repository browser.