Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Services.Authentication Prototype/Persistence/DataClasses.designer.cs @ 4005

Last change on this file since 4005 was 3970, checked in by bfarka, 14 years ago

made Database configable with app.config in the Persistence Project --> 2 different DBs can be configured (one for UnitTesting and a real one) (#1063)

File size: 23.4 KB
Line 
1#pragma warning disable 1591
2//------------------------------------------------------------------------------
3// <auto-generated>
4//     Dieser Code wurde von einem Tool generiert.
5//     Laufzeitversion:2.0.50727.4927
6//
7//     Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
8//     der Code erneut generiert wird.
9// </auto-generated>
10//------------------------------------------------------------------------------
11
12namespace Persistence
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.Runtime.Serialization;
22  using System.ComponentModel;
23  using System;
24 
25 
26  public partial class DataClassesDataContext : 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 InsertHeuristicLabUser(HeuristicLabUser instance);
34    partial void UpdateHeuristicLabUser(HeuristicLabUser instance);
35    partial void DeleteHeuristicLabUser(HeuristicLabUser instance);
36    partial void InsertHeuristicLabRole(HeuristicLabRole instance);
37    partial void UpdateHeuristicLabRole(HeuristicLabRole instance);
38    partial void DeleteHeuristicLabRole(HeuristicLabRole instance);
39    partial void InsertHeuristicLabUserRole(HeuristicLabUserRole instance);
40    partial void UpdateHeuristicLabUserRole(HeuristicLabUserRole instance);
41    partial void DeleteHeuristicLabUserRole(HeuristicLabUserRole instance);
42    #endregion
43   
44    public DataClassesDataContext(string connection) :
45        base(connection, mappingSource)
46    {
47      OnCreated();
48    }
49   
50    public DataClassesDataContext(System.Data.IDbConnection connection) :
51        base(connection, mappingSource)
52    {
53      OnCreated();
54    }
55   
56    public DataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
57        base(connection, mappingSource)
58    {
59      OnCreated();
60    }
61   
62    public DataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
63        base(connection, mappingSource)
64    {
65      OnCreated();
66    }
67   
68    public System.Data.Linq.Table<HeuristicLabUser> HeuristicLabUsers
69    {
70      get
71      {
72        return this.GetTable<HeuristicLabUser>();
73      }
74    }
75   
76    public System.Data.Linq.Table<HeuristicLabRole> HeuristicLabRole
77    {
78      get
79      {
80        return this.GetTable<HeuristicLabRole>();
81      }
82    }
83   
84    public System.Data.Linq.Table<HeuristicLabUserRole> HeuristicLabUserRole
85    {
86      get
87      {
88        return this.GetTable<HeuristicLabUserRole>();
89      }
90    }
91  }
92 
93  [Table(Name="")]
94  [DataContract()]
95  public partial class HeuristicLabUser : INotifyPropertyChanging, INotifyPropertyChanged
96  {
97   
98    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
99   
100    private long _id = default(long);
101   
102    private string _UserName = default(string);
103   
104    private string _Password;
105   
106    private System.DateTime _LastPasswordChangedDate = default(System.DateTime);
107   
108    private string _PasswordQuestion = default(string);
109   
110    private string _PasswordAnswer;
111   
112    private string _Email;
113   
114    private string _Comment;
115   
116    private bool _Locked;
117   
118    private EntitySet<HeuristicLabUserRole> _HeuristicLabUserRole;
119   
120    private bool serializing;
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(long value);
127    partial void OnIDChanged();
128    partial void OnUserNameChanging(string value);
129    partial void OnUserNameChanged();
130    partial void OnPasswordChanging(string value);
131    partial void OnPasswordChanged();
132    partial void OnLastPasswordChangedDateChanging(System.DateTime value);
133    partial void OnLastPasswordChangedDateChanged();
134    partial void OnPasswordQuestionChanging(string value);
135    partial void OnPasswordQuestionChanged();
136    partial void OnPasswordAnswerChanging(string value);
137    partial void OnPasswordAnswerChanged();
138    partial void OnEmailChanging(string value);
139    partial void OnEmailChanged();
140    partial void OnCommentChanging(string value);
141    partial void OnCommentChanged();
142    partial void OnLockedChanging(bool value);
143    partial void OnLockedChanged();
144    #endregion
145   
146    public HeuristicLabUser()
147    {
148      this.Initialize();
149    }
150   
151    [Column(Name="id", Storage="_id", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
152    [DataMember(Order=1)]
153    public long ID
154    {
155      get
156      {
157        return this._id;
158      }
159      set
160      {
161        if ((this._id != value))
162        {
163          this.OnIDChanging(value);
164          this.SendPropertyChanging();
165          this._id = value;
166          this.SendPropertyChanged("ID");
167          this.OnIDChanged();
168        }
169      }
170    }
171   
172    [Column(Storage="_UserName", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
173    [DataMember(Order=2)]
174    public virtual string UserName
175    {
176      get
177      {
178        return this._UserName;
179      }
180      set
181      {
182        if ((this._UserName != value))
183        {
184          this.OnUserNameChanging(value);
185          this.SendPropertyChanging();
186          this._UserName = value;
187          this.SendPropertyChanged("UserName");
188          this.OnUserNameChanged();
189        }
190      }
191    }
192   
193    [Column(Storage="_Password", CanBeNull=false)]
194    [DataMember(Order=3)]
195    public string Password
196    {
197      get
198      {
199        return this._Password;
200      }
201      set
202      {
203        if ((this._Password != value))
204        {
205          this.OnPasswordChanging(value);
206          this.SendPropertyChanging();
207          this._Password = value;
208          this.SendPropertyChanged("Password");
209          this.OnPasswordChanged();
210        }
211      }
212    }
213   
214    [Column(Storage="_LastPasswordChangedDate", UpdateCheck=UpdateCheck.Never)]
215    [DataMember(Order=4)]
216    public virtual System.DateTime LastPasswordChangedDate
217    {
218      get
219      {
220        return this._LastPasswordChangedDate;
221      }
222      set
223      {
224        if ((this._LastPasswordChangedDate != value))
225        {
226          this.OnLastPasswordChangedDateChanging(value);
227          this.SendPropertyChanging();
228          this._LastPasswordChangedDate = value;
229          this.SendPropertyChanged("LastPasswordChangedDate");
230          this.OnLastPasswordChangedDateChanged();
231        }
232      }
233    }
234   
235    [Column(Storage="_PasswordQuestion", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
236    [DataMember(Order=5)]
237    public virtual string PasswordQuestion
238    {
239      get
240      {
241        return this._PasswordQuestion;
242      }
243      set
244      {
245        if ((this._PasswordQuestion != value))
246        {
247          this.OnPasswordQuestionChanging(value);
248          this.SendPropertyChanging();
249          this._PasswordQuestion = value;
250          this.SendPropertyChanged("PasswordQuestion");
251          this.OnPasswordQuestionChanged();
252        }
253      }
254    }
255   
256    [Column(Storage="_PasswordAnswer", CanBeNull=false)]
257    [DataMember(Order=6)]
258    public string PasswordAnswer
259    {
260      get
261      {
262        return this._PasswordAnswer;
263      }
264      set
265      {
266        if ((this._PasswordAnswer != value))
267        {
268          this.OnPasswordAnswerChanging(value);
269          this.SendPropertyChanging();
270          this._PasswordAnswer = value;
271          this.SendPropertyChanged("PasswordAnswer");
272          this.OnPasswordAnswerChanged();
273        }
274      }
275    }
276   
277    [Column(Storage="_Email", CanBeNull=false)]
278    [DataMember(Order=7)]
279    public virtual string Email
280    {
281      get
282      {
283        return this._Email;
284      }
285      set
286      {
287        if ((this._Email != value))
288        {
289          this.OnEmailChanging(value);
290          this.SendPropertyChanging();
291          this._Email = value;
292          this.SendPropertyChanged("Email");
293          this.OnEmailChanged();
294        }
295      }
296    }
297   
298    [Column(Storage="_Comment", CanBeNull=false)]
299    [DataMember(Order=8)]
300    public virtual string Comment
301    {
302      get
303      {
304        return this._Comment;
305      }
306      set
307      {
308        if ((this._Comment != value))
309        {
310          this.OnCommentChanging(value);
311          this.SendPropertyChanging();
312          this._Comment = value;
313          this.SendPropertyChanged("Comment");
314          this.OnCommentChanged();
315        }
316      }
317    }
318   
319    [Column(Storage="_Locked")]
320    [DataMember(Order=9)]
321    public bool Locked
322    {
323      get
324      {
325        return this._Locked;
326      }
327      set
328      {
329        if ((this._Locked != value))
330        {
331          this.OnLockedChanging(value);
332          this.SendPropertyChanging();
333          this._Locked = value;
334          this.SendPropertyChanged("Locked");
335          this.OnLockedChanged();
336        }
337      }
338    }
339   
340    [Association(Name="HeuristicLabUser_HeuristicLabUserRole", Storage="_HeuristicLabUserRole", ThisKey="ID", OtherKey="HeuristicLabUserID")]
341    [DataMember(Order=10, EmitDefaultValue=false)]
342    public EntitySet<HeuristicLabUserRole> HeuristicLabUserRoles
343    {
344      get
345      {
346        if ((this.serializing
347              && (this._HeuristicLabUserRole.HasLoadedOrAssignedValues == false)))
348        {
349          return null;
350        }
351        return this._HeuristicLabUserRole;
352      }
353      set
354      {
355        this._HeuristicLabUserRole.Assign(value);
356      }
357    }
358   
359    public event PropertyChangingEventHandler PropertyChanging;
360   
361    public event PropertyChangedEventHandler PropertyChanged;
362   
363    protected virtual void SendPropertyChanging()
364    {
365      if ((this.PropertyChanging != null))
366      {
367        this.PropertyChanging(this, emptyChangingEventArgs);
368      }
369    }
370   
371    protected virtual void SendPropertyChanged(String propertyName)
372    {
373      if ((this.PropertyChanged != null))
374      {
375        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
376      }
377    }
378   
379    private void attach_HeuristicLabUserRole(HeuristicLabUserRole entity)
380    {
381      this.SendPropertyChanging();
382      entity.HeuristicLabUser = this;
383    }
384   
385    private void detach_HeuristicLabUserRole(HeuristicLabUserRole entity)
386    {
387      this.SendPropertyChanging();
388      entity.HeuristicLabUser = null;
389    }
390   
391    private void Initialize()
392    {
393      this._HeuristicLabUserRole = new EntitySet<HeuristicLabUserRole>(new Action<HeuristicLabUserRole>(this.attach_HeuristicLabUserRole), new Action<HeuristicLabUserRole>(this.detach_HeuristicLabUserRole));
394      OnCreated();
395    }
396   
397    [OnDeserializing()]
398    [System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Never)]
399    public void OnDeserializing(StreamingContext context)
400    {
401      this.Initialize();
402    }
403   
404    [OnSerializing()]
405    [System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Never)]
406    public void OnSerializing(StreamingContext context)
407    {
408      this.serializing = true;
409    }
410   
411    [OnSerialized()]
412    [System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Never)]
413    public void OnSerialized(StreamingContext context)
414    {
415      this.serializing = false;
416    }
417  }
418 
419  [Table(Name="")]
420  [DataContract()]
421  public partial class HeuristicLabRole : INotifyPropertyChanging, INotifyPropertyChanged
422  {
423   
424    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
425   
426    private long _ID = default(long);
427   
428    private string _roleName;
429   
430    private System.Nullable<long> _parentRoleID;
431   
432    private bool _IsPermission;
433   
434    private EntitySet<HeuristicLabRole> _HeuristicLabRole2;
435   
436    private EntitySet<HeuristicLabUserRole> _HeuristicLabUserRole;
437   
438    private EntityRef<HeuristicLabRole> _HeuristicLabRole1;
439   
440    private bool serializing;
441   
442    #region Extensibility Method Definitions
443    partial void OnLoaded();
444    partial void OnValidate(System.Data.Linq.ChangeAction action);
445    partial void OnCreated();
446    partial void OnIDChanging(long value);
447    partial void OnIDChanged();
448    partial void OnRoleNameChanging(string value);
449    partial void OnRoleNameChanged();
450    partial void OnParentRoleIDChanging(System.Nullable<long> value);
451    partial void OnParentRoleIDChanged();
452    partial void OnIsPermissionChanging(bool value);
453    partial void OnIsPermissionChanged();
454    #endregion
455   
456    public HeuristicLabRole()
457    {
458      this.Initialize();
459    }
460   
461    [Column(Storage="_ID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
462    [DataMember(Order=1)]
463    public long ID
464    {
465      get
466      {
467        return this._ID;
468      }
469      set
470      {
471        if ((this._ID != value))
472        {
473          this.OnIDChanging(value);
474          this.SendPropertyChanging();
475          this._ID = value;
476          this.SendPropertyChanged("ID");
477          this.OnIDChanged();
478        }
479      }
480    }
481   
482    [Column(Name="roleName", Storage="_roleName", CanBeNull=false)]
483    [DataMember(Order=2)]
484    public string RoleName
485    {
486      get
487      {
488        return this._roleName;
489      }
490      set
491      {
492        if ((this._roleName != value))
493        {
494          this.OnRoleNameChanging(value);
495          this.SendPropertyChanging();
496          this._roleName = value;
497          this.SendPropertyChanged("RoleName");
498          this.OnRoleNameChanged();
499        }
500      }
501    }
502   
503    [Column(Name="parentRoleID", Storage="_parentRoleID")]
504    [DataMember(Order=3)]
505    public System.Nullable<long> ParentRoleID
506    {
507      get
508      {
509        return this._parentRoleID;
510      }
511      set
512      {
513        if ((this._parentRoleID != value))
514        {
515          this.OnParentRoleIDChanging(value);
516          this.SendPropertyChanging();
517          this._parentRoleID = value;
518          this.SendPropertyChanged("ParentRoleID");
519          this.OnParentRoleIDChanged();
520        }
521      }
522    }
523   
524    [Column(Storage="_IsPermission")]
525    [DataMember(Order=4)]
526    public bool IsPermission
527    {
528      get
529      {
530        return this._IsPermission;
531      }
532      set
533      {
534        if ((this._IsPermission != value))
535        {
536          this.OnIsPermissionChanging(value);
537          this.SendPropertyChanging();
538          this._IsPermission = value;
539          this.SendPropertyChanged("IsPermission");
540          this.OnIsPermissionChanged();
541        }
542      }
543    }
544   
545    [Association(Name="HeuristicLabRole_HeuristicLabRole", Storage="_HeuristicLabRole2", ThisKey="ID", OtherKey="ParentRoleID")]
546    [DataMember(Order=5, EmitDefaultValue=false)]
547    public EntitySet<HeuristicLabRole> HeuristicLabRoleChilds
548    {
549      get
550      {
551        if ((this.serializing
552              && (this._HeuristicLabRole2.HasLoadedOrAssignedValues == false)))
553        {
554          return null;
555        }
556        return this._HeuristicLabRole2;
557      }
558      set
559      {
560        this._HeuristicLabRole2.Assign(value);
561      }
562    }
563   
564    [Association(Name="HeuristicLabRole_HeuristicLabUserRole", Storage="_HeuristicLabUserRole", ThisKey="ID", OtherKey="HeuristicLabRoleID")]
565    [DataMember(Order=6, EmitDefaultValue=false)]
566    public EntitySet<HeuristicLabUserRole> HeuristicLabUserRoles
567    {
568      get
569      {
570        if ((this.serializing
571              && (this._HeuristicLabUserRole.HasLoadedOrAssignedValues == false)))
572        {
573          return null;
574        }
575        return this._HeuristicLabUserRole;
576      }
577      set
578      {
579        this._HeuristicLabUserRole.Assign(value);
580      }
581    }
582   
583    [Association(Name="HeuristicLabRole_HeuristicLabRole", Storage="_HeuristicLabRole1", ThisKey="ParentRoleID", OtherKey="ID", IsForeignKey=true)]
584    public HeuristicLabRole HeuristicLabRoleParent
585    {
586      get
587      {
588        return this._HeuristicLabRole1.Entity;
589      }
590      set
591      {
592        HeuristicLabRole previousValue = this._HeuristicLabRole1.Entity;
593        if (((previousValue != value)
594              || (this._HeuristicLabRole1.HasLoadedOrAssignedValue == false)))
595        {
596          this.SendPropertyChanging();
597          if ((previousValue != null))
598          {
599            this._HeuristicLabRole1.Entity = null;
600            previousValue.HeuristicLabRoleChilds.Remove(this);
601          }
602          this._HeuristicLabRole1.Entity = value;
603          if ((value != null))
604          {
605            value.HeuristicLabRoleChilds.Add(this);
606            this._parentRoleID = value.ID;
607          }
608          else
609          {
610            this._parentRoleID = default(Nullable<long>);
611          }
612          this.SendPropertyChanged("HeuristicLabRoleParent");
613        }
614      }
615    }
616   
617    public event PropertyChangingEventHandler PropertyChanging;
618   
619    public event PropertyChangedEventHandler PropertyChanged;
620   
621    protected virtual void SendPropertyChanging()
622    {
623      if ((this.PropertyChanging != null))
624      {
625        this.PropertyChanging(this, emptyChangingEventArgs);
626      }
627    }
628   
629    protected virtual void SendPropertyChanged(String propertyName)
630    {
631      if ((this.PropertyChanged != null))
632      {
633        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
634      }
635    }
636   
637    private void attach_HeuristicLabRole2(HeuristicLabRole entity)
638    {
639      this.SendPropertyChanging();
640      entity.HeuristicLabRoleParent = this;
641    }
642   
643    private void detach_HeuristicLabRole2(HeuristicLabRole entity)
644    {
645      this.SendPropertyChanging();
646      entity.HeuristicLabRoleParent = null;
647    }
648   
649    private void attach_HeuristicLabUserRole(HeuristicLabUserRole entity)
650    {
651      this.SendPropertyChanging();
652      entity.HeuristicLabRole = this;
653    }
654   
655    private void detach_HeuristicLabUserRole(HeuristicLabUserRole entity)
656    {
657      this.SendPropertyChanging();
658      entity.HeuristicLabRole = null;
659    }
660   
661    private void Initialize()
662    {
663      this._HeuristicLabRole2 = new EntitySet<HeuristicLabRole>(new Action<HeuristicLabRole>(this.attach_HeuristicLabRole2), new Action<HeuristicLabRole>(this.detach_HeuristicLabRole2));
664      this._HeuristicLabUserRole = new EntitySet<HeuristicLabUserRole>(new Action<HeuristicLabUserRole>(this.attach_HeuristicLabUserRole), new Action<HeuristicLabUserRole>(this.detach_HeuristicLabUserRole));
665      this._HeuristicLabRole1 = default(EntityRef<HeuristicLabRole>);
666      OnCreated();
667    }
668   
669    [OnDeserializing()]
670    [System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Never)]
671    public void OnDeserializing(StreamingContext context)
672    {
673      this.Initialize();
674    }
675   
676    [OnSerializing()]
677    [System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Never)]
678    public void OnSerializing(StreamingContext context)
679    {
680      this.serializing = true;
681    }
682   
683    [OnSerialized()]
684    [System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Never)]
685    public void OnSerialized(StreamingContext context)
686    {
687      this.serializing = false;
688    }
689  }
690 
691  [Table(Name="")]
692  [DataContract()]
693  public partial class HeuristicLabUserRole : INotifyPropertyChanging, INotifyPropertyChanged
694  {
695   
696    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
697   
698    private long _ID;
699   
700    private long _HeuristicLabUserID;
701   
702    private long _HeuristicLabRoleID;
703   
704    private EntityRef<HeuristicLabUser> _HeuristicLabUser;
705   
706    private EntityRef<HeuristicLabRole> _HeuristicLabAbstractRole;
707   
708    #region Extensibility Method Definitions
709    partial void OnLoaded();
710    partial void OnValidate(System.Data.Linq.ChangeAction action);
711    partial void OnCreated();
712    partial void OnIDChanging(long value);
713    partial void OnIDChanged();
714    partial void OnHeuristicLabUserIDChanging(long value);
715    partial void OnHeuristicLabUserIDChanged();
716    partial void OnHeuristicLabRoleIDChanging(long value);
717    partial void OnHeuristicLabRoleIDChanged();
718    #endregion
719   
720    public HeuristicLabUserRole()
721    {
722      this.Initialize();
723    }
724   
725    [Column(Storage="_ID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true)]
726    [DataMember(Order=1)]
727    public long ID
728    {
729      get
730      {
731        return this._ID;
732      }
733      set
734      {
735        if ((this._ID != value))
736        {
737          this.OnIDChanging(value);
738          this.SendPropertyChanging();
739          this._ID = value;
740          this.SendPropertyChanged("ID");
741          this.OnIDChanged();
742        }
743      }
744    }
745   
746    [Column(Storage="_HeuristicLabUserID")]
747    [DataMember(Order=2)]
748    public long HeuristicLabUserID
749    {
750      get
751      {
752        return this._HeuristicLabUserID;
753      }
754      set
755      {
756        if ((this._HeuristicLabUserID != value))
757        {
758          if (this._HeuristicLabUser.HasLoadedOrAssignedValue)
759          {
760            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
761          }
762          this.OnHeuristicLabUserIDChanging(value);
763          this.SendPropertyChanging();
764          this._HeuristicLabUserID = value;
765          this.SendPropertyChanged("HeuristicLabUserID");
766          this.OnHeuristicLabUserIDChanged();
767        }
768      }
769    }
770   
771    [Column(Storage="_HeuristicLabRoleID")]
772    [DataMember(Order=3)]
773    public long HeuristicLabRoleID
774    {
775      get
776      {
777        return this._HeuristicLabRoleID;
778      }
779      set
780      {
781        if ((this._HeuristicLabRoleID != value))
782        {
783          if (this._HeuristicLabAbstractRole.HasLoadedOrAssignedValue)
784          {
785            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
786          }
787          this.OnHeuristicLabRoleIDChanging(value);
788          this.SendPropertyChanging();
789          this._HeuristicLabRoleID = value;
790          this.SendPropertyChanged("HeuristicLabRoleID");
791          this.OnHeuristicLabRoleIDChanged();
792        }
793      }
794    }
795   
796    [Association(Name="HeuristicLabUser_HeuristicLabUserRole", Storage="_HeuristicLabUser", ThisKey="HeuristicLabUserID", OtherKey="ID", IsForeignKey=true)]
797    public HeuristicLabUser HeuristicLabUser
798    {
799      get
800      {
801        return this._HeuristicLabUser.Entity;
802      }
803      set
804      {
805        HeuristicLabUser previousValue = this._HeuristicLabUser.Entity;
806        if (((previousValue != value)
807              || (this._HeuristicLabUser.HasLoadedOrAssignedValue == false)))
808        {
809          this.SendPropertyChanging();
810          if ((previousValue != null))
811          {
812            this._HeuristicLabUser.Entity = null;
813            previousValue.HeuristicLabUserRoles.Remove(this);
814          }
815          this._HeuristicLabUser.Entity = value;
816          if ((value != null))
817          {
818            value.HeuristicLabUserRoles.Add(this);
819            this._HeuristicLabUserID = value.ID;
820          }
821          else
822          {
823            this._HeuristicLabUserID = default(long);
824          }
825          this.SendPropertyChanged("HeuristicLabUser");
826        }
827      }
828    }
829   
830    [Association(Name="HeuristicLabRole_HeuristicLabUserRole", Storage="_HeuristicLabAbstractRole", ThisKey="HeuristicLabRoleID", OtherKey="ID", IsForeignKey=true)]
831    public HeuristicLabRole HeuristicLabRole
832    {
833      get
834      {
835        return this._HeuristicLabAbstractRole.Entity;
836      }
837      set
838      {
839        HeuristicLabRole previousValue = this._HeuristicLabAbstractRole.Entity;
840        if (((previousValue != value)
841              || (this._HeuristicLabAbstractRole.HasLoadedOrAssignedValue == false)))
842        {
843          this.SendPropertyChanging();
844          if ((previousValue != null))
845          {
846            this._HeuristicLabAbstractRole.Entity = null;
847            previousValue.HeuristicLabUserRoles.Remove(this);
848          }
849          this._HeuristicLabAbstractRole.Entity = value;
850          if ((value != null))
851          {
852            value.HeuristicLabUserRoles.Add(this);
853            this._HeuristicLabRoleID = value.ID;
854          }
855          else
856          {
857            this._HeuristicLabRoleID = default(long);
858          }
859          this.SendPropertyChanged("HeuristicLabRole");
860        }
861      }
862    }
863   
864    public event PropertyChangingEventHandler PropertyChanging;
865   
866    public event PropertyChangedEventHandler PropertyChanged;
867   
868    protected virtual void SendPropertyChanging()
869    {
870      if ((this.PropertyChanging != null))
871      {
872        this.PropertyChanging(this, emptyChangingEventArgs);
873      }
874    }
875   
876    protected virtual void SendPropertyChanged(String propertyName)
877    {
878      if ((this.PropertyChanged != null))
879      {
880        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
881      }
882    }
883   
884    private void Initialize()
885    {
886      this._HeuristicLabUser = default(EntityRef<HeuristicLabUser>);
887      this._HeuristicLabAbstractRole = default(EntityRef<HeuristicLabRole>);
888      OnCreated();
889    }
890   
891    [OnDeserializing()]
892    [System.ComponentModel.EditorBrowsableAttribute(EditorBrowsableState.Never)]
893    public void OnDeserializing(StreamingContext context)
894    {
895      this.Initialize();
896    }
897  }
898}
899#pragma warning restore 1591
Note: See TracBrowser for help on using the repository browser.