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