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 InsertHeuristicLabAbstractRole(HeuristicLabAbstractRole instance);
|
---|
36 | partial void UpdateHeuristicLabAbstractRole(HeuristicLabAbstractRole instance);
|
---|
37 | partial void DeleteHeuristicLabAbstractRole(HeuristicLabAbstractRole instance);
|
---|
38 | #endregion
|
---|
39 |
|
---|
40 | public DataClassesDataContext(string connection) :
|
---|
41 | base(connection, mappingSource)
|
---|
42 | {
|
---|
43 | OnCreated();
|
---|
44 | }
|
---|
45 |
|
---|
46 | public DataClassesDataContext(System.Data.IDbConnection connection) :
|
---|
47 | base(connection, mappingSource)
|
---|
48 | {
|
---|
49 | OnCreated();
|
---|
50 | }
|
---|
51 |
|
---|
52 | public DataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
53 | base(connection, mappingSource)
|
---|
54 | {
|
---|
55 | OnCreated();
|
---|
56 | }
|
---|
57 |
|
---|
58 | public DataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
59 | base(connection, mappingSource)
|
---|
60 | {
|
---|
61 | OnCreated();
|
---|
62 | }
|
---|
63 |
|
---|
64 | public System.Data.Linq.Table<HeuristicLabUser> HeuristicLabUsers
|
---|
65 | {
|
---|
66 | get
|
---|
67 | {
|
---|
68 | return this.GetTable<HeuristicLabUser>();
|
---|
69 | }
|
---|
70 | }
|
---|
71 |
|
---|
72 | public System.Data.Linq.Table<HeuristicLabAbstractRole> HeuristicLabAbstractRoles
|
---|
73 | {
|
---|
74 | get
|
---|
75 | {
|
---|
76 | return this.GetTable<HeuristicLabAbstractRole>();
|
---|
77 | }
|
---|
78 | }
|
---|
79 | }
|
---|
80 |
|
---|
81 | [Table(Name="")]
|
---|
82 | public partial class HeuristicLabUser : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
83 | {
|
---|
84 |
|
---|
85 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
86 |
|
---|
87 | private long _id = default(long);
|
---|
88 |
|
---|
89 | private string _UserName = default(string);
|
---|
90 |
|
---|
91 | private string _Password;
|
---|
92 |
|
---|
93 | private System.DateTime _LastPasswordChangedDate = default(System.DateTime);
|
---|
94 |
|
---|
95 | private string _PasswordQuestion = default(string);
|
---|
96 |
|
---|
97 | private string _PasswordAnswer;
|
---|
98 |
|
---|
99 | private string _Email;
|
---|
100 |
|
---|
101 | private string _Comment;
|
---|
102 |
|
---|
103 | #region Extensibility Method Definitions
|
---|
104 | partial void OnLoaded();
|
---|
105 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
106 | partial void OnCreated();
|
---|
107 | partial void OnPasswordChanging(string value);
|
---|
108 | partial void OnPasswordChanged();
|
---|
109 | partial void OnPasswordAnswerChanging(string value);
|
---|
110 | partial void OnPasswordAnswerChanged();
|
---|
111 | partial void OnEmailChanging(string value);
|
---|
112 | partial void OnEmailChanged();
|
---|
113 | partial void OnCommentChanging(string value);
|
---|
114 | partial void OnCommentChanged();
|
---|
115 | #endregion
|
---|
116 |
|
---|
117 | public HeuristicLabUser()
|
---|
118 | {
|
---|
119 | OnCreated();
|
---|
120 | }
|
---|
121 |
|
---|
122 | [Column(Name="id", Storage="_id", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
|
---|
123 | public long ID
|
---|
124 | {
|
---|
125 | get
|
---|
126 | {
|
---|
127 | return this._id;
|
---|
128 | }
|
---|
129 | }
|
---|
130 |
|
---|
131 | [Column(Storage="_UserName", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
|
---|
132 | public override string UserName
|
---|
133 | {
|
---|
134 | get
|
---|
135 | {
|
---|
136 | return this._UserName;
|
---|
137 | }
|
---|
138 | }
|
---|
139 |
|
---|
140 | [Column(Storage="_Password", CanBeNull=false)]
|
---|
141 | public string Password
|
---|
142 | {
|
---|
143 | get
|
---|
144 | {
|
---|
145 | return this._Password;
|
---|
146 | }
|
---|
147 | set
|
---|
148 | {
|
---|
149 | if ((this._Password != value))
|
---|
150 | {
|
---|
151 | this.OnPasswordChanging(value);
|
---|
152 | this.SendPropertyChanging();
|
---|
153 | this._Password = value;
|
---|
154 | this.SendPropertyChanged("Password");
|
---|
155 | this.OnPasswordChanged();
|
---|
156 | }
|
---|
157 | }
|
---|
158 | }
|
---|
159 |
|
---|
160 | [Column(Storage="_LastPasswordChangedDate", UpdateCheck=UpdateCheck.Never)]
|
---|
161 | public override System.DateTime LastPasswordChangedDate
|
---|
162 | {
|
---|
163 | get
|
---|
164 | {
|
---|
165 | return this._LastPasswordChangedDate;
|
---|
166 | }
|
---|
167 | }
|
---|
168 |
|
---|
169 | [Column(Storage="_PasswordQuestion", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
|
---|
170 | public override string PasswordQuestion
|
---|
171 | {
|
---|
172 | get
|
---|
173 | {
|
---|
174 | return this._PasswordQuestion;
|
---|
175 | }
|
---|
176 | }
|
---|
177 |
|
---|
178 | [Column(Storage="_PasswordAnswer", CanBeNull=false)]
|
---|
179 | public string PasswordAnswer
|
---|
180 | {
|
---|
181 | get
|
---|
182 | {
|
---|
183 | return this._PasswordAnswer;
|
---|
184 | }
|
---|
185 | set
|
---|
186 | {
|
---|
187 | if ((this._PasswordAnswer != value))
|
---|
188 | {
|
---|
189 | this.OnPasswordAnswerChanging(value);
|
---|
190 | this.SendPropertyChanging();
|
---|
191 | this._PasswordAnswer = value;
|
---|
192 | this.SendPropertyChanged("PasswordAnswer");
|
---|
193 | this.OnPasswordAnswerChanged();
|
---|
194 | }
|
---|
195 | }
|
---|
196 | }
|
---|
197 |
|
---|
198 | [Column(Storage="_Email", CanBeNull=false)]
|
---|
199 | public override string Email
|
---|
200 | {
|
---|
201 | get
|
---|
202 | {
|
---|
203 | return this._Email;
|
---|
204 | }
|
---|
205 | set
|
---|
206 | {
|
---|
207 | if ((this._Email != value))
|
---|
208 | {
|
---|
209 | this.OnEmailChanging(value);
|
---|
210 | this.SendPropertyChanging();
|
---|
211 | this._Email = value;
|
---|
212 | this.SendPropertyChanged("Email");
|
---|
213 | this.OnEmailChanged();
|
---|
214 | }
|
---|
215 | }
|
---|
216 | }
|
---|
217 |
|
---|
218 | [Column(Storage="_Comment", CanBeNull=false)]
|
---|
219 | public override string Comment
|
---|
220 | {
|
---|
221 | get
|
---|
222 | {
|
---|
223 | return this._Comment;
|
---|
224 | }
|
---|
225 | set
|
---|
226 | {
|
---|
227 | if ((this._Comment != value))
|
---|
228 | {
|
---|
229 | this.OnCommentChanging(value);
|
---|
230 | this.SendPropertyChanging();
|
---|
231 | this._Comment = value;
|
---|
232 | this.SendPropertyChanged("Comment");
|
---|
233 | this.OnCommentChanged();
|
---|
234 | }
|
---|
235 | }
|
---|
236 | }
|
---|
237 |
|
---|
238 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
239 |
|
---|
240 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
241 |
|
---|
242 | protected virtual void SendPropertyChanging()
|
---|
243 | {
|
---|
244 | if ((this.PropertyChanging != null))
|
---|
245 | {
|
---|
246 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
247 | }
|
---|
248 | }
|
---|
249 |
|
---|
250 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
251 | {
|
---|
252 | if ((this.PropertyChanged != null))
|
---|
253 | {
|
---|
254 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
255 | }
|
---|
256 | }
|
---|
257 | }
|
---|
258 |
|
---|
259 | [Table(Name="")]
|
---|
260 | [InheritanceMapping(Code="false", Type=typeof(HeuristicLabRole), IsDefault=true)]
|
---|
261 | [InheritanceMapping(Code="true", Type=typeof(HeuristicLabPermissionRole))]
|
---|
262 | public abstract partial class HeuristicLabAbstractRole : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
263 | {
|
---|
264 |
|
---|
265 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
266 |
|
---|
267 | private long _ID = default(long);
|
---|
268 |
|
---|
269 | private string _roleName;
|
---|
270 |
|
---|
271 | private long _parentRoleID;
|
---|
272 |
|
---|
273 | private bool _RoleType;
|
---|
274 |
|
---|
275 | #region Extensibility Method Definitions
|
---|
276 | partial void OnLoaded();
|
---|
277 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
278 | partial void OnCreated();
|
---|
279 | partial void OnRoleNameChanging(string value);
|
---|
280 | partial void OnRoleNameChanged();
|
---|
281 | partial void OnParentRoleIDChanging(long value);
|
---|
282 | partial void OnParentRoleIDChanged();
|
---|
283 | partial void OnIsPermissionChanging(bool value);
|
---|
284 | partial void OnIsPermissionChanged();
|
---|
285 | #endregion
|
---|
286 |
|
---|
287 | public HeuristicLabAbstractRole()
|
---|
288 | {
|
---|
289 | OnCreated();
|
---|
290 | }
|
---|
291 |
|
---|
292 | [Column(Storage="_ID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
|
---|
293 | public long ID
|
---|
294 | {
|
---|
295 | get
|
---|
296 | {
|
---|
297 | return this._ID;
|
---|
298 | }
|
---|
299 | }
|
---|
300 |
|
---|
301 | [Column(Name="roleName", Storage="_roleName", CanBeNull=false)]
|
---|
302 | public string RoleName
|
---|
303 | {
|
---|
304 | get
|
---|
305 | {
|
---|
306 | return this._roleName;
|
---|
307 | }
|
---|
308 | set
|
---|
309 | {
|
---|
310 | if ((this._roleName != value))
|
---|
311 | {
|
---|
312 | this.OnRoleNameChanging(value);
|
---|
313 | this.SendPropertyChanging();
|
---|
314 | this._roleName = value;
|
---|
315 | this.SendPropertyChanged("RoleName");
|
---|
316 | this.OnRoleNameChanged();
|
---|
317 | }
|
---|
318 | }
|
---|
319 | }
|
---|
320 |
|
---|
321 | [Column(Name="parentRoleID", Storage="_parentRoleID")]
|
---|
322 | public long ParentRoleID
|
---|
323 | {
|
---|
324 | get
|
---|
325 | {
|
---|
326 | return this._parentRoleID;
|
---|
327 | }
|
---|
328 | set
|
---|
329 | {
|
---|
330 | if ((this._parentRoleID != value))
|
---|
331 | {
|
---|
332 | this.OnParentRoleIDChanging(value);
|
---|
333 | this.SendPropertyChanging();
|
---|
334 | this._parentRoleID = value;
|
---|
335 | this.SendPropertyChanged("ParentRoleID");
|
---|
336 | this.OnParentRoleIDChanged();
|
---|
337 | }
|
---|
338 | }
|
---|
339 | }
|
---|
340 |
|
---|
341 | [Column(Name="RoleType", Storage="_RoleType", IsDiscriminator=true)]
|
---|
342 | public bool IsPermission
|
---|
343 | {
|
---|
344 | get
|
---|
345 | {
|
---|
346 | return this._RoleType;
|
---|
347 | }
|
---|
348 | set
|
---|
349 | {
|
---|
350 | if ((this._RoleType != value))
|
---|
351 | {
|
---|
352 | this.OnIsPermissionChanging(value);
|
---|
353 | this.SendPropertyChanging();
|
---|
354 | this._RoleType = value;
|
---|
355 | this.SendPropertyChanged("IsPermission");
|
---|
356 | this.OnIsPermissionChanged();
|
---|
357 | }
|
---|
358 | }
|
---|
359 | }
|
---|
360 |
|
---|
361 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
362 |
|
---|
363 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
364 |
|
---|
365 | protected virtual void SendPropertyChanging()
|
---|
366 | {
|
---|
367 | if ((this.PropertyChanging != null))
|
---|
368 | {
|
---|
369 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
370 | }
|
---|
371 | }
|
---|
372 |
|
---|
373 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
374 | {
|
---|
375 | if ((this.PropertyChanged != null))
|
---|
376 | {
|
---|
377 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
378 | }
|
---|
379 | }
|
---|
380 | }
|
---|
381 |
|
---|
382 | public partial class HeuristicLabRole : HeuristicLabAbstractRole
|
---|
383 | {
|
---|
384 |
|
---|
385 | private string _DummyField1;
|
---|
386 |
|
---|
387 | #region Extensibility Method Definitions
|
---|
388 | partial void OnLoaded();
|
---|
389 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
390 | partial void OnCreated();
|
---|
391 | partial void OnDummyField1Changing(string value);
|
---|
392 | partial void OnDummyField1Changed();
|
---|
393 | #endregion
|
---|
394 |
|
---|
395 | public HeuristicLabRole()
|
---|
396 | {
|
---|
397 | OnCreated();
|
---|
398 | }
|
---|
399 |
|
---|
400 | [Column(Storage="_DummyField1", CanBeNull=false)]
|
---|
401 | public string DummyField1
|
---|
402 | {
|
---|
403 | get
|
---|
404 | {
|
---|
405 | return this._DummyField1;
|
---|
406 | }
|
---|
407 | set
|
---|
408 | {
|
---|
409 | if ((this._DummyField1 != value))
|
---|
410 | {
|
---|
411 | this.OnDummyField1Changing(value);
|
---|
412 | this.SendPropertyChanging();
|
---|
413 | this._DummyField1 = value;
|
---|
414 | this.SendPropertyChanged("DummyField1");
|
---|
415 | this.OnDummyField1Changed();
|
---|
416 | }
|
---|
417 | }
|
---|
418 | }
|
---|
419 | }
|
---|
420 |
|
---|
421 | public partial class HeuristicLabPermissionRole : HeuristicLabAbstractRole
|
---|
422 | {
|
---|
423 |
|
---|
424 | private string _DummyField2;
|
---|
425 |
|
---|
426 | #region Extensibility Method Definitions
|
---|
427 | partial void OnLoaded();
|
---|
428 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
429 | partial void OnCreated();
|
---|
430 | partial void OnDummyField2Changing(string value);
|
---|
431 | partial void OnDummyField2Changed();
|
---|
432 | #endregion
|
---|
433 |
|
---|
434 | public HeuristicLabPermissionRole()
|
---|
435 | {
|
---|
436 | OnCreated();
|
---|
437 | }
|
---|
438 |
|
---|
439 | [Column(Storage="_DummyField2", CanBeNull=false)]
|
---|
440 | public string DummyField2
|
---|
441 | {
|
---|
442 | get
|
---|
443 | {
|
---|
444 | return this._DummyField2;
|
---|
445 | }
|
---|
446 | set
|
---|
447 | {
|
---|
448 | if ((this._DummyField2 != value))
|
---|
449 | {
|
---|
450 | this.OnDummyField2Changing(value);
|
---|
451 | this.SendPropertyChanging();
|
---|
452 | this._DummyField2 = value;
|
---|
453 | this.SendPropertyChanged("DummyField2");
|
---|
454 | this.OnDummyField2Changed();
|
---|
455 | }
|
---|
456 | }
|
---|
457 | }
|
---|
458 | }
|
---|
459 | }
|
---|
460 | #pragma warning restore 1591
|
---|