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