1 | #pragma warning disable 1591
|
---|
2 | //------------------------------------------------------------------------------
|
---|
3 | // <auto-generated>
|
---|
4 | // This code was generated by a tool.
|
---|
5 | // Runtime Version:4.0.30319.1
|
---|
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.Authentication.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 | public partial class ClientManagmentDataContext : 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 InsertResource(Resource instance);
|
---|
33 | partial void UpdateResource(Resource instance);
|
---|
34 | partial void DeleteResource(Resource instance);
|
---|
35 | partial void InsertResourceResourceGroup(ResourceResourceGroup instance);
|
---|
36 | partial void UpdateResourceResourceGroup(ResourceResourceGroup instance);
|
---|
37 | partial void DeleteResourceResourceGroup(ResourceResourceGroup instance);
|
---|
38 | #endregion
|
---|
39 |
|
---|
40 | public ClientManagmentDataContext() :
|
---|
41 | base(global::HeuristicLab.Services.Authentication.DataAccess.Properties.Settings.Default.ClientManagementConnectionString, mappingSource)
|
---|
42 | {
|
---|
43 | OnCreated();
|
---|
44 | }
|
---|
45 |
|
---|
46 | public ClientManagmentDataContext(string connection) :
|
---|
47 | base(connection, mappingSource)
|
---|
48 | {
|
---|
49 | OnCreated();
|
---|
50 | }
|
---|
51 |
|
---|
52 | public ClientManagmentDataContext(System.Data.IDbConnection connection) :
|
---|
53 | base(connection, mappingSource)
|
---|
54 | {
|
---|
55 | OnCreated();
|
---|
56 | }
|
---|
57 |
|
---|
58 | public ClientManagmentDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
59 | base(connection, mappingSource)
|
---|
60 | {
|
---|
61 | OnCreated();
|
---|
62 | }
|
---|
63 |
|
---|
64 | public ClientManagmentDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
65 | base(connection, mappingSource)
|
---|
66 | {
|
---|
67 | OnCreated();
|
---|
68 | }
|
---|
69 |
|
---|
70 | public System.Data.Linq.Table<Resource> Resources
|
---|
71 | {
|
---|
72 | get
|
---|
73 | {
|
---|
74 | return this.GetTable<Resource>();
|
---|
75 | }
|
---|
76 | }
|
---|
77 |
|
---|
78 | public System.Data.Linq.Table<ResourceResourceGroup> ResourceResourceGroups
|
---|
79 | {
|
---|
80 | get
|
---|
81 | {
|
---|
82 | return this.GetTable<ResourceResourceGroup>();
|
---|
83 | }
|
---|
84 | }
|
---|
85 | }
|
---|
86 |
|
---|
87 | [global::System.Data.Linq.Mapping.TableAttribute(Name="")]
|
---|
88 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Resource", Type=typeof(Resource))]
|
---|
89 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="Client", Type=typeof(Client))]
|
---|
90 | [global::System.Data.Linq.Mapping.InheritanceMappingAttribute(Code="ResourceGroup", Type=typeof(ResourceGroup), IsDefault=true)]
|
---|
91 | public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
92 | {
|
---|
93 |
|
---|
94 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
95 |
|
---|
96 | private System.Guid _ResourceID;
|
---|
97 |
|
---|
98 | private string _Name;
|
---|
99 |
|
---|
100 | private string _Description;
|
---|
101 |
|
---|
102 | private string _ResourceType;
|
---|
103 |
|
---|
104 | private EntitySet<ResourceResourceGroup> _ResourceResourceGroups;
|
---|
105 |
|
---|
106 | private EntitySet<ResourceResourceGroup> _ResourceResourceGroups1;
|
---|
107 |
|
---|
108 | #region Extensibility Method Definitions
|
---|
109 | partial void OnLoaded();
|
---|
110 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
111 | partial void OnCreated();
|
---|
112 | partial void OnIdChanging(System.Guid value);
|
---|
113 | partial void OnIdChanged();
|
---|
114 | partial void OnNameChanging(string value);
|
---|
115 | partial void OnNameChanged();
|
---|
116 | partial void OnDescriptionChanging(string value);
|
---|
117 | partial void OnDescriptionChanged();
|
---|
118 | partial void OnResourceTypeChanging(string value);
|
---|
119 | partial void OnResourceTypeChanged();
|
---|
120 | #endregion
|
---|
121 |
|
---|
122 | public Resource()
|
---|
123 | {
|
---|
124 | this._ResourceResourceGroups = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups));
|
---|
125 | this._ResourceResourceGroups1 = new EntitySet<ResourceResourceGroup>(new Action<ResourceResourceGroup>(this.attach_ResourceResourceGroups1), new Action<ResourceResourceGroup>(this.detach_ResourceResourceGroups1));
|
---|
126 | OnCreated();
|
---|
127 | }
|
---|
128 |
|
---|
129 | [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ResourceID", Storage="_ResourceID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true)]
|
---|
130 | public System.Guid Id
|
---|
131 | {
|
---|
132 | get
|
---|
133 | {
|
---|
134 | return this._ResourceID;
|
---|
135 | }
|
---|
136 | set
|
---|
137 | {
|
---|
138 | if ((this._ResourceID != value))
|
---|
139 | {
|
---|
140 | this.OnIdChanging(value);
|
---|
141 | this.SendPropertyChanging();
|
---|
142 | this._ResourceID = value;
|
---|
143 | this.SendPropertyChanged("Id");
|
---|
144 | this.OnIdChanged();
|
---|
145 | }
|
---|
146 | }
|
---|
147 | }
|
---|
148 |
|
---|
149 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", CanBeNull=false)]
|
---|
150 | public string Name
|
---|
151 | {
|
---|
152 | get
|
---|
153 | {
|
---|
154 | return this._Name;
|
---|
155 | }
|
---|
156 | set
|
---|
157 | {
|
---|
158 | if ((this._Name != value))
|
---|
159 | {
|
---|
160 | this.OnNameChanging(value);
|
---|
161 | this.SendPropertyChanging();
|
---|
162 | this._Name = value;
|
---|
163 | this.SendPropertyChanged("Name");
|
---|
164 | this.OnNameChanged();
|
---|
165 | }
|
---|
166 | }
|
---|
167 | }
|
---|
168 |
|
---|
169 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description")]
|
---|
170 | public string Description
|
---|
171 | {
|
---|
172 | get
|
---|
173 | {
|
---|
174 | return this._Description;
|
---|
175 | }
|
---|
176 | set
|
---|
177 | {
|
---|
178 | if ((this._Description != value))
|
---|
179 | {
|
---|
180 | this.OnDescriptionChanging(value);
|
---|
181 | this.SendPropertyChanging();
|
---|
182 | this._Description = value;
|
---|
183 | this.SendPropertyChanged("Description");
|
---|
184 | this.OnDescriptionChanged();
|
---|
185 | }
|
---|
186 | }
|
---|
187 | }
|
---|
188 |
|
---|
189 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceType", CanBeNull=false, IsDiscriminator=true)]
|
---|
190 | public string ResourceType
|
---|
191 | {
|
---|
192 | get
|
---|
193 | {
|
---|
194 | return this._ResourceType;
|
---|
195 | }
|
---|
196 | set
|
---|
197 | {
|
---|
198 | if ((this._ResourceType != value))
|
---|
199 | {
|
---|
200 | this.OnResourceTypeChanging(value);
|
---|
201 | this.SendPropertyChanging();
|
---|
202 | this._ResourceType = value;
|
---|
203 | this.SendPropertyChanged("ResourceType");
|
---|
204 | this.OnResourceTypeChanged();
|
---|
205 | }
|
---|
206 | }
|
---|
207 | }
|
---|
208 |
|
---|
209 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_ResourceResourceGroups", ThisKey="Id", OtherKey="ResourceId")]
|
---|
210 | public EntitySet<ResourceResourceGroup> Clients
|
---|
211 | {
|
---|
212 | get
|
---|
213 | {
|
---|
214 | return this._ResourceResourceGroups;
|
---|
215 | }
|
---|
216 | set
|
---|
217 | {
|
---|
218 | this._ResourceResourceGroups.Assign(value);
|
---|
219 | }
|
---|
220 | }
|
---|
221 |
|
---|
222 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_ResourceResourceGroups1", ThisKey="Id", OtherKey="ResourceGroupId")]
|
---|
223 | public EntitySet<ResourceResourceGroup> ResourceGroups
|
---|
224 | {
|
---|
225 | get
|
---|
226 | {
|
---|
227 | return this._ResourceResourceGroups1;
|
---|
228 | }
|
---|
229 | set
|
---|
230 | {
|
---|
231 | this._ResourceResourceGroups1.Assign(value);
|
---|
232 | }
|
---|
233 | }
|
---|
234 |
|
---|
235 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
236 |
|
---|
237 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
238 |
|
---|
239 | protected virtual void SendPropertyChanging()
|
---|
240 | {
|
---|
241 | if ((this.PropertyChanging != null))
|
---|
242 | {
|
---|
243 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
244 | }
|
---|
245 | }
|
---|
246 |
|
---|
247 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
248 | {
|
---|
249 | if ((this.PropertyChanged != null))
|
---|
250 | {
|
---|
251 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
252 | }
|
---|
253 | }
|
---|
254 |
|
---|
255 | private void attach_ResourceResourceGroups(ResourceResourceGroup entity)
|
---|
256 | {
|
---|
257 | this.SendPropertyChanging();
|
---|
258 | entity.Client = this;
|
---|
259 | }
|
---|
260 |
|
---|
261 | private void detach_ResourceResourceGroups(ResourceResourceGroup entity)
|
---|
262 | {
|
---|
263 | this.SendPropertyChanging();
|
---|
264 | entity.Client = null;
|
---|
265 | }
|
---|
266 |
|
---|
267 | private void attach_ResourceResourceGroups1(ResourceResourceGroup entity)
|
---|
268 | {
|
---|
269 | this.SendPropertyChanging();
|
---|
270 | entity.ResourceGroup = this;
|
---|
271 | }
|
---|
272 |
|
---|
273 | private void detach_ResourceResourceGroups1(ResourceResourceGroup entity)
|
---|
274 | {
|
---|
275 | this.SendPropertyChanging();
|
---|
276 | entity.ResourceGroup = null;
|
---|
277 | }
|
---|
278 | }
|
---|
279 |
|
---|
280 | public partial class Client : Resource
|
---|
281 | {
|
---|
282 |
|
---|
283 | private string _ProcessorType;
|
---|
284 |
|
---|
285 | private string _NumberOfProcessors;
|
---|
286 |
|
---|
287 | private string _NumberOfThreads;
|
---|
288 |
|
---|
289 | private string _IPAdress;
|
---|
290 |
|
---|
291 | private string _MemorySize;
|
---|
292 |
|
---|
293 | private string _OperatingSystem;
|
---|
294 |
|
---|
295 | #region Extensibility Method Definitions
|
---|
296 | partial void OnLoaded();
|
---|
297 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
298 | partial void OnCreated();
|
---|
299 | partial void OnProcessorTypeChanging(string value);
|
---|
300 | partial void OnProcessorTypeChanged();
|
---|
301 | partial void OnNumberOfProcessorsChanging(string value);
|
---|
302 | partial void OnNumberOfProcessorsChanged();
|
---|
303 | partial void OnNumberOfThreadsChanging(string value);
|
---|
304 | partial void OnNumberOfThreadsChanged();
|
---|
305 | partial void OnIPAdressChanging(string value);
|
---|
306 | partial void OnIPAdressChanged();
|
---|
307 | partial void OnMemorySizeChanging(string value);
|
---|
308 | partial void OnMemorySizeChanged();
|
---|
309 | partial void OnOperatingSystemChanging(string value);
|
---|
310 | partial void OnOperatingSystemChanged();
|
---|
311 | #endregion
|
---|
312 |
|
---|
313 | public Client()
|
---|
314 | {
|
---|
315 | OnCreated();
|
---|
316 | }
|
---|
317 |
|
---|
318 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcessorType")]
|
---|
319 | public string ProcessorType
|
---|
320 | {
|
---|
321 | get
|
---|
322 | {
|
---|
323 | return this._ProcessorType;
|
---|
324 | }
|
---|
325 | set
|
---|
326 | {
|
---|
327 | if ((this._ProcessorType != value))
|
---|
328 | {
|
---|
329 | this.OnProcessorTypeChanging(value);
|
---|
330 | this.SendPropertyChanging();
|
---|
331 | this._ProcessorType = value;
|
---|
332 | this.SendPropertyChanged("ProcessorType");
|
---|
333 | this.OnProcessorTypeChanged();
|
---|
334 | }
|
---|
335 | }
|
---|
336 | }
|
---|
337 |
|
---|
338 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfProcessors")]
|
---|
339 | public string NumberOfProcessors
|
---|
340 | {
|
---|
341 | get
|
---|
342 | {
|
---|
343 | return this._NumberOfProcessors;
|
---|
344 | }
|
---|
345 | set
|
---|
346 | {
|
---|
347 | if ((this._NumberOfProcessors != value))
|
---|
348 | {
|
---|
349 | this.OnNumberOfProcessorsChanging(value);
|
---|
350 | this.SendPropertyChanging();
|
---|
351 | this._NumberOfProcessors = value;
|
---|
352 | this.SendPropertyChanged("NumberOfProcessors");
|
---|
353 | this.OnNumberOfProcessorsChanged();
|
---|
354 | }
|
---|
355 | }
|
---|
356 | }
|
---|
357 |
|
---|
358 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfThreads")]
|
---|
359 | public string NumberOfThreads
|
---|
360 | {
|
---|
361 | get
|
---|
362 | {
|
---|
363 | return this._NumberOfThreads;
|
---|
364 | }
|
---|
365 | set
|
---|
366 | {
|
---|
367 | if ((this._NumberOfThreads != value))
|
---|
368 | {
|
---|
369 | this.OnNumberOfThreadsChanging(value);
|
---|
370 | this.SendPropertyChanging();
|
---|
371 | this._NumberOfThreads = value;
|
---|
372 | this.SendPropertyChanged("NumberOfThreads");
|
---|
373 | this.OnNumberOfThreadsChanged();
|
---|
374 | }
|
---|
375 | }
|
---|
376 | }
|
---|
377 |
|
---|
378 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdress")]
|
---|
379 | public string IPAdress
|
---|
380 | {
|
---|
381 | get
|
---|
382 | {
|
---|
383 | return this._IPAdress;
|
---|
384 | }
|
---|
385 | set
|
---|
386 | {
|
---|
387 | if ((this._IPAdress != value))
|
---|
388 | {
|
---|
389 | this.OnIPAdressChanging(value);
|
---|
390 | this.SendPropertyChanging();
|
---|
391 | this._IPAdress = value;
|
---|
392 | this.SendPropertyChanged("IPAdress");
|
---|
393 | this.OnIPAdressChanged();
|
---|
394 | }
|
---|
395 | }
|
---|
396 | }
|
---|
397 |
|
---|
398 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemorySize")]
|
---|
399 | public string MemorySize
|
---|
400 | {
|
---|
401 | get
|
---|
402 | {
|
---|
403 | return this._MemorySize;
|
---|
404 | }
|
---|
405 | set
|
---|
406 | {
|
---|
407 | if ((this._MemorySize != value))
|
---|
408 | {
|
---|
409 | this.OnMemorySizeChanging(value);
|
---|
410 | this.SendPropertyChanging();
|
---|
411 | this._MemorySize = value;
|
---|
412 | this.SendPropertyChanged("MemorySize");
|
---|
413 | this.OnMemorySizeChanged();
|
---|
414 | }
|
---|
415 | }
|
---|
416 | }
|
---|
417 |
|
---|
418 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingSystem")]
|
---|
419 | public string OperatingSystem
|
---|
420 | {
|
---|
421 | get
|
---|
422 | {
|
---|
423 | return this._OperatingSystem;
|
---|
424 | }
|
---|
425 | set
|
---|
426 | {
|
---|
427 | if ((this._OperatingSystem != value))
|
---|
428 | {
|
---|
429 | this.OnOperatingSystemChanging(value);
|
---|
430 | this.SendPropertyChanging();
|
---|
431 | this._OperatingSystem = value;
|
---|
432 | this.SendPropertyChanged("OperatingSystem");
|
---|
433 | this.OnOperatingSystemChanged();
|
---|
434 | }
|
---|
435 | }
|
---|
436 | }
|
---|
437 | }
|
---|
438 |
|
---|
439 | public partial class ResourceGroup : Resource
|
---|
440 | {
|
---|
441 |
|
---|
442 | #region Extensibility Method Definitions
|
---|
443 | partial void OnLoaded();
|
---|
444 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
445 | partial void OnCreated();
|
---|
446 | #endregion
|
---|
447 |
|
---|
448 | public ResourceGroup()
|
---|
449 | {
|
---|
450 | OnCreated();
|
---|
451 | }
|
---|
452 | }
|
---|
453 |
|
---|
454 | [global::System.Data.Linq.Mapping.TableAttribute(Name="")]
|
---|
455 | public partial class ResourceResourceGroup : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
456 | {
|
---|
457 |
|
---|
458 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
459 |
|
---|
460 | private System.Guid _ResourceID;
|
---|
461 |
|
---|
462 | private System.Guid _ResourceGroupID;
|
---|
463 |
|
---|
464 | private EntityRef<Resource> _Resource;
|
---|
465 |
|
---|
466 | private EntityRef<Resource> _Resource1;
|
---|
467 |
|
---|
468 | #region Extensibility Method Definitions
|
---|
469 | partial void OnLoaded();
|
---|
470 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
471 | partial void OnCreated();
|
---|
472 | partial void OnResourceIdChanging(System.Guid value);
|
---|
473 | partial void OnResourceIdChanged();
|
---|
474 | partial void OnResourceGroupIdChanging(System.Guid value);
|
---|
475 | partial void OnResourceGroupIdChanged();
|
---|
476 | #endregion
|
---|
477 |
|
---|
478 | public ResourceResourceGroup()
|
---|
479 | {
|
---|
480 | this._Resource = default(EntityRef<Resource>);
|
---|
481 | this._Resource1 = default(EntityRef<Resource>);
|
---|
482 | OnCreated();
|
---|
483 | }
|
---|
484 |
|
---|
485 | [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ResourceID", Storage="_ResourceID", IsPrimaryKey=true)]
|
---|
486 | public System.Guid ResourceId
|
---|
487 | {
|
---|
488 | get
|
---|
489 | {
|
---|
490 | return this._ResourceID;
|
---|
491 | }
|
---|
492 | set
|
---|
493 | {
|
---|
494 | if ((this._ResourceID != value))
|
---|
495 | {
|
---|
496 | this.OnResourceIdChanging(value);
|
---|
497 | this.SendPropertyChanging();
|
---|
498 | this._ResourceID = value;
|
---|
499 | this.SendPropertyChanged("ResourceId");
|
---|
500 | this.OnResourceIdChanged();
|
---|
501 | }
|
---|
502 | }
|
---|
503 | }
|
---|
504 |
|
---|
505 | [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ResourceGroupID", Storage="_ResourceGroupID", IsPrimaryKey=true)]
|
---|
506 | public System.Guid ResourceGroupId
|
---|
507 | {
|
---|
508 | get
|
---|
509 | {
|
---|
510 | return this._ResourceGroupID;
|
---|
511 | }
|
---|
512 | set
|
---|
513 | {
|
---|
514 | if ((this._ResourceGroupID != value))
|
---|
515 | {
|
---|
516 | this.OnResourceGroupIdChanging(value);
|
---|
517 | this.SendPropertyChanging();
|
---|
518 | this._ResourceGroupID = value;
|
---|
519 | this.SendPropertyChanged("ResourceGroupId");
|
---|
520 | this.OnResourceGroupIdChanged();
|
---|
521 | }
|
---|
522 | }
|
---|
523 | }
|
---|
524 |
|
---|
525 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup", Storage="_Resource", ThisKey="ResourceId", OtherKey="Id", IsForeignKey=true)]
|
---|
526 | public Resource Client
|
---|
527 | {
|
---|
528 | get
|
---|
529 | {
|
---|
530 | return this._Resource.Entity;
|
---|
531 | }
|
---|
532 | set
|
---|
533 | {
|
---|
534 | Resource previousValue = this._Resource.Entity;
|
---|
535 | if (((previousValue != value)
|
---|
536 | || (this._Resource.HasLoadedOrAssignedValue == false)))
|
---|
537 | {
|
---|
538 | this.SendPropertyChanging();
|
---|
539 | if ((previousValue != null))
|
---|
540 | {
|
---|
541 | this._Resource.Entity = null;
|
---|
542 | previousValue.Clients.Remove(this);
|
---|
543 | }
|
---|
544 | this._Resource.Entity = value;
|
---|
545 | if ((value != null))
|
---|
546 | {
|
---|
547 | value.Clients.Add(this);
|
---|
548 | this._ResourceID = value.Id;
|
---|
549 | }
|
---|
550 | else
|
---|
551 | {
|
---|
552 | this._ResourceID = default(System.Guid);
|
---|
553 | }
|
---|
554 | this.SendPropertyChanged("Client");
|
---|
555 | }
|
---|
556 | }
|
---|
557 | }
|
---|
558 |
|
---|
559 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourceResourceGroup1", Storage="_Resource1", ThisKey="ResourceGroupId", OtherKey="Id", IsForeignKey=true)]
|
---|
560 | public Resource ResourceGroup
|
---|
561 | {
|
---|
562 | get
|
---|
563 | {
|
---|
564 | return this._Resource1.Entity;
|
---|
565 | }
|
---|
566 | set
|
---|
567 | {
|
---|
568 | Resource previousValue = this._Resource1.Entity;
|
---|
569 | if (((previousValue != value)
|
---|
570 | || (this._Resource1.HasLoadedOrAssignedValue == false)))
|
---|
571 | {
|
---|
572 | this.SendPropertyChanging();
|
---|
573 | if ((previousValue != null))
|
---|
574 | {
|
---|
575 | this._Resource1.Entity = null;
|
---|
576 | previousValue.ResourceGroups.Remove(this);
|
---|
577 | }
|
---|
578 | this._Resource1.Entity = value;
|
---|
579 | if ((value != null))
|
---|
580 | {
|
---|
581 | value.ResourceGroups.Add(this);
|
---|
582 | this._ResourceGroupID = value.Id;
|
---|
583 | }
|
---|
584 | else
|
---|
585 | {
|
---|
586 | this._ResourceGroupID = default(System.Guid);
|
---|
587 | }
|
---|
588 | this.SendPropertyChanged("ResourceGroup");
|
---|
589 | }
|
---|
590 | }
|
---|
591 | }
|
---|
592 |
|
---|
593 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
594 |
|
---|
595 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
596 |
|
---|
597 | protected virtual void SendPropertyChanging()
|
---|
598 | {
|
---|
599 | if ((this.PropertyChanging != null))
|
---|
600 | {
|
---|
601 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
602 | }
|
---|
603 | }
|
---|
604 |
|
---|
605 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
606 | {
|
---|
607 | if ((this.PropertyChanged != null))
|
---|
608 | {
|
---|
609 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
610 | }
|
---|
611 | }
|
---|
612 | }
|
---|
613 | }
|
---|
614 | #pragma warning restore 1591
|
---|