Free cookie consent management tool by TermsFeed Policy Generator

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

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

added field "isLocked" to linq classes (#1055)

File size: 19.0 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.ComponentModel;
22  using System;
23 
24 
25  public partial class DataClassesDataContext : System.Data.Linq.DataContext
26  {
27   
28    private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
29   
30    #region Extensibility Method Definitions
31    partial void OnCreated();
32    partial void InsertHeuristicLabUser(HeuristicLabUser instance);
33    partial void UpdateHeuristicLabUser(HeuristicLabUser instance);
34    partial void DeleteHeuristicLabUser(HeuristicLabUser instance);
35    partial void InsertHeuristicLabRole(HeuristicLabRole instance);
36    partial void UpdateHeuristicLabRole(HeuristicLabRole instance);
37    partial void DeleteHeuristicLabRole(HeuristicLabRole instance);
38    partial void InsertHeuristicLabUserRole(HeuristicLabUserRole instance);
39    partial void UpdateHeuristicLabUserRole(HeuristicLabUserRole instance);
40    partial void DeleteHeuristicLabUserRole(HeuristicLabUserRole instance);
41    #endregion
42   
43    public DataClassesDataContext(string connection) :
44        base(connection, mappingSource)
45    {
46      OnCreated();
47    }
48   
49    public DataClassesDataContext(System.Data.IDbConnection connection) :
50        base(connection, mappingSource)
51    {
52      OnCreated();
53    }
54   
55    public DataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
56        base(connection, mappingSource)
57    {
58      OnCreated();
59    }
60   
61    public DataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
62        base(connection, mappingSource)
63    {
64      OnCreated();
65    }
66   
67    public System.Data.Linq.Table<HeuristicLabUser> HeuristicLabUsers
68    {
69      get
70      {
71        return this.GetTable<HeuristicLabUser>();
72      }
73    }
74   
75    public System.Data.Linq.Table<HeuristicLabRole> HeuristicLabRole
76    {
77      get
78      {
79        return this.GetTable<HeuristicLabRole>();
80      }
81    }
82   
83    public System.Data.Linq.Table<HeuristicLabUserRole> HeuristicLabUserRole
84    {
85      get
86      {
87        return this.GetTable<HeuristicLabUserRole>();
88      }
89    }
90  }
91 
92  [Table(Name="")]
93  public partial class HeuristicLabUser : INotifyPropertyChanging, INotifyPropertyChanged
94  {
95   
96    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
97   
98    private long _id = default(long);
99   
100    private string _UserName = default(string);
101   
102    private string _Password;
103   
104    private System.DateTime _LastPasswordChangedDate = default(System.DateTime);
105   
106    private string _PasswordQuestion = default(string);
107   
108    private string _PasswordAnswer;
109   
110    private string _Email;
111   
112    private string _Comment;
113   
114    private bool _Locked;
115   
116    private EntitySet<HeuristicLabUserRole> _HeuristicLabUserRole;
117   
118    #region Extensibility Method Definitions
119    partial void OnLoaded();
120    partial void OnValidate(System.Data.Linq.ChangeAction action);
121    partial void OnCreated();
122    partial void OnPasswordChanging(string value);
123    partial void OnPasswordChanged();
124    partial void OnPasswordAnswerChanging(string value);
125    partial void OnPasswordAnswerChanged();
126    partial void OnEmailChanging(string value);
127    partial void OnEmailChanged();
128    partial void OnCommentChanging(string value);
129    partial void OnCommentChanged();
130    partial void OnLockedChanging(bool value);
131    partial void OnLockedChanged();
132    #endregion
133   
134    public HeuristicLabUser()
135    {
136      this._HeuristicLabUserRole = new EntitySet<HeuristicLabUserRole>(new Action<HeuristicLabUserRole>(this.attach_HeuristicLabUserRole), new Action<HeuristicLabUserRole>(this.detach_HeuristicLabUserRole));
137      OnCreated();
138    }
139   
140    [Column(Name="id", Storage="_id", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
141    public long ID
142    {
143      get
144      {
145        return this._id;
146      }
147    }
148   
149    [Column(Storage="_UserName", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
150    public virtual string UserName
151    {
152      get
153      {
154        return this._UserName;
155      }
156    }
157   
158    [Column(Storage="_Password", CanBeNull=false)]
159    public string Password
160    {
161      get
162      {
163        return this._Password;
164      }
165      set
166      {
167        if ((this._Password != value))
168        {
169          this.OnPasswordChanging(value);
170          this.SendPropertyChanging();
171          this._Password = value;
172          this.SendPropertyChanged("Password");
173          this.OnPasswordChanged();
174        }
175      }
176    }
177   
178    [Column(Storage="_LastPasswordChangedDate", UpdateCheck=UpdateCheck.Never)]
179    public virtual System.DateTime LastPasswordChangedDate
180    {
181      get
182      {
183        return this._LastPasswordChangedDate;
184      }
185    }
186   
187    [Column(Storage="_PasswordQuestion", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
188    public virtual string PasswordQuestion
189    {
190      get
191      {
192        return this._PasswordQuestion;
193      }
194    }
195   
196    [Column(Storage="_PasswordAnswer", CanBeNull=false)]
197    public string PasswordAnswer
198    {
199      get
200      {
201        return this._PasswordAnswer;
202      }
203      set
204      {
205        if ((this._PasswordAnswer != value))
206        {
207          this.OnPasswordAnswerChanging(value);
208          this.SendPropertyChanging();
209          this._PasswordAnswer = value;
210          this.SendPropertyChanged("PasswordAnswer");
211          this.OnPasswordAnswerChanged();
212        }
213      }
214    }
215   
216    [Column(Storage="_Email", CanBeNull=false)]
217    public virtual string Email
218    {
219      get
220      {
221        return this._Email;
222      }
223      set
224      {
225        if ((this._Email != value))
226        {
227          this.OnEmailChanging(value);
228          this.SendPropertyChanging();
229          this._Email = value;
230          this.SendPropertyChanged("Email");
231          this.OnEmailChanged();
232        }
233      }
234    }
235   
236    [Column(Storage="_Comment", CanBeNull=false)]
237    public virtual string Comment
238    {
239      get
240      {
241        return this._Comment;
242      }
243      set
244      {
245        if ((this._Comment != value))
246        {
247          this.OnCommentChanging(value);
248          this.SendPropertyChanging();
249          this._Comment = value;
250          this.SendPropertyChanged("Comment");
251          this.OnCommentChanged();
252        }
253      }
254    }
255   
256    [Column(Storage="_Locked")]
257    public bool Locked
258    {
259      get
260      {
261        return this._Locked;
262      }
263      set
264      {
265        if ((this._Locked != value))
266        {
267          this.OnLockedChanging(value);
268          this.SendPropertyChanging();
269          this._Locked = value;
270          this.SendPropertyChanged("Locked");
271          this.OnLockedChanged();
272        }
273      }
274    }
275   
276    [Association(Name="HeuristicLabUser_HeuristicLabUserRole", Storage="_HeuristicLabUserRole", ThisKey="ID", OtherKey="HeuristicLabUserID")]
277    public EntitySet<HeuristicLabUserRole> HeuristicLabUserRoles
278    {
279      get
280      {
281        return this._HeuristicLabUserRole;
282      }
283      set
284      {
285        this._HeuristicLabUserRole.Assign(value);
286      }
287    }
288   
289    public event PropertyChangingEventHandler PropertyChanging;
290   
291    public event PropertyChangedEventHandler PropertyChanged;
292   
293    protected virtual void SendPropertyChanging()
294    {
295      if ((this.PropertyChanging != null))
296      {
297        this.PropertyChanging(this, emptyChangingEventArgs);
298      }
299    }
300   
301    protected virtual void SendPropertyChanged(String propertyName)
302    {
303      if ((this.PropertyChanged != null))
304      {
305        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
306      }
307    }
308   
309    private void attach_HeuristicLabUserRole(HeuristicLabUserRole entity)
310    {
311      this.SendPropertyChanging();
312      entity.HeuristicLabUser = this;
313    }
314   
315    private void detach_HeuristicLabUserRole(HeuristicLabUserRole entity)
316    {
317      this.SendPropertyChanging();
318      entity.HeuristicLabUser = null;
319    }
320  }
321 
322  [Table(Name="")]
323  public partial class HeuristicLabRole : INotifyPropertyChanging, INotifyPropertyChanged
324  {
325   
326    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
327   
328    private long _ID = default(long);
329   
330    private string _roleName;
331   
332    private System.Nullable<long> _parentRoleID;
333   
334    private bool _IsPermission;
335   
336    private EntitySet<HeuristicLabRole> _HeuristicLabRole2;
337   
338    private EntitySet<HeuristicLabUserRole> _HeuristicLabUserRole;
339   
340    private EntityRef<HeuristicLabRole> _HeuristicLabRole1;
341   
342    #region Extensibility Method Definitions
343    partial void OnLoaded();
344    partial void OnValidate(System.Data.Linq.ChangeAction action);
345    partial void OnCreated();
346    partial void OnRoleNameChanging(string value);
347    partial void OnRoleNameChanged();
348    partial void OnParentRoleIDChanging(System.Nullable<long> value);
349    partial void OnParentRoleIDChanged();
350    partial void OnIsPermissionChanging(bool value);
351    partial void OnIsPermissionChanged();
352    #endregion
353   
354    public HeuristicLabRole()
355    {
356      this._HeuristicLabRole2 = new EntitySet<HeuristicLabRole>(new Action<HeuristicLabRole>(this.attach_HeuristicLabRole2), new Action<HeuristicLabRole>(this.detach_HeuristicLabRole2));
357      this._HeuristicLabUserRole = new EntitySet<HeuristicLabUserRole>(new Action<HeuristicLabUserRole>(this.attach_HeuristicLabUserRole), new Action<HeuristicLabUserRole>(this.detach_HeuristicLabUserRole));
358      this._HeuristicLabRole1 = default(EntityRef<HeuristicLabRole>);
359      OnCreated();
360    }
361   
362    [Column(Storage="_ID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
363    public long ID
364    {
365      get
366      {
367        return this._ID;
368      }
369    }
370   
371    [Column(Name="roleName", Storage="_roleName", CanBeNull=false)]
372    public string RoleName
373    {
374      get
375      {
376        return this._roleName;
377      }
378      set
379      {
380        if ((this._roleName != value))
381        {
382          this.OnRoleNameChanging(value);
383          this.SendPropertyChanging();
384          this._roleName = value;
385          this.SendPropertyChanged("RoleName");
386          this.OnRoleNameChanged();
387        }
388      }
389    }
390   
391    [Column(Name="parentRoleID", Storage="_parentRoleID")]
392    public System.Nullable<long> ParentRoleID
393    {
394      get
395      {
396        return this._parentRoleID;
397      }
398      set
399      {
400        if ((this._parentRoleID != value))
401        {
402          this.OnParentRoleIDChanging(value);
403          this.SendPropertyChanging();
404          this._parentRoleID = value;
405          this.SendPropertyChanged("ParentRoleID");
406          this.OnParentRoleIDChanged();
407        }
408      }
409    }
410   
411    [Column(Storage="_IsPermission")]
412    public bool IsPermission
413    {
414      get
415      {
416        return this._IsPermission;
417      }
418      set
419      {
420        if ((this._IsPermission != value))
421        {
422          this.OnIsPermissionChanging(value);
423          this.SendPropertyChanging();
424          this._IsPermission = value;
425          this.SendPropertyChanged("IsPermission");
426          this.OnIsPermissionChanged();
427        }
428      }
429    }
430   
431    [Association(Name="HeuristicLabRole_HeuristicLabRole", Storage="_HeuristicLabRole2", ThisKey="ID", OtherKey="ParentRoleID")]
432    public EntitySet<HeuristicLabRole> HeuristicLabRoleChilds
433    {
434      get
435      {
436        return this._HeuristicLabRole2;
437      }
438      set
439      {
440        this._HeuristicLabRole2.Assign(value);
441      }
442    }
443   
444    [Association(Name="HeuristicLabRole_HeuristicLabUserRole", Storage="_HeuristicLabUserRole", ThisKey="ID", OtherKey="HeuristicLabRoleID")]
445    public EntitySet<HeuristicLabUserRole> HeuristicLabUserRoles
446    {
447      get
448      {
449        return this._HeuristicLabUserRole;
450      }
451      set
452      {
453        this._HeuristicLabUserRole.Assign(value);
454      }
455    }
456   
457    [Association(Name="HeuristicLabRole_HeuristicLabRole", Storage="_HeuristicLabRole1", ThisKey="ParentRoleID", OtherKey="ID", IsForeignKey=true)]
458    public HeuristicLabRole HeuristicLabRoleParent
459    {
460      get
461      {
462        return this._HeuristicLabRole1.Entity;
463      }
464      set
465      {
466        HeuristicLabRole previousValue = this._HeuristicLabRole1.Entity;
467        if (((previousValue != value)
468              || (this._HeuristicLabRole1.HasLoadedOrAssignedValue == false)))
469        {
470          this.SendPropertyChanging();
471          if ((previousValue != null))
472          {
473            this._HeuristicLabRole1.Entity = null;
474            previousValue.HeuristicLabRoleChilds.Remove(this);
475          }
476          this._HeuristicLabRole1.Entity = value;
477          if ((value != null))
478          {
479            value.HeuristicLabRoleChilds.Add(this);
480            this._parentRoleID = value.ID;
481          }
482          else
483          {
484            this._parentRoleID = default(Nullable<long>);
485          }
486          this.SendPropertyChanged("HeuristicLabRoleParent");
487        }
488      }
489    }
490   
491    public event PropertyChangingEventHandler PropertyChanging;
492   
493    public event PropertyChangedEventHandler PropertyChanged;
494   
495    protected virtual void SendPropertyChanging()
496    {
497      if ((this.PropertyChanging != null))
498      {
499        this.PropertyChanging(this, emptyChangingEventArgs);
500      }
501    }
502   
503    protected virtual void SendPropertyChanged(String propertyName)
504    {
505      if ((this.PropertyChanged != null))
506      {
507        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
508      }
509    }
510   
511    private void attach_HeuristicLabRole2(HeuristicLabRole entity)
512    {
513      this.SendPropertyChanging();
514      entity.HeuristicLabRoleParent = this;
515    }
516   
517    private void detach_HeuristicLabRole2(HeuristicLabRole entity)
518    {
519      this.SendPropertyChanging();
520      entity.HeuristicLabRoleParent = null;
521    }
522   
523    private void attach_HeuristicLabUserRole(HeuristicLabUserRole entity)
524    {
525      this.SendPropertyChanging();
526      entity.HeuristicLabRole = this;
527    }
528   
529    private void detach_HeuristicLabUserRole(HeuristicLabUserRole entity)
530    {
531      this.SendPropertyChanging();
532      entity.HeuristicLabRole = null;
533    }
534  }
535 
536  [Table(Name="")]
537  public partial class HeuristicLabUserRole : INotifyPropertyChanging, INotifyPropertyChanged
538  {
539   
540    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
541   
542    private long _ID;
543   
544    private long _HeuristicLabUserID;
545   
546    private long _HeuristicLabRoleID;
547   
548    private EntityRef<HeuristicLabUser> _HeuristicLabUser;
549   
550    private EntityRef<HeuristicLabRole> _HeuristicLabAbstractRole;
551   
552    #region Extensibility Method Definitions
553    partial void OnLoaded();
554    partial void OnValidate(System.Data.Linq.ChangeAction action);
555    partial void OnCreated();
556    partial void OnIDChanging(long value);
557    partial void OnIDChanged();
558    partial void OnHeuristicLabUserIDChanging(long value);
559    partial void OnHeuristicLabUserIDChanged();
560    partial void OnHeuristicLabRoleIDChanging(long value);
561    partial void OnHeuristicLabRoleIDChanged();
562    #endregion
563   
564    public HeuristicLabUserRole()
565    {
566      this._HeuristicLabUser = default(EntityRef<HeuristicLabUser>);
567      this._HeuristicLabAbstractRole = default(EntityRef<HeuristicLabRole>);
568      OnCreated();
569    }
570   
571    [Column(Storage="_ID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true)]
572    public long ID
573    {
574      get
575      {
576        return this._ID;
577      }
578      set
579      {
580        if ((this._ID != value))
581        {
582          this.OnIDChanging(value);
583          this.SendPropertyChanging();
584          this._ID = value;
585          this.SendPropertyChanged("ID");
586          this.OnIDChanged();
587        }
588      }
589    }
590   
591    [Column(Storage="_HeuristicLabUserID")]
592    public long HeuristicLabUserID
593    {
594      get
595      {
596        return this._HeuristicLabUserID;
597      }
598      set
599      {
600        if ((this._HeuristicLabUserID != value))
601        {
602          if (this._HeuristicLabUser.HasLoadedOrAssignedValue)
603          {
604            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
605          }
606          this.OnHeuristicLabUserIDChanging(value);
607          this.SendPropertyChanging();
608          this._HeuristicLabUserID = value;
609          this.SendPropertyChanged("HeuristicLabUserID");
610          this.OnHeuristicLabUserIDChanged();
611        }
612      }
613    }
614   
615    [Column(Storage="_HeuristicLabRoleID")]
616    public long HeuristicLabRoleID
617    {
618      get
619      {
620        return this._HeuristicLabRoleID;
621      }
622      set
623      {
624        if ((this._HeuristicLabRoleID != value))
625        {
626          if (this._HeuristicLabAbstractRole.HasLoadedOrAssignedValue)
627          {
628            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
629          }
630          this.OnHeuristicLabRoleIDChanging(value);
631          this.SendPropertyChanging();
632          this._HeuristicLabRoleID = value;
633          this.SendPropertyChanged("HeuristicLabRoleID");
634          this.OnHeuristicLabRoleIDChanged();
635        }
636      }
637    }
638   
639    [Association(Name="HeuristicLabUser_HeuristicLabUserRole", Storage="_HeuristicLabUser", ThisKey="HeuristicLabUserID", OtherKey="ID", IsForeignKey=true)]
640    public HeuristicLabUser HeuristicLabUser
641    {
642      get
643      {
644        return this._HeuristicLabUser.Entity;
645      }
646      set
647      {
648        HeuristicLabUser previousValue = this._HeuristicLabUser.Entity;
649        if (((previousValue != value)
650              || (this._HeuristicLabUser.HasLoadedOrAssignedValue == false)))
651        {
652          this.SendPropertyChanging();
653          if ((previousValue != null))
654          {
655            this._HeuristicLabUser.Entity = null;
656            previousValue.HeuristicLabUserRoles.Remove(this);
657          }
658          this._HeuristicLabUser.Entity = value;
659          if ((value != null))
660          {
661            value.HeuristicLabUserRoles.Add(this);
662            this._HeuristicLabUserID = value.ID;
663          }
664          else
665          {
666            this._HeuristicLabUserID = default(long);
667          }
668          this.SendPropertyChanged("HeuristicLabUser");
669        }
670      }
671    }
672   
673    [Association(Name="HeuristicLabRole_HeuristicLabUserRole", Storage="_HeuristicLabAbstractRole", ThisKey="HeuristicLabRoleID", OtherKey="ID", IsForeignKey=true)]
674    public HeuristicLabRole HeuristicLabRole
675    {
676      get
677      {
678        return this._HeuristicLabAbstractRole.Entity;
679      }
680      set
681      {
682        HeuristicLabRole previousValue = this._HeuristicLabAbstractRole.Entity;
683        if (((previousValue != value)
684              || (this._HeuristicLabAbstractRole.HasLoadedOrAssignedValue == false)))
685        {
686          this.SendPropertyChanging();
687          if ((previousValue != null))
688          {
689            this._HeuristicLabAbstractRole.Entity = null;
690            previousValue.HeuristicLabUserRoles.Remove(this);
691          }
692          this._HeuristicLabAbstractRole.Entity = value;
693          if ((value != null))
694          {
695            value.HeuristicLabUserRoles.Add(this);
696            this._HeuristicLabRoleID = value.ID;
697          }
698          else
699          {
700            this._HeuristicLabRoleID = default(long);
701          }
702          this.SendPropertyChanged("HeuristicLabRole");
703        }
704      }
705    }
706   
707    public event PropertyChangingEventHandler PropertyChanging;
708   
709    public event PropertyChangedEventHandler PropertyChanged;
710   
711    protected virtual void SendPropertyChanging()
712    {
713      if ((this.PropertyChanging != null))
714      {
715        this.PropertyChanging(this, emptyChangingEventArgs);
716      }
717    }
718   
719    protected virtual void SendPropertyChanged(String propertyName)
720    {
721      if ((this.PropertyChanged != null))
722      {
723        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
724      }
725    }
726  }
727}
728#pragma warning restore 1591
Note: See TracBrowser for help on using the repository browser.