1 | #pragma warning disable 1591
|
---|
2 | //------------------------------------------------------------------------------
|
---|
3 | // <auto-generated>
|
---|
4 | // This code was generated by a tool.
|
---|
5 | // Runtime Version:4.0.30319.237
|
---|
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 HeuristicLab.Services.Access.DataAccess
|
---|
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 | [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="HeuristicLab.ClientManagement")]
|
---|
26 | public partial class ClientManagementDataContext : 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 InsertResource(Resource instance);
|
---|
34 | partial void UpdateResource(Resource instance);
|
---|
35 | partial void DeleteResource(Resource instance);
|
---|
36 | partial void InsertResourceResourceGroup(ResourceResourceGroup instance);
|
---|
37 | partial void UpdateResourceResourceGroup(ResourceResourceGroup instance);
|
---|
38 | partial void DeleteResourceResourceGroup(ResourceResourceGroup instance);
|
---|
39 | partial void InsertClientLog(ClientLog instance);
|
---|
40 | partial void UpdateClientLog(ClientLog instance);
|
---|
41 | partial void DeleteClientLog(ClientLog instance);
|
---|
42 | partial void InsertUser(User instance);
|
---|
43 | partial void UpdateUser(User instance);
|
---|
44 | partial void DeleteUser(User instance);
|
---|
45 | partial void InsertUserGroup(UserGroup instance);
|
---|
46 | partial void UpdateUserGroup(UserGroup instance);
|
---|
47 | partial void DeleteUserGroup(UserGroup instance);
|
---|
48 | partial void InsertUserUserGroup(UserUserGroup instance);
|
---|
49 | partial void UpdateUserUserGroup(UserUserGroup instance);
|
---|
50 | partial void DeleteUserUserGroup(UserUserGroup instance);
|
---|
51 | #endregion
|
---|
52 |
|
---|
53 | public ClientManagementDataContext() :
|
---|
54 | base(global::HeuristicLab.Services.Access.DataAccess.Properties.Settings.Default.HeuristicLab_ClientManagementConnectionString, mappingSource)
|
---|
55 | {
|
---|
56 | OnCreated();
|
---|
57 | }
|
---|
58 |
|
---|
59 | public ClientManagementDataContext(string connection) :
|
---|
60 | base(connection, mappingSource)
|
---|
61 | {
|
---|
62 | OnCreated();
|
---|
63 | }
|
---|
64 |
|
---|
65 | public ClientManagementDataContext(System.Data.IDbConnection connection) :
|
---|
66 | base(connection, mappingSource)
|
---|
67 | {
|
---|
68 | OnCreated();
|
---|
69 | }
|
---|
70 |
|
---|
71 | public ClientManagementDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
72 | base(connection, mappingSource)
|
---|
73 | {
|
---|
74 | OnCreated();
|
---|
75 | }
|
---|
76 |
|
---|
77 | public ClientManagementDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
78 | base(connection, mappingSource)
|
---|
79 | {
|
---|
80 | OnCreated();
|
---|
81 | }
|
---|
82 |
|
---|
83 | public System.Data.Linq.Table<Resource> Resources
|
---|
84 | {
|
---|
85 | get
|
---|
86 | {
|
---|
87 | return this.GetTable<Resource>();
|
---|
88 | }
|
---|
89 | }
|
---|
90 |
|
---|
91 | public System.Data.Linq.Table<ResourceResourceGroup> ResourceResourceGroups
|
---|
92 | {
|
---|
93 | get
|
---|
94 | {
|
---|
95 | return this.GetTable<ResourceResourceGroup>();
|
---|
96 | }
|
---|
97 | }
|
---|
98 |
|
---|
99 | public System.Data.Linq.Table<ClientLog> ClientLogs
|
---|
100 | {
|
---|
101 | get
|
---|
102 | {
|
---|
103 | return this.GetTable<ClientLog>();
|
---|
104 | }
|
---|
105 | }
|
---|
106 |
|
---|
107 | public System.Data.Linq.Table<User> Users
|
---|
108 | {
|
---|
109 | get
|
---|
110 | {
|
---|
111 | return this.GetTable<User>();
|
---|
112 | }
|
---|
113 | }
|
---|
114 |
|
---|
115 | public System.Data.Linq.Table<UserGroup> UserGroups
|
---|
116 | {
|
---|
117 | get
|
---|
118 | {
|
---|
119 | return this.GetTable<UserGroup>();
|
---|
120 | }
|
---|
121 | }
|
---|
122 |
|
---|
123 | public System.Data.Linq.Table<UserUserGroup> UserUserGroups
|
---|
124 | {
|
---|
125 | get
|
---|
126 | {
|
---|
127 | return this.GetTable<UserUserGroup>();
|
---|
128 | }
|
---|
129 | }
|
---|
130 | }
|
---|
131 |
|
---|
132 | [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Resource")]
|
---|
133 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Resource", Type=typeof(Resource))]
|
---|
134 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Client", Type=typeof(Client))]
|
---|
135 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Group", Type=typeof(Group))]
|
---|
136 | public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
137 | {
|
---|
138 |
|
---|
139 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
140 |
|
---|
141 | private System.Guid _Id;
|
---|
142 |
|
---|
143 | private string _Name;
|
---|
144 |
|
---|
145 | private string _Description;
|
---|
146 |
|
---|
147 | private string _Type;
|
---|
148 |
|
---|
149 | private EntitySet<ResourceResourceGroup> _ResourceResourceGroups;
|
---|
150 |
|
---|
151 | private EntitySet<ResourceResourceGroup> _ResourceResourceGroups1;
|
---|
152 |
|
---|
153 | private EntitySet<ClientLog> _ClientLogs;
|
---|
154 |
|
---|
155 | #region Extensibility Method Definitions
|
---|
156 | partial void OnLoaded();
|
---|
157 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
158 | partial void OnCreated();
|
---|
159 | partial void OnIdChanging(System.Guid value);
|
---|
160 | partial void OnIdChanged();
|
---|
161 | partial void OnNameChanging(string value);
|
---|
162 | partial void OnNameChanged();
|
---|
163 | partial void OnDescriptionChanging(string value);
|
---|
164 | partial void OnDescriptionChanged();
|
---|
165 | partial void OnTypeChanging(string value);
|
---|
166 | partial void OnTypeChanged();
|
---|
167 | #endregion
|
---|
168 |
|
---|
169 | public Resource()
|
---|
170 | {
|
---|
171 | this._ResourceResourceGroups = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups));
|
---|
172 | this._ResourceResourceGroups1 = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups1), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups1));
|
---|
173 | this._ClientLogs = new EntitySet<ClientLog>(new Action<ClientLog>(this.attach_ClientLogs), new Action<ClientLog>(this.detach_ClientLogs));
|
---|
174 | OnCreated();
|
---|
175 | }
|
---|
176 |
|
---|
177 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
178 | public System.Guid Id
|
---|
179 | {
|
---|
180 | get
|
---|
181 | {
|
---|
182 | return this._Id;
|
---|
183 | }
|
---|
184 | set
|
---|
185 | {
|
---|
186 | if ((this._Id != value))
|
---|
187 | {
|
---|
188 | this.OnIdChanging(value);
|
---|
189 | this.SendPropertyChanging();
|
---|
190 | this._Id = value;
|
---|
191 | this.SendPropertyChanged("Id");
|
---|
192 | this.OnIdChanged();
|
---|
193 | }
|
---|
194 | }
|
---|
195 | }
|
---|
196 |
|
---|
197 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false)]
|
---|
198 | public string Name
|
---|
199 | {
|
---|
200 | get
|
---|
201 | {
|
---|
202 | return this._Name;
|
---|
203 | }
|
---|
204 | set
|
---|
205 | {
|
---|
206 | if ((this._Name != value))
|
---|
207 | {
|
---|
208 | this.OnNameChanging(value);
|
---|
209 | this.SendPropertyChanging();
|
---|
210 | this._Name = value;
|
---|
211 | this.SendPropertyChanged("Name");
|
---|
212 | this.OnNameChanged();
|
---|
213 | }
|
---|
214 | }
|
---|
215 | }
|
---|
216 |
|
---|
217 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(MAX)")]
|
---|
218 | public string Description
|
---|
219 | {
|
---|
220 | get
|
---|
221 | {
|
---|
222 | return this._Description;
|
---|
223 | }
|
---|
224 | set
|
---|
225 | {
|
---|
226 | if ((this._Description != value))
|
---|
227 | {
|
---|
228 | this.OnDescriptionChanging(value);
|
---|
229 | this.SendPropertyChanging();
|
---|
230 | this._Description = value;
|
---|
231 | this.SendPropertyChanged("Description");
|
---|
232 | this.OnDescriptionChanged();
|
---|
233 | }
|
---|
234 | }
|
---|
235 | }
|
---|
236 |
|
---|
237 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false, IsDiscriminator=true)]
|
---|
238 | public string Type
|
---|
239 | {
|
---|
240 | get
|
---|
241 | {
|
---|
242 | return this._Type;
|
---|
243 | }
|
---|
244 | set
|
---|
245 | {
|
---|
246 | if ((this._Type != value))
|
---|
247 | {
|
---|
248 | this.OnTypeChanging(value);
|
---|
249 | this.SendPropertyChanging();
|
---|
250 | this._Type = value;
|
---|
251 | this.SendPropertyChanged("Type");
|
---|
252 | this.OnTypeChanged();
|
---|
253 | }
|
---|
254 | }
|
---|
255 | }
|
---|
256 |
|
---|
257 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_ResourceResourceGroups", ThisKey="Id", OtherKey="ResourceGroupId")]
|
---|
258 | public EntitySet<ResourceResourceGroup> ResourceResourceGroups
|
---|
259 | {
|
---|
260 | get
|
---|
261 | {
|
---|
262 | return this._ResourceResourceGroups;
|
---|
263 | }
|
---|
264 | set
|
---|
265 | {
|
---|
266 | this._ResourceResourceGroups.Assign(value);
|
---|
267 | }
|
---|
268 | }
|
---|
269 |
|
---|
270 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_ResourceResourceGroups1", ThisKey="Id", OtherKey="ResourceId")]
|
---|
271 | public EntitySet<ResourceResourceGroup> ResourceResourceGroups1
|
---|
272 | {
|
---|
273 | get
|
---|
274 | {
|
---|
275 | return this._ResourceResourceGroups1;
|
---|
276 | }
|
---|
277 | set
|
---|
278 | {
|
---|
279 | this._ResourceResourceGroups1.Assign(value);
|
---|
280 | }
|
---|
281 | }
|
---|
282 |
|
---|
283 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ClientLog", Storage="_ClientLogs", ThisKey="Id", OtherKey="ResourceId")]
|
---|
284 | public EntitySet<ClientLog> ClientLogs
|
---|
285 | {
|
---|
286 | get
|
---|
287 | {
|
---|
288 | return this._ClientLogs;
|
---|
289 | }
|
---|
290 | set
|
---|
291 | {
|
---|
292 | this._ClientLogs.Assign(value);
|
---|
293 | }
|
---|
294 | }
|
---|
295 |
|
---|
296 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
297 |
|
---|
298 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
299 |
|
---|
300 | protected virtual void SendPropertyChanging()
|
---|
301 | {
|
---|
302 | if ((this.PropertyChanging != null))
|
---|
303 | {
|
---|
304 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
305 | }
|
---|
306 | }
|
---|
307 |
|
---|
308 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
309 | {
|
---|
310 | if ((this.PropertyChanged != null))
|
---|
311 | {
|
---|
312 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
313 | }
|
---|
314 | }
|
---|
315 |
|
---|
316 | private void attach_ResourceResourceGroups(ResourceResourceGroup entity)
|
---|
317 | {
|
---|
318 | this.SendPropertyChanging();
|
---|
319 | entity.Resource = this;
|
---|
320 | }
|
---|
321 |
|
---|
322 | private void detach_ResourceResourceGroups(ResourceResourceGroup entity)
|
---|
323 | {
|
---|
324 | this.SendPropertyChanging();
|
---|
325 | entity.Resource = null;
|
---|
326 | }
|
---|
327 |
|
---|
328 | private void attach_ResourceResourceGroups1(ResourceResourceGroup entity)
|
---|
329 | {
|
---|
330 | this.SendPropertyChanging();
|
---|
331 | entity.Resource1 = this;
|
---|
332 | }
|
---|
333 |
|
---|
334 | private void detach_ResourceResourceGroups1(ResourceResourceGroup entity)
|
---|
335 | {
|
---|
336 | this.SendPropertyChanging();
|
---|
337 | entity.Resource1 = null;
|
---|
338 | }
|
---|
339 |
|
---|
340 | private void attach_ClientLogs(ClientLog entity)
|
---|
341 | {
|
---|
342 | this.SendPropertyChanging();
|
---|
343 | entity.Resource = this;
|
---|
344 | }
|
---|
345 |
|
---|
346 | private void detach_ClientLogs(ClientLog entity)
|
---|
347 | {
|
---|
348 | this.SendPropertyChanging();
|
---|
349 | entity.Resource = null;
|
---|
350 | }
|
---|
351 | }
|
---|
352 |
|
---|
353 | public partial class Client : Resource
|
---|
354 | {
|
---|
355 |
|
---|
356 | private string _ProcessorType;
|
---|
357 |
|
---|
358 | private System.Nullable<int> _NumberOfCores;
|
---|
359 |
|
---|
360 | private System.Nullable<int> _MemorySize;
|
---|
361 |
|
---|
362 | private string _OperatingSystem;
|
---|
363 |
|
---|
364 | private string _IPAdresss;
|
---|
365 |
|
---|
366 | private string _HeuristicLabVersion;
|
---|
367 |
|
---|
368 | private string _Country;
|
---|
369 |
|
---|
370 | private string _ClientType;
|
---|
371 |
|
---|
372 | #region Extensibility Method Definitions
|
---|
373 | partial void OnLoaded();
|
---|
374 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
375 | partial void OnCreated();
|
---|
376 | partial void OnProcessorTypeChanging(string value);
|
---|
377 | partial void OnProcessorTypeChanged();
|
---|
378 | partial void OnNumberOfCoresChanging(System.Nullable<int> value);
|
---|
379 | partial void OnNumberOfCoresChanged();
|
---|
380 | partial void OnMemorySizeChanging(System.Nullable<int> value);
|
---|
381 | partial void OnMemorySizeChanged();
|
---|
382 | partial void OnOperatingSystemChanging(string value);
|
---|
383 | partial void OnOperatingSystemChanged();
|
---|
384 | partial void OnIPAddressChanging(string value);
|
---|
385 | partial void OnIPAddressChanged();
|
---|
386 | partial void OnHeuristicLabVersionChanging(string value);
|
---|
387 | partial void OnHeuristicLabVersionChanged();
|
---|
388 | partial void OnCountryChanging(string value);
|
---|
389 | partial void OnCountryChanged();
|
---|
390 | partial void OnClientTypeChanging(string value);
|
---|
391 | partial void OnClientTypeChanged();
|
---|
392 | #endregion
|
---|
393 |
|
---|
394 | public Client()
|
---|
395 | {
|
---|
396 | OnCreated();
|
---|
397 | }
|
---|
398 |
|
---|
399 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcessorType", DbType="NVarChar(MAX)")]
|
---|
400 | public string ProcessorType
|
---|
401 | {
|
---|
402 | get
|
---|
403 | {
|
---|
404 | return this._ProcessorType;
|
---|
405 | }
|
---|
406 | set
|
---|
407 | {
|
---|
408 | if ((this._ProcessorType != value))
|
---|
409 | {
|
---|
410 | this.OnProcessorTypeChanging(value);
|
---|
411 | this.SendPropertyChanging();
|
---|
412 | this._ProcessorType = value;
|
---|
413 | this.SendPropertyChanged("ProcessorType");
|
---|
414 | this.OnProcessorTypeChanged();
|
---|
415 | }
|
---|
416 | }
|
---|
417 | }
|
---|
418 |
|
---|
419 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfCores", DbType="int")]
|
---|
420 | public System.Nullable<int> NumberOfCores
|
---|
421 | {
|
---|
422 | get
|
---|
423 | {
|
---|
424 | return this._NumberOfCores;
|
---|
425 | }
|
---|
426 | set
|
---|
427 | {
|
---|
428 | if ((this._NumberOfCores != value))
|
---|
429 | {
|
---|
430 | this.OnNumberOfCoresChanging(value);
|
---|
431 | this.SendPropertyChanging();
|
---|
432 | this._NumberOfCores = value;
|
---|
433 | this.SendPropertyChanged("NumberOfCores");
|
---|
434 | this.OnNumberOfCoresChanged();
|
---|
435 | }
|
---|
436 | }
|
---|
437 | }
|
---|
438 |
|
---|
439 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemorySize", DbType="int")]
|
---|
440 | public System.Nullable<int> MemorySize
|
---|
441 | {
|
---|
442 | get
|
---|
443 | {
|
---|
444 | return this._MemorySize;
|
---|
445 | }
|
---|
446 | set
|
---|
447 | {
|
---|
448 | if ((this._MemorySize != value))
|
---|
449 | {
|
---|
450 | this.OnMemorySizeChanging(value);
|
---|
451 | this.SendPropertyChanging();
|
---|
452 | this._MemorySize = value;
|
---|
453 | this.SendPropertyChanged("MemorySize");
|
---|
454 | this.OnMemorySizeChanged();
|
---|
455 | }
|
---|
456 | }
|
---|
457 | }
|
---|
458 |
|
---|
459 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingSystem", DbType="NVarChar(MAX)")]
|
---|
460 | public string OperatingSystem
|
---|
461 | {
|
---|
462 | get
|
---|
463 | {
|
---|
464 | return this._OperatingSystem;
|
---|
465 | }
|
---|
466 | set
|
---|
467 | {
|
---|
468 | if ((this._OperatingSystem != value))
|
---|
469 | {
|
---|
470 | this.OnOperatingSystemChanging(value);
|
---|
471 | this.SendPropertyChanging();
|
---|
472 | this._OperatingSystem = value;
|
---|
473 | this.SendPropertyChanged("OperatingSystem");
|
---|
474 | this.OnOperatingSystemChanged();
|
---|
475 | }
|
---|
476 | }
|
---|
477 | }
|
---|
478 |
|
---|
479 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdresss", DbType="NVarChar(MAX)")]
|
---|
480 | public string IPAddress
|
---|
481 | {
|
---|
482 | get
|
---|
483 | {
|
---|
484 | return this._IPAdresss;
|
---|
485 | }
|
---|
486 | set
|
---|
487 | {
|
---|
488 | if ((this._IPAdresss != value))
|
---|
489 | {
|
---|
490 | this.OnIPAddressChanging(value);
|
---|
491 | this.SendPropertyChanging();
|
---|
492 | this._IPAdresss = value;
|
---|
493 | this.SendPropertyChanged("IPAddress");
|
---|
494 | this.OnIPAddressChanged();
|
---|
495 | }
|
---|
496 | }
|
---|
497 | }
|
---|
498 |
|
---|
499 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HeuristicLabVersion", DbType="NVarChar(MAX)")]
|
---|
500 | public string HeuristicLabVersion
|
---|
501 | {
|
---|
502 | get
|
---|
503 | {
|
---|
504 | return this._HeuristicLabVersion;
|
---|
505 | }
|
---|
506 | set
|
---|
507 | {
|
---|
508 | if ((this._HeuristicLabVersion != value))
|
---|
509 | {
|
---|
510 | this.OnHeuristicLabVersionChanging(value);
|
---|
511 | this.SendPropertyChanging();
|
---|
512 | this._HeuristicLabVersion = value;
|
---|
513 | this.SendPropertyChanged("HeuristicLabVersion");
|
---|
514 | this.OnHeuristicLabVersionChanged();
|
---|
515 | }
|
---|
516 | }
|
---|
517 | }
|
---|
518 |
|
---|
519 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Country", DbType="NVarChar(MAX)")]
|
---|
520 | public string Country
|
---|
521 | {
|
---|
522 | get
|
---|
523 | {
|
---|
524 | return this._Country;
|
---|
525 | }
|
---|
526 | set
|
---|
527 | {
|
---|
528 | if ((this._Country != value))
|
---|
529 | {
|
---|
530 | this.OnCountryChanging(value);
|
---|
531 | this.SendPropertyChanging();
|
---|
532 | this._Country = value;
|
---|
533 | this.SendPropertyChanged("Country");
|
---|
534 | this.OnCountryChanged();
|
---|
535 | }
|
---|
536 | }
|
---|
537 | }
|
---|
538 |
|
---|
539 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClientType", DbType="NVarChar(MAX)")]
|
---|
540 | public string ClientType
|
---|
541 | {
|
---|
542 | get
|
---|
543 | {
|
---|
544 | return this._ClientType;
|
---|
545 | }
|
---|
546 | set
|
---|
547 | {
|
---|
548 | if ((this._ClientType != value))
|
---|
549 | {
|
---|
550 | this.OnClientTypeChanging(value);
|
---|
551 | this.SendPropertyChanging();
|
---|
552 | this._ClientType = value;
|
---|
553 | this.SendPropertyChanged("ClientType");
|
---|
554 | this.OnClientTypeChanged();
|
---|
555 | }
|
---|
556 | }
|
---|
557 | }
|
---|
558 | }
|
---|
559 |
|
---|
560 | public partial class Group : Resource
|
---|
561 | {
|
---|
562 |
|
---|
563 | #region Extensibility Method Definitions
|
---|
564 | partial void OnLoaded();
|
---|
565 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
566 | partial void OnCreated();
|
---|
567 | #endregion
|
---|
568 |
|
---|
569 | public Group()
|
---|
570 | {
|
---|
571 | OnCreated();
|
---|
572 | }
|
---|
573 | }
|
---|
574 |
|
---|
575 | [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ResourceResourceGroup")]
|
---|
576 | public partial class ResourceResourceGroup : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
577 | {
|
---|
578 |
|
---|
579 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
580 |
|
---|
581 | private System.Guid _ResourceId;
|
---|
582 |
|
---|
583 | private System.Guid _ResourceGroupId;
|
---|
584 |
|
---|
585 | private EntityRef<Resource> _Resource;
|
---|
586 |
|
---|
587 | private EntityRef<Resource> _Resource1;
|
---|
588 |
|
---|
589 | #region Extensibility Method Definitions
|
---|
590 | partial void OnLoaded();
|
---|
591 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
592 | partial void OnCreated();
|
---|
593 | partial void OnResourceIdChanging(System.Guid value);
|
---|
594 | partial void OnResourceIdChanged();
|
---|
595 | partial void OnResourceGroupIdChanging(System.Guid value);
|
---|
596 | partial void OnResourceGroupIdChanged();
|
---|
597 | #endregion
|
---|
598 |
|
---|
599 | public ResourceResourceGroup()
|
---|
600 | {
|
---|
601 | this._Resource = default(EntityRef<Resource>);
|
---|
602 | this._Resource1 = default(EntityRef<Resource>);
|
---|
603 | OnCreated();
|
---|
604 | }
|
---|
605 |
|
---|
606 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
607 | public System.Guid ResourceId
|
---|
608 | {
|
---|
609 | get
|
---|
610 | {
|
---|
611 | return this._ResourceId;
|
---|
612 | }
|
---|
613 | set
|
---|
614 | {
|
---|
615 | if ((this._ResourceId != value))
|
---|
616 | {
|
---|
617 | if (this._Resource1.HasLoadedOrAssignedValue)
|
---|
618 | {
|
---|
619 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
620 | }
|
---|
621 | this.OnResourceIdChanging(value);
|
---|
622 | this.SendPropertyChanging();
|
---|
623 | this._ResourceId = value;
|
---|
624 | this.SendPropertyChanged("ResourceId");
|
---|
625 | this.OnResourceIdChanged();
|
---|
626 | }
|
---|
627 | }
|
---|
628 | }
|
---|
629 |
|
---|
630 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceGroupId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
631 | public System.Guid ResourceGroupId
|
---|
632 | {
|
---|
633 | get
|
---|
634 | {
|
---|
635 | return this._ResourceGroupId;
|
---|
636 | }
|
---|
637 | set
|
---|
638 | {
|
---|
639 | if ((this._ResourceGroupId != value))
|
---|
640 | {
|
---|
641 | if (this._Resource.HasLoadedOrAssignedValue)
|
---|
642 | {
|
---|
643 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
644 | }
|
---|
645 | this.OnResourceGroupIdChanging(value);
|
---|
646 | this.SendPropertyChanging();
|
---|
647 | this._ResourceGroupId = value;
|
---|
648 | this.SendPropertyChanged("ResourceGroupId");
|
---|
649 | this.OnResourceGroupIdChanged();
|
---|
650 | }
|
---|
651 | }
|
---|
652 | }
|
---|
653 |
|
---|
654 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_Resource", ThisKey="ResourceGroupId", OtherKey="Id", IsForeignKey=true)]
|
---|
655 | public Resource Resource
|
---|
656 | {
|
---|
657 | get
|
---|
658 | {
|
---|
659 | return this._Resource.Entity;
|
---|
660 | }
|
---|
661 | set
|
---|
662 | {
|
---|
663 | Resource previousValue = this._Resource.Entity;
|
---|
664 | if (((previousValue != value)
|
---|
665 | || (this._Resource.HasLoadedOrAssignedValue == false)))
|
---|
666 | {
|
---|
667 | this.SendPropertyChanging();
|
---|
668 | if ((previousValue != null))
|
---|
669 | {
|
---|
670 | this._Resource.Entity = null;
|
---|
671 | previousValue.ResourceResourceGroups.Remove(this);
|
---|
672 | }
|
---|
673 | this._Resource.Entity = value;
|
---|
674 | if ((value != null))
|
---|
675 | {
|
---|
676 | value.ResourceResourceGroups.Add(this);
|
---|
677 | this._ResourceGroupId = value.Id;
|
---|
678 | }
|
---|
679 | else
|
---|
680 | {
|
---|
681 | this._ResourceGroupId = default(System.Guid);
|
---|
682 | }
|
---|
683 | this.SendPropertyChanged("Resource");
|
---|
684 | }
|
---|
685 | }
|
---|
686 | }
|
---|
687 |
|
---|
688 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_Resource1", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)]
|
---|
689 | public Resource Resource1
|
---|
690 | {
|
---|
691 | get
|
---|
692 | {
|
---|
693 | return this._Resource1.Entity;
|
---|
694 | }
|
---|
695 | set
|
---|
696 | {
|
---|
697 | Resource previousValue = this._Resource1.Entity;
|
---|
698 | if (((previousValue != value)
|
---|
699 | || (this._Resource1.HasLoadedOrAssignedValue == false)))
|
---|
700 | {
|
---|
701 | this.SendPropertyChanging();
|
---|
702 | if ((previousValue != null))
|
---|
703 | {
|
---|
704 | this._Resource1.Entity = null;
|
---|
705 | previousValue.ResourceResourceGroups1.Remove(this);
|
---|
706 | }
|
---|
707 | this._Resource1.Entity = value;
|
---|
708 | if ((value != null))
|
---|
709 | {
|
---|
710 | value.ResourceResourceGroups1.Add(this);
|
---|
711 | this._ResourceId = value.Id;
|
---|
712 | }
|
---|
713 | else
|
---|
714 | {
|
---|
715 | this._ResourceId = default(System.Guid);
|
---|
716 | }
|
---|
717 | this.SendPropertyChanged("Resource1");
|
---|
718 | }
|
---|
719 | }
|
---|
720 | }
|
---|
721 |
|
---|
722 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
723 |
|
---|
724 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
725 |
|
---|
726 | protected virtual void SendPropertyChanging()
|
---|
727 | {
|
---|
728 | if ((this.PropertyChanging != null))
|
---|
729 | {
|
---|
730 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
731 | }
|
---|
732 | }
|
---|
733 |
|
---|
734 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
735 | {
|
---|
736 | if ((this.PropertyChanged != null))
|
---|
737 | {
|
---|
738 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
739 | }
|
---|
740 | }
|
---|
741 | }
|
---|
742 |
|
---|
743 | [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ClientLog")]
|
---|
744 | public partial class ClientLog : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
745 | {
|
---|
746 |
|
---|
747 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
748 |
|
---|
749 | private System.DateTime _Timestamp;
|
---|
750 |
|
---|
751 | private System.Guid _ResourceId;
|
---|
752 |
|
---|
753 | private string _Message;
|
---|
754 |
|
---|
755 | private string _Exception;
|
---|
756 |
|
---|
757 | private EntityRef<Resource> _Resource;
|
---|
758 |
|
---|
759 | #region Extensibility Method Definitions
|
---|
760 | partial void OnLoaded();
|
---|
761 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
762 | partial void OnCreated();
|
---|
763 | partial void OnTimestampChanging(System.DateTime value);
|
---|
764 | partial void OnTimestampChanged();
|
---|
765 | partial void OnResourceIdChanging(System.Guid value);
|
---|
766 | partial void OnResourceIdChanged();
|
---|
767 | partial void OnMessageChanging(string value);
|
---|
768 | partial void OnMessageChanged();
|
---|
769 | partial void OnExceptionChanging(string value);
|
---|
770 | partial void OnExceptionChanged();
|
---|
771 | #endregion
|
---|
772 |
|
---|
773 | public ClientLog()
|
---|
774 | {
|
---|
775 | this._Resource = default(EntityRef<Resource>);
|
---|
776 | OnCreated();
|
---|
777 | }
|
---|
778 |
|
---|
779 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Timestamp", DbType="DateTime NOT NULL", IsPrimaryKey=true)]
|
---|
780 | public System.DateTime Timestamp
|
---|
781 | {
|
---|
782 | get
|
---|
783 | {
|
---|
784 | return this._Timestamp;
|
---|
785 | }
|
---|
786 | set
|
---|
787 | {
|
---|
788 | if ((this._Timestamp != value))
|
---|
789 | {
|
---|
790 | this.OnTimestampChanging(value);
|
---|
791 | this.SendPropertyChanging();
|
---|
792 | this._Timestamp = value;
|
---|
793 | this.SendPropertyChanged("Timestamp");
|
---|
794 | this.OnTimestampChanged();
|
---|
795 | }
|
---|
796 | }
|
---|
797 | }
|
---|
798 |
|
---|
799 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
800 | public System.Guid ResourceId
|
---|
801 | {
|
---|
802 | get
|
---|
803 | {
|
---|
804 | return this._ResourceId;
|
---|
805 | }
|
---|
806 | set
|
---|
807 | {
|
---|
808 | if ((this._ResourceId != value))
|
---|
809 | {
|
---|
810 | if (this._Resource.HasLoadedOrAssignedValue)
|
---|
811 | {
|
---|
812 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
813 | }
|
---|
814 | this.OnResourceIdChanging(value);
|
---|
815 | this.SendPropertyChanging();
|
---|
816 | this._ResourceId = value;
|
---|
817 | this.SendPropertyChanged("ResourceId");
|
---|
818 | this.OnResourceIdChanged();
|
---|
819 | }
|
---|
820 | }
|
---|
821 | }
|
---|
822 |
|
---|
823 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Message", DbType="NVarChar(MAX)")]
|
---|
824 | public string Message
|
---|
825 | {
|
---|
826 | get
|
---|
827 | {
|
---|
828 | return this._Message;
|
---|
829 | }
|
---|
830 | set
|
---|
831 | {
|
---|
832 | if ((this._Message != value))
|
---|
833 | {
|
---|
834 | this.OnMessageChanging(value);
|
---|
835 | this.SendPropertyChanging();
|
---|
836 | this._Message = value;
|
---|
837 | this.SendPropertyChanged("Message");
|
---|
838 | this.OnMessageChanged();
|
---|
839 | }
|
---|
840 | }
|
---|
841 | }
|
---|
842 |
|
---|
843 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Exception", DbType="NVarChar(MAX)")]
|
---|
844 | public string Exception
|
---|
845 | {
|
---|
846 | get
|
---|
847 | {
|
---|
848 | return this._Exception;
|
---|
849 | }
|
---|
850 | set
|
---|
851 | {
|
---|
852 | if ((this._Exception != value))
|
---|
853 | {
|
---|
854 | this.OnExceptionChanging(value);
|
---|
855 | this.SendPropertyChanging();
|
---|
856 | this._Exception = value;
|
---|
857 | this.SendPropertyChanged("Exception");
|
---|
858 | this.OnExceptionChanged();
|
---|
859 | }
|
---|
860 | }
|
---|
861 | }
|
---|
862 |
|
---|
863 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ClientLog", Storage="_Resource", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)]
|
---|
864 | public Resource Resource
|
---|
865 | {
|
---|
866 | get
|
---|
867 | {
|
---|
868 | return this._Resource.Entity;
|
---|
869 | }
|
---|
870 | set
|
---|
871 | {
|
---|
872 | Resource previousValue = this._Resource.Entity;
|
---|
873 | if (((previousValue != value)
|
---|
874 | || (this._Resource.HasLoadedOrAssignedValue == false)))
|
---|
875 | {
|
---|
876 | this.SendPropertyChanging();
|
---|
877 | if ((previousValue != null))
|
---|
878 | {
|
---|
879 | this._Resource.Entity = null;
|
---|
880 | previousValue.ClientLogs.Remove(this);
|
---|
881 | }
|
---|
882 | this._Resource.Entity = value;
|
---|
883 | if ((value != null))
|
---|
884 | {
|
---|
885 | value.ClientLogs.Add(this);
|
---|
886 | this._ResourceId = value.Id;
|
---|
887 | }
|
---|
888 | else
|
---|
889 | {
|
---|
890 | this._ResourceId = default(System.Guid);
|
---|
891 | }
|
---|
892 | this.SendPropertyChanged("Resource");
|
---|
893 | }
|
---|
894 | }
|
---|
895 | }
|
---|
896 |
|
---|
897 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
898 |
|
---|
899 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
900 |
|
---|
901 | protected virtual void SendPropertyChanging()
|
---|
902 | {
|
---|
903 | if ((this.PropertyChanging != null))
|
---|
904 | {
|
---|
905 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
906 | }
|
---|
907 | }
|
---|
908 |
|
---|
909 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
910 | {
|
---|
911 | if ((this.PropertyChanged != null))
|
---|
912 | {
|
---|
913 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
914 | }
|
---|
915 | }
|
---|
916 | }
|
---|
917 |
|
---|
918 | [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.[User]")]
|
---|
919 | public partial class User : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
920 | {
|
---|
921 |
|
---|
922 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
923 |
|
---|
924 | private System.Guid _Id;
|
---|
925 |
|
---|
926 | private string _FullName;
|
---|
927 |
|
---|
928 | private EntitySet<UserUserGroup> _UserUserGroups;
|
---|
929 |
|
---|
930 | #region Extensibility Method Definitions
|
---|
931 | partial void OnLoaded();
|
---|
932 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
933 | partial void OnCreated();
|
---|
934 | partial void OnIdChanging(System.Guid value);
|
---|
935 | partial void OnIdChanged();
|
---|
936 | partial void OnFullNameChanging(string value);
|
---|
937 | partial void OnFullNameChanged();
|
---|
938 | #endregion
|
---|
939 |
|
---|
940 | public User()
|
---|
941 | {
|
---|
942 | this._UserUserGroups = new EntitySet<UserUserGroup>(new Action<UserUserGroup>(this.attach_UserUserGroups), new Action<UserUserGroup>(this.detach_UserUserGroups));
|
---|
943 | OnCreated();
|
---|
944 | }
|
---|
945 |
|
---|
946 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
947 | public System.Guid Id
|
---|
948 | {
|
---|
949 | get
|
---|
950 | {
|
---|
951 | return this._Id;
|
---|
952 | }
|
---|
953 | set
|
---|
954 | {
|
---|
955 | if ((this._Id != value))
|
---|
956 | {
|
---|
957 | this.OnIdChanging(value);
|
---|
958 | this.SendPropertyChanging();
|
---|
959 | this._Id = value;
|
---|
960 | this.SendPropertyChanged("Id");
|
---|
961 | this.OnIdChanged();
|
---|
962 | }
|
---|
963 | }
|
---|
964 | }
|
---|
965 |
|
---|
966 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FullName", DbType="NVarChar(MAX)")]
|
---|
967 | public string FullName
|
---|
968 | {
|
---|
969 | get
|
---|
970 | {
|
---|
971 | return this._FullName;
|
---|
972 | }
|
---|
973 | set
|
---|
974 | {
|
---|
975 | if ((this._FullName != value))
|
---|
976 | {
|
---|
977 | this.OnFullNameChanging(value);
|
---|
978 | this.SendPropertyChanging();
|
---|
979 | this._FullName = value;
|
---|
980 | this.SendPropertyChanged("FullName");
|
---|
981 | this.OnFullNameChanged();
|
---|
982 | }
|
---|
983 | }
|
---|
984 | }
|
---|
985 |
|
---|
986 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserUserGroup", Storage="_UserUserGroups", ThisKey="Id", OtherKey="UserId")]
|
---|
987 | public EntitySet<UserUserGroup> UserUserGroups
|
---|
988 | {
|
---|
989 | get
|
---|
990 | {
|
---|
991 | return this._UserUserGroups;
|
---|
992 | }
|
---|
993 | set
|
---|
994 | {
|
---|
995 | this._UserUserGroups.Assign(value);
|
---|
996 | }
|
---|
997 | }
|
---|
998 |
|
---|
999 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
1000 |
|
---|
1001 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
1002 |
|
---|
1003 | protected virtual void SendPropertyChanging()
|
---|
1004 | {
|
---|
1005 | if ((this.PropertyChanging != null))
|
---|
1006 | {
|
---|
1007 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
1008 | }
|
---|
1009 | }
|
---|
1010 |
|
---|
1011 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
1012 | {
|
---|
1013 | if ((this.PropertyChanged != null))
|
---|
1014 | {
|
---|
1015 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
1016 | }
|
---|
1017 | }
|
---|
1018 |
|
---|
1019 | private void attach_UserUserGroups(UserUserGroup entity)
|
---|
1020 | {
|
---|
1021 | this.SendPropertyChanging();
|
---|
1022 | entity.User = this;
|
---|
1023 | }
|
---|
1024 |
|
---|
1025 | private void detach_UserUserGroups(UserUserGroup entity)
|
---|
1026 | {
|
---|
1027 | this.SendPropertyChanging();
|
---|
1028 | entity.User = null;
|
---|
1029 | }
|
---|
1030 | }
|
---|
1031 |
|
---|
1032 | [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserGroup")]
|
---|
1033 | public partial class UserGroup : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
1034 | {
|
---|
1035 |
|
---|
1036 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
1037 |
|
---|
1038 | private System.Guid _Id;
|
---|
1039 |
|
---|
1040 | private string _Name;
|
---|
1041 |
|
---|
1042 | private System.Nullable<System.Guid> _ParentUserGroup;
|
---|
1043 |
|
---|
1044 | private EntitySet<UserUserGroup> _UserUserGroups;
|
---|
1045 |
|
---|
1046 | #region Extensibility Method Definitions
|
---|
1047 | partial void OnLoaded();
|
---|
1048 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
1049 | partial void OnCreated();
|
---|
1050 | partial void OnIdChanging(System.Guid value);
|
---|
1051 | partial void OnIdChanged();
|
---|
1052 | partial void OnNameChanging(string value);
|
---|
1053 | partial void OnNameChanged();
|
---|
1054 | partial void OnParentUserGroupChanging(System.Nullable<System.Guid> value);
|
---|
1055 | partial void OnParentUserGroupChanged();
|
---|
1056 | #endregion
|
---|
1057 |
|
---|
1058 | public UserGroup()
|
---|
1059 | {
|
---|
1060 | this._UserUserGroups = new EntitySet<UserUserGroup>(new Action<UserUserGroup>(this.attach_UserUserGroups), new Action<UserUserGroup>(this.detach_UserUserGroups));
|
---|
1061 | OnCreated();
|
---|
1062 | }
|
---|
1063 |
|
---|
1064 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
1065 | public System.Guid Id
|
---|
1066 | {
|
---|
1067 | get
|
---|
1068 | {
|
---|
1069 | return this._Id;
|
---|
1070 | }
|
---|
1071 | set
|
---|
1072 | {
|
---|
1073 | if ((this._Id != value))
|
---|
1074 | {
|
---|
1075 | this.OnIdChanging(value);
|
---|
1076 | this.SendPropertyChanging();
|
---|
1077 | this._Id = value;
|
---|
1078 | this.SendPropertyChanged("Id");
|
---|
1079 | this.OnIdChanged();
|
---|
1080 | }
|
---|
1081 | }
|
---|
1082 | }
|
---|
1083 |
|
---|
1084 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false)]
|
---|
1085 | public string Name
|
---|
1086 | {
|
---|
1087 | get
|
---|
1088 | {
|
---|
1089 | return this._Name;
|
---|
1090 | }
|
---|
1091 | set
|
---|
1092 | {
|
---|
1093 | if ((this._Name != value))
|
---|
1094 | {
|
---|
1095 | this.OnNameChanging(value);
|
---|
1096 | this.SendPropertyChanging();
|
---|
1097 | this._Name = value;
|
---|
1098 | this.SendPropertyChanged("Name");
|
---|
1099 | this.OnNameChanged();
|
---|
1100 | }
|
---|
1101 | }
|
---|
1102 | }
|
---|
1103 |
|
---|
1104 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentUserGroup", DbType="UniqueIdentifier")]
|
---|
1105 | public System.Nullable<System.Guid> ParentUserGroup
|
---|
1106 | {
|
---|
1107 | get
|
---|
1108 | {
|
---|
1109 | return this._ParentUserGroup;
|
---|
1110 | }
|
---|
1111 | set
|
---|
1112 | {
|
---|
1113 | if ((this._ParentUserGroup != value))
|
---|
1114 | {
|
---|
1115 | this.OnParentUserGroupChanging(value);
|
---|
1116 | this.SendPropertyChanging();
|
---|
1117 | this._ParentUserGroup = value;
|
---|
1118 | this.SendPropertyChanged("ParentUserGroup");
|
---|
1119 | this.OnParentUserGroupChanged();
|
---|
1120 | }
|
---|
1121 | }
|
---|
1122 | }
|
---|
1123 |
|
---|
1124 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="UserGroup_UserUserGroup", Storage="_UserUserGroups", ThisKey="Id", OtherKey="UserGroupId")]
|
---|
1125 | public EntitySet<UserUserGroup> UserUserGroups
|
---|
1126 | {
|
---|
1127 | get
|
---|
1128 | {
|
---|
1129 | return this._UserUserGroups;
|
---|
1130 | }
|
---|
1131 | set
|
---|
1132 | {
|
---|
1133 | this._UserUserGroups.Assign(value);
|
---|
1134 | }
|
---|
1135 | }
|
---|
1136 |
|
---|
1137 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
1138 |
|
---|
1139 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
1140 |
|
---|
1141 | protected virtual void SendPropertyChanging()
|
---|
1142 | {
|
---|
1143 | if ((this.PropertyChanging != null))
|
---|
1144 | {
|
---|
1145 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
1146 | }
|
---|
1147 | }
|
---|
1148 |
|
---|
1149 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
1150 | {
|
---|
1151 | if ((this.PropertyChanged != null))
|
---|
1152 | {
|
---|
1153 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
1154 | }
|
---|
1155 | }
|
---|
1156 |
|
---|
1157 | private void attach_UserUserGroups(UserUserGroup entity)
|
---|
1158 | {
|
---|
1159 | this.SendPropertyChanging();
|
---|
1160 | entity.UserGroup = this;
|
---|
1161 | }
|
---|
1162 |
|
---|
1163 | private void detach_UserUserGroups(UserUserGroup entity)
|
---|
1164 | {
|
---|
1165 | this.SendPropertyChanging();
|
---|
1166 | entity.UserGroup = null;
|
---|
1167 | }
|
---|
1168 | }
|
---|
1169 |
|
---|
1170 | [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserUserGroup")]
|
---|
1171 | public partial class UserUserGroup : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
1172 | {
|
---|
1173 |
|
---|
1174 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
1175 |
|
---|
1176 | private System.Guid _UserId;
|
---|
1177 |
|
---|
1178 | private System.Guid _UserGroupId;
|
---|
1179 |
|
---|
1180 | private EntityRef<User> _User;
|
---|
1181 |
|
---|
1182 | private EntityRef<UserGroup> _UserGroup;
|
---|
1183 |
|
---|
1184 | #region Extensibility Method Definitions
|
---|
1185 | partial void OnLoaded();
|
---|
1186 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
1187 | partial void OnCreated();
|
---|
1188 | partial void OnUserIdChanging(System.Guid value);
|
---|
1189 | partial void OnUserIdChanged();
|
---|
1190 | partial void OnUserGroupIdChanging(System.Guid value);
|
---|
1191 | partial void OnUserGroupIdChanged();
|
---|
1192 | #endregion
|
---|
1193 |
|
---|
1194 | public UserUserGroup()
|
---|
1195 | {
|
---|
1196 | this._User = default(EntityRef<User>);
|
---|
1197 | this._UserGroup = default(EntityRef<UserGroup>);
|
---|
1198 | OnCreated();
|
---|
1199 | }
|
---|
1200 |
|
---|
1201 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
1202 | public System.Guid UserId
|
---|
1203 | {
|
---|
1204 | get
|
---|
1205 | {
|
---|
1206 | return this._UserId;
|
---|
1207 | }
|
---|
1208 | set
|
---|
1209 | {
|
---|
1210 | if ((this._UserId != value))
|
---|
1211 | {
|
---|
1212 | if (this._User.HasLoadedOrAssignedValue)
|
---|
1213 | {
|
---|
1214 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
1215 | }
|
---|
1216 | this.OnUserIdChanging(value);
|
---|
1217 | this.SendPropertyChanging();
|
---|
1218 | this._UserId = value;
|
---|
1219 | this.SendPropertyChanged("UserId");
|
---|
1220 | this.OnUserIdChanged();
|
---|
1221 | }
|
---|
1222 | }
|
---|
1223 | }
|
---|
1224 |
|
---|
1225 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserGroupId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
1226 | public System.Guid UserGroupId
|
---|
1227 | {
|
---|
1228 | get
|
---|
1229 | {
|
---|
1230 | return this._UserGroupId;
|
---|
1231 | }
|
---|
1232 | set
|
---|
1233 | {
|
---|
1234 | if ((this._UserGroupId != value))
|
---|
1235 | {
|
---|
1236 | if (this._UserGroup.HasLoadedOrAssignedValue)
|
---|
1237 | {
|
---|
1238 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
1239 | }
|
---|
1240 | this.OnUserGroupIdChanging(value);
|
---|
1241 | this.SendPropertyChanging();
|
---|
1242 | this._UserGroupId = value;
|
---|
1243 | this.SendPropertyChanged("UserGroupId");
|
---|
1244 | this.OnUserGroupIdChanged();
|
---|
1245 | }
|
---|
1246 | }
|
---|
1247 | }
|
---|
1248 |
|
---|
1249 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="User_UserUserGroup", Storage="_User", ThisKey="UserId", OtherKey="Id", IsForeignKey=true)]
|
---|
1250 | public User User
|
---|
1251 | {
|
---|
1252 | get
|
---|
1253 | {
|
---|
1254 | return this._User.Entity;
|
---|
1255 | }
|
---|
1256 | set
|
---|
1257 | {
|
---|
1258 | User previousValue = this._User.Entity;
|
---|
1259 | if (((previousValue != value)
|
---|
1260 | || (this._User.HasLoadedOrAssignedValue == false)))
|
---|
1261 | {
|
---|
1262 | this.SendPropertyChanging();
|
---|
1263 | if ((previousValue != null))
|
---|
1264 | {
|
---|
1265 | this._User.Entity = null;
|
---|
1266 | previousValue.UserUserGroups.Remove(this);
|
---|
1267 | }
|
---|
1268 | this._User.Entity = value;
|
---|
1269 | if ((value != null))
|
---|
1270 | {
|
---|
1271 | value.UserUserGroups.Add(this);
|
---|
1272 | this._UserId = value.Id;
|
---|
1273 | }
|
---|
1274 | else
|
---|
1275 | {
|
---|
1276 | this._UserId = default(System.Guid);
|
---|
1277 | }
|
---|
1278 | this.SendPropertyChanged("User");
|
---|
1279 | }
|
---|
1280 | }
|
---|
1281 | }
|
---|
1282 |
|
---|
1283 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="UserGroup_UserUserGroup", Storage="_UserGroup", ThisKey="UserGroupId", OtherKey="Id", IsForeignKey=true)]
|
---|
1284 | public UserGroup UserGroup
|
---|
1285 | {
|
---|
1286 | get
|
---|
1287 | {
|
---|
1288 | return this._UserGroup.Entity;
|
---|
1289 | }
|
---|
1290 | set
|
---|
1291 | {
|
---|
1292 | UserGroup previousValue = this._UserGroup.Entity;
|
---|
1293 | if (((previousValue != value)
|
---|
1294 | || (this._UserGroup.HasLoadedOrAssignedValue == false)))
|
---|
1295 | {
|
---|
1296 | this.SendPropertyChanging();
|
---|
1297 | if ((previousValue != null))
|
---|
1298 | {
|
---|
1299 | this._UserGroup.Entity = null;
|
---|
1300 | previousValue.UserUserGroups.Remove(this);
|
---|
1301 | }
|
---|
1302 | this._UserGroup.Entity = value;
|
---|
1303 | if ((value != null))
|
---|
1304 | {
|
---|
1305 | value.UserUserGroups.Add(this);
|
---|
1306 | this._UserGroupId = value.Id;
|
---|
1307 | }
|
---|
1308 | else
|
---|
1309 | {
|
---|
1310 | this._UserGroupId = default(System.Guid);
|
---|
1311 | }
|
---|
1312 | this.SendPropertyChanged("UserGroup");
|
---|
1313 | }
|
---|
1314 | }
|
---|
1315 | }
|
---|
1316 |
|
---|
1317 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
1318 |
|
---|
1319 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
1320 |
|
---|
1321 | protected virtual void SendPropertyChanging()
|
---|
1322 | {
|
---|
1323 | if ((this.PropertyChanging != null))
|
---|
1324 | {
|
---|
1325 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
1326 | }
|
---|
1327 | }
|
---|
1328 |
|
---|
1329 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
1330 | {
|
---|
1331 | if ((this.PropertyChanged != null))
|
---|
1332 | {
|
---|
1333 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
1334 | }
|
---|
1335 | }
|
---|
1336 | }
|
---|
1337 | }
|
---|
1338 | #pragma warning restore 1591
|
---|