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 HeuristicLab.Hive.Server.LINQDataAccess
|
---|
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 | [System.Data.Linq.Mapping.DatabaseAttribute(Name="HeuristicLab.Hive.Linq")]
|
---|
26 | public partial class HiveDataContext : 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 InsertAssignedResource(AssignedResource instance);
|
---|
34 | partial void UpdateAssignedResource(AssignedResource instance);
|
---|
35 | partial void DeleteAssignedResource(AssignedResource instance);
|
---|
36 | partial void InsertUptimeStatistic(UptimeStatistic instance);
|
---|
37 | partial void UpdateUptimeStatistic(UptimeStatistic instance);
|
---|
38 | partial void DeleteUptimeStatistic(UptimeStatistic instance);
|
---|
39 | partial void InsertClientConfig(ClientConfig instance);
|
---|
40 | partial void UpdateClientConfig(ClientConfig instance);
|
---|
41 | partial void DeleteClientConfig(ClientConfig instance);
|
---|
42 | partial void InsertClientGroup(ClientGroup instance);
|
---|
43 | partial void UpdateClientGroup(ClientGroup instance);
|
---|
44 | partial void DeleteClientGroup(ClientGroup instance);
|
---|
45 | partial void InsertClientGroup_Resource(ClientGroup_Resource instance);
|
---|
46 | partial void UpdateClientGroup_Resource(ClientGroup_Resource instance);
|
---|
47 | partial void DeleteClientGroup_Resource(ClientGroup_Resource instance);
|
---|
48 | partial void InsertJob(Job instance);
|
---|
49 | partial void UpdateJob(Job instance);
|
---|
50 | partial void DeleteJob(Job instance);
|
---|
51 | partial void InsertPluginInfo(PluginInfo instance);
|
---|
52 | partial void UpdatePluginInfo(PluginInfo instance);
|
---|
53 | partial void DeletePluginInfo(PluginInfo instance);
|
---|
54 | partial void InsertProject(Project instance);
|
---|
55 | partial void UpdateProject(Project instance);
|
---|
56 | partial void DeleteProject(Project instance);
|
---|
57 | partial void InsertRequiredPlugin(RequiredPlugin instance);
|
---|
58 | partial void UpdateRequiredPlugin(RequiredPlugin instance);
|
---|
59 | partial void DeleteRequiredPlugin(RequiredPlugin instance);
|
---|
60 | partial void InsertResource(Resource instance);
|
---|
61 | partial void UpdateResource(Resource instance);
|
---|
62 | partial void DeleteResource(Resource instance);
|
---|
63 | partial void InsertClient(Client instance);
|
---|
64 | partial void UpdateClient(Client instance);
|
---|
65 | partial void DeleteClient(Client instance);
|
---|
66 | #endregion
|
---|
67 |
|
---|
68 | public HiveDataContext() :
|
---|
69 | base(global::HeuristicLab.Hive.Server.LINQDataAccess.Properties.Settings.Default.HeuristicLab_Hive_LinqConnectionString, mappingSource)
|
---|
70 | {
|
---|
71 | OnCreated();
|
---|
72 | }
|
---|
73 |
|
---|
74 | public HiveDataContext(string connection) :
|
---|
75 | base(connection, mappingSource)
|
---|
76 | {
|
---|
77 | OnCreated();
|
---|
78 | }
|
---|
79 |
|
---|
80 | public HiveDataContext(System.Data.IDbConnection connection) :
|
---|
81 | base(connection, mappingSource)
|
---|
82 | {
|
---|
83 | OnCreated();
|
---|
84 | }
|
---|
85 |
|
---|
86 | public HiveDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
87 | base(connection, mappingSource)
|
---|
88 | {
|
---|
89 | OnCreated();
|
---|
90 | }
|
---|
91 |
|
---|
92 | public HiveDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
93 | base(connection, mappingSource)
|
---|
94 | {
|
---|
95 | OnCreated();
|
---|
96 | }
|
---|
97 |
|
---|
98 | public System.Data.Linq.Table<AssignedResource> AssignedResources
|
---|
99 | {
|
---|
100 | get
|
---|
101 | {
|
---|
102 | return this.GetTable<AssignedResource>();
|
---|
103 | }
|
---|
104 | }
|
---|
105 |
|
---|
106 | public System.Data.Linq.Table<UptimeStatistic> UptimeStatistics
|
---|
107 | {
|
---|
108 | get
|
---|
109 | {
|
---|
110 | return this.GetTable<UptimeStatistic>();
|
---|
111 | }
|
---|
112 | }
|
---|
113 |
|
---|
114 | public System.Data.Linq.Table<ClientConfig> ClientConfigs
|
---|
115 | {
|
---|
116 | get
|
---|
117 | {
|
---|
118 | return this.GetTable<ClientConfig>();
|
---|
119 | }
|
---|
120 | }
|
---|
121 |
|
---|
122 | public System.Data.Linq.Table<ClientGroup> ClientGroups
|
---|
123 | {
|
---|
124 | get
|
---|
125 | {
|
---|
126 | return this.GetTable<ClientGroup>();
|
---|
127 | }
|
---|
128 | }
|
---|
129 |
|
---|
130 | public System.Data.Linq.Table<ClientGroup_Resource> ClientGroup_Resources
|
---|
131 | {
|
---|
132 | get
|
---|
133 | {
|
---|
134 | return this.GetTable<ClientGroup_Resource>();
|
---|
135 | }
|
---|
136 | }
|
---|
137 |
|
---|
138 | public System.Data.Linq.Table<Job> Jobs
|
---|
139 | {
|
---|
140 | get
|
---|
141 | {
|
---|
142 | return this.GetTable<Job>();
|
---|
143 | }
|
---|
144 | }
|
---|
145 |
|
---|
146 | public System.Data.Linq.Table<PluginInfo> PluginInfos
|
---|
147 | {
|
---|
148 | get
|
---|
149 | {
|
---|
150 | return this.GetTable<PluginInfo>();
|
---|
151 | }
|
---|
152 | }
|
---|
153 |
|
---|
154 | public System.Data.Linq.Table<Project> Projects
|
---|
155 | {
|
---|
156 | get
|
---|
157 | {
|
---|
158 | return this.GetTable<Project>();
|
---|
159 | }
|
---|
160 | }
|
---|
161 |
|
---|
162 | public System.Data.Linq.Table<RequiredPlugin> RequiredPlugins
|
---|
163 | {
|
---|
164 | get
|
---|
165 | {
|
---|
166 | return this.GetTable<RequiredPlugin>();
|
---|
167 | }
|
---|
168 | }
|
---|
169 |
|
---|
170 | public System.Data.Linq.Table<Resource> Resources
|
---|
171 | {
|
---|
172 | get
|
---|
173 | {
|
---|
174 | return this.GetTable<Resource>();
|
---|
175 | }
|
---|
176 | }
|
---|
177 |
|
---|
178 | public System.Data.Linq.Table<Client> Clients
|
---|
179 | {
|
---|
180 | get
|
---|
181 | {
|
---|
182 | return this.GetTable<Client>();
|
---|
183 | }
|
---|
184 | }
|
---|
185 | }
|
---|
186 |
|
---|
187 | [Table(Name="dbo.AssignedResources")]
|
---|
188 | public partial class AssignedResource : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
189 | {
|
---|
190 |
|
---|
191 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
192 |
|
---|
193 | private System.Guid _ResourceId;
|
---|
194 |
|
---|
195 | private System.Guid _JobId;
|
---|
196 |
|
---|
197 | private System.Guid _AssignedRessourcesId;
|
---|
198 |
|
---|
199 | private EntityRef<Job> _Job;
|
---|
200 |
|
---|
201 | private EntityRef<Resource> _Resource;
|
---|
202 |
|
---|
203 | #region Extensibility Method Definitions
|
---|
204 | partial void OnLoaded();
|
---|
205 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
206 | partial void OnCreated();
|
---|
207 | partial void OnResourceIdChanging(System.Guid value);
|
---|
208 | partial void OnResourceIdChanged();
|
---|
209 | partial void OnJobIdChanging(System.Guid value);
|
---|
210 | partial void OnJobIdChanged();
|
---|
211 | partial void OnAssignedRessourcesIdChanging(System.Guid value);
|
---|
212 | partial void OnAssignedRessourcesIdChanged();
|
---|
213 | #endregion
|
---|
214 |
|
---|
215 | public AssignedResource()
|
---|
216 | {
|
---|
217 | this._Job = default(EntityRef<Job>);
|
---|
218 | this._Resource = default(EntityRef<Resource>);
|
---|
219 | OnCreated();
|
---|
220 | }
|
---|
221 |
|
---|
222 | [Column(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL")]
|
---|
223 | public System.Guid ResourceId
|
---|
224 | {
|
---|
225 | get
|
---|
226 | {
|
---|
227 | return this._ResourceId;
|
---|
228 | }
|
---|
229 | set
|
---|
230 | {
|
---|
231 | if ((this._ResourceId != value))
|
---|
232 | {
|
---|
233 | if (this._Resource.HasLoadedOrAssignedValue)
|
---|
234 | {
|
---|
235 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
236 | }
|
---|
237 | this.OnResourceIdChanging(value);
|
---|
238 | this.SendPropertyChanging();
|
---|
239 | this._ResourceId = value;
|
---|
240 | this.SendPropertyChanged("ResourceId");
|
---|
241 | this.OnResourceIdChanged();
|
---|
242 | }
|
---|
243 | }
|
---|
244 | }
|
---|
245 |
|
---|
246 | [Column(Storage="_JobId", DbType="UniqueIdentifier NOT NULL")]
|
---|
247 | public System.Guid JobId
|
---|
248 | {
|
---|
249 | get
|
---|
250 | {
|
---|
251 | return this._JobId;
|
---|
252 | }
|
---|
253 | set
|
---|
254 | {
|
---|
255 | if ((this._JobId != value))
|
---|
256 | {
|
---|
257 | if (this._Job.HasLoadedOrAssignedValue)
|
---|
258 | {
|
---|
259 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
260 | }
|
---|
261 | this.OnJobIdChanging(value);
|
---|
262 | this.SendPropertyChanging();
|
---|
263 | this._JobId = value;
|
---|
264 | this.SendPropertyChanged("JobId");
|
---|
265 | this.OnJobIdChanged();
|
---|
266 | }
|
---|
267 | }
|
---|
268 | }
|
---|
269 |
|
---|
270 | [Column(Storage="_AssignedRessourcesId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
271 | public System.Guid AssignedRessourcesId
|
---|
272 | {
|
---|
273 | get
|
---|
274 | {
|
---|
275 | return this._AssignedRessourcesId;
|
---|
276 | }
|
---|
277 | set
|
---|
278 | {
|
---|
279 | if ((this._AssignedRessourcesId != value))
|
---|
280 | {
|
---|
281 | this.OnAssignedRessourcesIdChanging(value);
|
---|
282 | this.SendPropertyChanging();
|
---|
283 | this._AssignedRessourcesId = value;
|
---|
284 | this.SendPropertyChanged("AssignedRessourcesId");
|
---|
285 | this.OnAssignedRessourcesIdChanged();
|
---|
286 | }
|
---|
287 | }
|
---|
288 | }
|
---|
289 |
|
---|
290 | [Association(Name="Job_AssignedResource", Storage="_Job", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
|
---|
291 | public Job Job
|
---|
292 | {
|
---|
293 | get
|
---|
294 | {
|
---|
295 | return this._Job.Entity;
|
---|
296 | }
|
---|
297 | set
|
---|
298 | {
|
---|
299 | Job previousValue = this._Job.Entity;
|
---|
300 | if (((previousValue != value)
|
---|
301 | || (this._Job.HasLoadedOrAssignedValue == false)))
|
---|
302 | {
|
---|
303 | this.SendPropertyChanging();
|
---|
304 | if ((previousValue != null))
|
---|
305 | {
|
---|
306 | this._Job.Entity = null;
|
---|
307 | previousValue.AssignedResources.Remove(this);
|
---|
308 | }
|
---|
309 | this._Job.Entity = value;
|
---|
310 | if ((value != null))
|
---|
311 | {
|
---|
312 | value.AssignedResources.Add(this);
|
---|
313 | this._JobId = value.JobId;
|
---|
314 | }
|
---|
315 | else
|
---|
316 | {
|
---|
317 | this._JobId = default(System.Guid);
|
---|
318 | }
|
---|
319 | this.SendPropertyChanged("Job");
|
---|
320 | }
|
---|
321 | }
|
---|
322 | }
|
---|
323 |
|
---|
324 | [Association(Name="Resource_AssignedResource", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
|
---|
325 | public Resource Resource
|
---|
326 | {
|
---|
327 | get
|
---|
328 | {
|
---|
329 | return this._Resource.Entity;
|
---|
330 | }
|
---|
331 | set
|
---|
332 | {
|
---|
333 | Resource previousValue = this._Resource.Entity;
|
---|
334 | if (((previousValue != value)
|
---|
335 | || (this._Resource.HasLoadedOrAssignedValue == false)))
|
---|
336 | {
|
---|
337 | this.SendPropertyChanging();
|
---|
338 | if ((previousValue != null))
|
---|
339 | {
|
---|
340 | this._Resource.Entity = null;
|
---|
341 | previousValue.AssignedResources.Remove(this);
|
---|
342 | }
|
---|
343 | this._Resource.Entity = value;
|
---|
344 | if ((value != null))
|
---|
345 | {
|
---|
346 | value.AssignedResources.Add(this);
|
---|
347 | this._ResourceId = value.ResourceId;
|
---|
348 | }
|
---|
349 | else
|
---|
350 | {
|
---|
351 | this._ResourceId = default(System.Guid);
|
---|
352 | }
|
---|
353 | this.SendPropertyChanged("Resource");
|
---|
354 | }
|
---|
355 | }
|
---|
356 | }
|
---|
357 |
|
---|
358 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
359 |
|
---|
360 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
361 |
|
---|
362 | protected virtual void SendPropertyChanging()
|
---|
363 | {
|
---|
364 | if ((this.PropertyChanging != null))
|
---|
365 | {
|
---|
366 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
367 | }
|
---|
368 | }
|
---|
369 |
|
---|
370 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
371 | {
|
---|
372 | if ((this.PropertyChanged != null))
|
---|
373 | {
|
---|
374 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
375 | }
|
---|
376 | }
|
---|
377 | }
|
---|
378 |
|
---|
379 | [Table(Name="dbo.UptimeStatistics")]
|
---|
380 | public partial class UptimeStatistic : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
381 | {
|
---|
382 |
|
---|
383 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
384 |
|
---|
385 | private System.Guid _UptimeStatisticsId;
|
---|
386 |
|
---|
387 | private System.Nullable<System.DateTime> _Login;
|
---|
388 |
|
---|
389 | private System.Nullable<System.DateTime> _Logout;
|
---|
390 |
|
---|
391 | private System.Nullable<System.Guid> _ResourceId;
|
---|
392 |
|
---|
393 | private EntityRef<Client> _Client;
|
---|
394 |
|
---|
395 | #region Extensibility Method Definitions
|
---|
396 | partial void OnLoaded();
|
---|
397 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
398 | partial void OnCreated();
|
---|
399 | partial void OnUptimeStatisticsIdChanging(System.Guid value);
|
---|
400 | partial void OnUptimeStatisticsIdChanged();
|
---|
401 | partial void OnLoginChanging(System.Nullable<System.DateTime> value);
|
---|
402 | partial void OnLoginChanged();
|
---|
403 | partial void OnLogoutChanging(System.Nullable<System.DateTime> value);
|
---|
404 | partial void OnLogoutChanged();
|
---|
405 | partial void OnResourceIdChanging(System.Nullable<System.Guid> value);
|
---|
406 | partial void OnResourceIdChanged();
|
---|
407 | #endregion
|
---|
408 |
|
---|
409 | public UptimeStatistic()
|
---|
410 | {
|
---|
411 | this._Client = default(EntityRef<Client>);
|
---|
412 | OnCreated();
|
---|
413 | }
|
---|
414 |
|
---|
415 | [Column(Storage="_UptimeStatisticsId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
416 | public System.Guid UptimeStatisticsId
|
---|
417 | {
|
---|
418 | get
|
---|
419 | {
|
---|
420 | return this._UptimeStatisticsId;
|
---|
421 | }
|
---|
422 | set
|
---|
423 | {
|
---|
424 | if ((this._UptimeStatisticsId != value))
|
---|
425 | {
|
---|
426 | this.OnUptimeStatisticsIdChanging(value);
|
---|
427 | this.SendPropertyChanging();
|
---|
428 | this._UptimeStatisticsId = value;
|
---|
429 | this.SendPropertyChanged("UptimeStatisticsId");
|
---|
430 | this.OnUptimeStatisticsIdChanged();
|
---|
431 | }
|
---|
432 | }
|
---|
433 | }
|
---|
434 |
|
---|
435 | [Column(Storage="_Login", DbType="DateTime")]
|
---|
436 | public System.Nullable<System.DateTime> Login
|
---|
437 | {
|
---|
438 | get
|
---|
439 | {
|
---|
440 | return this._Login;
|
---|
441 | }
|
---|
442 | set
|
---|
443 | {
|
---|
444 | if ((this._Login != value))
|
---|
445 | {
|
---|
446 | this.OnLoginChanging(value);
|
---|
447 | this.SendPropertyChanging();
|
---|
448 | this._Login = value;
|
---|
449 | this.SendPropertyChanged("Login");
|
---|
450 | this.OnLoginChanged();
|
---|
451 | }
|
---|
452 | }
|
---|
453 | }
|
---|
454 |
|
---|
455 | [Column(Storage="_Logout", DbType="DateTime")]
|
---|
456 | public System.Nullable<System.DateTime> Logout
|
---|
457 | {
|
---|
458 | get
|
---|
459 | {
|
---|
460 | return this._Logout;
|
---|
461 | }
|
---|
462 | set
|
---|
463 | {
|
---|
464 | if ((this._Logout != value))
|
---|
465 | {
|
---|
466 | this.OnLogoutChanging(value);
|
---|
467 | this.SendPropertyChanging();
|
---|
468 | this._Logout = value;
|
---|
469 | this.SendPropertyChanged("Logout");
|
---|
470 | this.OnLogoutChanged();
|
---|
471 | }
|
---|
472 | }
|
---|
473 | }
|
---|
474 |
|
---|
475 | [Column(Storage="_ResourceId", DbType="UniqueIdentifier")]
|
---|
476 | public System.Nullable<System.Guid> ResourceId
|
---|
477 | {
|
---|
478 | get
|
---|
479 | {
|
---|
480 | return this._ResourceId;
|
---|
481 | }
|
---|
482 | set
|
---|
483 | {
|
---|
484 | if ((this._ResourceId != value))
|
---|
485 | {
|
---|
486 | if (this._Client.HasLoadedOrAssignedValue)
|
---|
487 | {
|
---|
488 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
489 | }
|
---|
490 | this.OnResourceIdChanging(value);
|
---|
491 | this.SendPropertyChanging();
|
---|
492 | this._ResourceId = value;
|
---|
493 | this.SendPropertyChanged("ResourceId");
|
---|
494 | this.OnResourceIdChanged();
|
---|
495 | }
|
---|
496 | }
|
---|
497 | }
|
---|
498 |
|
---|
499 | [Association(Name="Client_UptimeStatistic", Storage="_Client", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteRule="SET NULL")]
|
---|
500 | public Client Client
|
---|
501 | {
|
---|
502 | get
|
---|
503 | {
|
---|
504 | return this._Client.Entity;
|
---|
505 | }
|
---|
506 | set
|
---|
507 | {
|
---|
508 | Client previousValue = this._Client.Entity;
|
---|
509 | if (((previousValue != value)
|
---|
510 | || (this._Client.HasLoadedOrAssignedValue == false)))
|
---|
511 | {
|
---|
512 | this.SendPropertyChanging();
|
---|
513 | if ((previousValue != null))
|
---|
514 | {
|
---|
515 | this._Client.Entity = null;
|
---|
516 | previousValue.UptimeStatistics.Remove(this);
|
---|
517 | }
|
---|
518 | this._Client.Entity = value;
|
---|
519 | if ((value != null))
|
---|
520 | {
|
---|
521 | value.UptimeStatistics.Add(this);
|
---|
522 | this._ResourceId = value.ResourceId;
|
---|
523 | }
|
---|
524 | else
|
---|
525 | {
|
---|
526 | this._ResourceId = default(Nullable<System.Guid>);
|
---|
527 | }
|
---|
528 | this.SendPropertyChanged("Client");
|
---|
529 | }
|
---|
530 | }
|
---|
531 | }
|
---|
532 |
|
---|
533 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
534 |
|
---|
535 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
536 |
|
---|
537 | protected virtual void SendPropertyChanging()
|
---|
538 | {
|
---|
539 | if ((this.PropertyChanging != null))
|
---|
540 | {
|
---|
541 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
542 | }
|
---|
543 | }
|
---|
544 |
|
---|
545 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
546 | {
|
---|
547 | if ((this.PropertyChanged != null))
|
---|
548 | {
|
---|
549 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
550 | }
|
---|
551 | }
|
---|
552 | }
|
---|
553 |
|
---|
554 | [Table(Name="dbo.ClientConfig")]
|
---|
555 | public partial class ClientConfig : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
556 | {
|
---|
557 |
|
---|
558 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
559 |
|
---|
560 | private System.Guid _ClientConfigId;
|
---|
561 |
|
---|
562 | private System.Xml.Linq.XElement _UpDownTimeCalendar;
|
---|
563 |
|
---|
564 | private System.Nullable<int> _HeartBeatIntervall;
|
---|
565 |
|
---|
566 | private EntitySet<Client> _Clients;
|
---|
567 |
|
---|
568 | #region Extensibility Method Definitions
|
---|
569 | partial void OnLoaded();
|
---|
570 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
571 | partial void OnCreated();
|
---|
572 | partial void OnClientConfigIdChanging(System.Guid value);
|
---|
573 | partial void OnClientConfigIdChanged();
|
---|
574 | partial void OnUpDownTimeCalendarChanging(System.Xml.Linq.XElement value);
|
---|
575 | partial void OnUpDownTimeCalendarChanged();
|
---|
576 | partial void OnHeartBeatIntervallChanging(System.Nullable<int> value);
|
---|
577 | partial void OnHeartBeatIntervallChanged();
|
---|
578 | #endregion
|
---|
579 |
|
---|
580 | public ClientConfig()
|
---|
581 | {
|
---|
582 | this._Clients = new EntitySet<Client>(new Action<Client>(this.attach_Clients), new Action<Client>(this.detach_Clients));
|
---|
583 | OnCreated();
|
---|
584 | }
|
---|
585 |
|
---|
586 | [Column(Storage="_ClientConfigId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
587 | public System.Guid ClientConfigId
|
---|
588 | {
|
---|
589 | get
|
---|
590 | {
|
---|
591 | return this._ClientConfigId;
|
---|
592 | }
|
---|
593 | set
|
---|
594 | {
|
---|
595 | if ((this._ClientConfigId != value))
|
---|
596 | {
|
---|
597 | this.OnClientConfigIdChanging(value);
|
---|
598 | this.SendPropertyChanging();
|
---|
599 | this._ClientConfigId = value;
|
---|
600 | this.SendPropertyChanged("ClientConfigId");
|
---|
601 | this.OnClientConfigIdChanged();
|
---|
602 | }
|
---|
603 | }
|
---|
604 | }
|
---|
605 |
|
---|
606 | [Column(Storage="_UpDownTimeCalendar", DbType="Xml", UpdateCheck=UpdateCheck.Never)]
|
---|
607 | public System.Xml.Linq.XElement UpDownTimeCalendar
|
---|
608 | {
|
---|
609 | get
|
---|
610 | {
|
---|
611 | return this._UpDownTimeCalendar;
|
---|
612 | }
|
---|
613 | set
|
---|
614 | {
|
---|
615 | if ((this._UpDownTimeCalendar != value))
|
---|
616 | {
|
---|
617 | this.OnUpDownTimeCalendarChanging(value);
|
---|
618 | this.SendPropertyChanging();
|
---|
619 | this._UpDownTimeCalendar = value;
|
---|
620 | this.SendPropertyChanged("UpDownTimeCalendar");
|
---|
621 | this.OnUpDownTimeCalendarChanged();
|
---|
622 | }
|
---|
623 | }
|
---|
624 | }
|
---|
625 |
|
---|
626 | [Column(Storage="_HeartBeatIntervall", DbType="Int")]
|
---|
627 | public System.Nullable<int> HeartBeatIntervall
|
---|
628 | {
|
---|
629 | get
|
---|
630 | {
|
---|
631 | return this._HeartBeatIntervall;
|
---|
632 | }
|
---|
633 | set
|
---|
634 | {
|
---|
635 | if ((this._HeartBeatIntervall != value))
|
---|
636 | {
|
---|
637 | this.OnHeartBeatIntervallChanging(value);
|
---|
638 | this.SendPropertyChanging();
|
---|
639 | this._HeartBeatIntervall = value;
|
---|
640 | this.SendPropertyChanged("HeartBeatIntervall");
|
---|
641 | this.OnHeartBeatIntervallChanged();
|
---|
642 | }
|
---|
643 | }
|
---|
644 | }
|
---|
645 |
|
---|
646 | [Association(Name="ClientConfig_Client", Storage="_Clients", ThisKey="ClientConfigId", OtherKey="ClientConfigId")]
|
---|
647 | public EntitySet<Client> Clients
|
---|
648 | {
|
---|
649 | get
|
---|
650 | {
|
---|
651 | return this._Clients;
|
---|
652 | }
|
---|
653 | set
|
---|
654 | {
|
---|
655 | this._Clients.Assign(value);
|
---|
656 | }
|
---|
657 | }
|
---|
658 |
|
---|
659 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
660 |
|
---|
661 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
662 |
|
---|
663 | protected virtual void SendPropertyChanging()
|
---|
664 | {
|
---|
665 | if ((this.PropertyChanging != null))
|
---|
666 | {
|
---|
667 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
668 | }
|
---|
669 | }
|
---|
670 |
|
---|
671 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
672 | {
|
---|
673 | if ((this.PropertyChanged != null))
|
---|
674 | {
|
---|
675 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
676 | }
|
---|
677 | }
|
---|
678 |
|
---|
679 | private void attach_Clients(Client entity)
|
---|
680 | {
|
---|
681 | this.SendPropertyChanging();
|
---|
682 | entity.ClientConfig = this;
|
---|
683 | }
|
---|
684 |
|
---|
685 | private void detach_Clients(Client entity)
|
---|
686 | {
|
---|
687 | this.SendPropertyChanging();
|
---|
688 | entity.ClientConfig = null;
|
---|
689 | }
|
---|
690 | }
|
---|
691 |
|
---|
692 | [Table(Name="dbo.ClientGroup")]
|
---|
693 | public partial class ClientGroup : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
694 | {
|
---|
695 |
|
---|
696 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
697 |
|
---|
698 | private System.Guid _ResourceId;
|
---|
699 |
|
---|
700 | private EntitySet<ClientGroup_Resource> _ClientGroup_Resources;
|
---|
701 |
|
---|
702 | private EntityRef<Resource> _Resource;
|
---|
703 |
|
---|
704 | #region Extensibility Method Definitions
|
---|
705 | partial void OnLoaded();
|
---|
706 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
707 | partial void OnCreated();
|
---|
708 | partial void OnResourceIdChanging(System.Guid value);
|
---|
709 | partial void OnResourceIdChanged();
|
---|
710 | #endregion
|
---|
711 |
|
---|
712 | public ClientGroup()
|
---|
713 | {
|
---|
714 | this._ClientGroup_Resources = new EntitySet<ClientGroup_Resource>(new Action<ClientGroup_Resource>(this.attach_ClientGroup_Resources), new Action<ClientGroup_Resource>(this.detach_ClientGroup_Resources));
|
---|
715 | this._Resource = default(EntityRef<Resource>);
|
---|
716 | OnCreated();
|
---|
717 | }
|
---|
718 |
|
---|
719 | [Column(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
720 | public System.Guid ResourceId
|
---|
721 | {
|
---|
722 | get
|
---|
723 | {
|
---|
724 | return this._ResourceId;
|
---|
725 | }
|
---|
726 | set
|
---|
727 | {
|
---|
728 | if ((this._ResourceId != value))
|
---|
729 | {
|
---|
730 | if (this._Resource.HasLoadedOrAssignedValue)
|
---|
731 | {
|
---|
732 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
733 | }
|
---|
734 | this.OnResourceIdChanging(value);
|
---|
735 | this.SendPropertyChanging();
|
---|
736 | this._ResourceId = value;
|
---|
737 | this.SendPropertyChanged("ResourceId");
|
---|
738 | this.OnResourceIdChanged();
|
---|
739 | }
|
---|
740 | }
|
---|
741 | }
|
---|
742 |
|
---|
743 | [Association(Name="ClientGroup_ClientGroup_Resource", Storage="_ClientGroup_Resources", ThisKey="ResourceId", OtherKey="ClientGroupId")]
|
---|
744 | public EntitySet<ClientGroup_Resource> ClientGroup_Resources
|
---|
745 | {
|
---|
746 | get
|
---|
747 | {
|
---|
748 | return this._ClientGroup_Resources;
|
---|
749 | }
|
---|
750 | set
|
---|
751 | {
|
---|
752 | this._ClientGroup_Resources.Assign(value);
|
---|
753 | }
|
---|
754 | }
|
---|
755 |
|
---|
756 | [Association(Name="Resource_ClientGroup", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
|
---|
757 | public Resource Resource
|
---|
758 | {
|
---|
759 | get
|
---|
760 | {
|
---|
761 | return this._Resource.Entity;
|
---|
762 | }
|
---|
763 | set
|
---|
764 | {
|
---|
765 | Resource previousValue = this._Resource.Entity;
|
---|
766 | if (((previousValue != value)
|
---|
767 | || (this._Resource.HasLoadedOrAssignedValue == false)))
|
---|
768 | {
|
---|
769 | this.SendPropertyChanging();
|
---|
770 | if ((previousValue != null))
|
---|
771 | {
|
---|
772 | this._Resource.Entity = null;
|
---|
773 | previousValue.ClientGroup = null;
|
---|
774 | }
|
---|
775 | this._Resource.Entity = value;
|
---|
776 | if ((value != null))
|
---|
777 | {
|
---|
778 | value.ClientGroup = this;
|
---|
779 | this._ResourceId = value.ResourceId;
|
---|
780 | }
|
---|
781 | else
|
---|
782 | {
|
---|
783 | this._ResourceId = default(System.Guid);
|
---|
784 | }
|
---|
785 | this.SendPropertyChanged("Resource");
|
---|
786 | }
|
---|
787 | }
|
---|
788 | }
|
---|
789 |
|
---|
790 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
791 |
|
---|
792 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
793 |
|
---|
794 | protected virtual void SendPropertyChanging()
|
---|
795 | {
|
---|
796 | if ((this.PropertyChanging != null))
|
---|
797 | {
|
---|
798 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
799 | }
|
---|
800 | }
|
---|
801 |
|
---|
802 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
803 | {
|
---|
804 | if ((this.PropertyChanged != null))
|
---|
805 | {
|
---|
806 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
807 | }
|
---|
808 | }
|
---|
809 |
|
---|
810 | private void attach_ClientGroup_Resources(ClientGroup_Resource entity)
|
---|
811 | {
|
---|
812 | this.SendPropertyChanging();
|
---|
813 | entity.ClientGroup = this;
|
---|
814 | }
|
---|
815 |
|
---|
816 | private void detach_ClientGroup_Resources(ClientGroup_Resource entity)
|
---|
817 | {
|
---|
818 | this.SendPropertyChanging();
|
---|
819 | entity.ClientGroup = null;
|
---|
820 | }
|
---|
821 | }
|
---|
822 |
|
---|
823 | [Table(Name="dbo.ClientGroup_Resource")]
|
---|
824 | public partial class ClientGroup_Resource : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
825 | {
|
---|
826 |
|
---|
827 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
828 |
|
---|
829 | private System.Guid _ClientGroupId;
|
---|
830 |
|
---|
831 | private System.Guid _ResourceId;
|
---|
832 |
|
---|
833 | private System.Guid _ClientGroup_RessourceId;
|
---|
834 |
|
---|
835 | private EntityRef<ClientGroup> _ClientGroup;
|
---|
836 |
|
---|
837 | private EntityRef<Resource> _Resource;
|
---|
838 |
|
---|
839 | #region Extensibility Method Definitions
|
---|
840 | partial void OnLoaded();
|
---|
841 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
842 | partial void OnCreated();
|
---|
843 | partial void OnClientGroupIdChanging(System.Guid value);
|
---|
844 | partial void OnClientGroupIdChanged();
|
---|
845 | partial void OnResourceIdChanging(System.Guid value);
|
---|
846 | partial void OnResourceIdChanged();
|
---|
847 | partial void OnClientGroup_RessourceIdChanging(System.Guid value);
|
---|
848 | partial void OnClientGroup_RessourceIdChanged();
|
---|
849 | #endregion
|
---|
850 |
|
---|
851 | public ClientGroup_Resource()
|
---|
852 | {
|
---|
853 | this._ClientGroup = default(EntityRef<ClientGroup>);
|
---|
854 | this._Resource = default(EntityRef<Resource>);
|
---|
855 | OnCreated();
|
---|
856 | }
|
---|
857 |
|
---|
858 | [Column(Storage="_ClientGroupId", DbType="UniqueIdentifier NOT NULL")]
|
---|
859 | public System.Guid ClientGroupId
|
---|
860 | {
|
---|
861 | get
|
---|
862 | {
|
---|
863 | return this._ClientGroupId;
|
---|
864 | }
|
---|
865 | set
|
---|
866 | {
|
---|
867 | if ((this._ClientGroupId != value))
|
---|
868 | {
|
---|
869 | if (this._ClientGroup.HasLoadedOrAssignedValue)
|
---|
870 | {
|
---|
871 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
872 | }
|
---|
873 | this.OnClientGroupIdChanging(value);
|
---|
874 | this.SendPropertyChanging();
|
---|
875 | this._ClientGroupId = value;
|
---|
876 | this.SendPropertyChanged("ClientGroupId");
|
---|
877 | this.OnClientGroupIdChanged();
|
---|
878 | }
|
---|
879 | }
|
---|
880 | }
|
---|
881 |
|
---|
882 | [Column(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL")]
|
---|
883 | public System.Guid ResourceId
|
---|
884 | {
|
---|
885 | get
|
---|
886 | {
|
---|
887 | return this._ResourceId;
|
---|
888 | }
|
---|
889 | set
|
---|
890 | {
|
---|
891 | if ((this._ResourceId != value))
|
---|
892 | {
|
---|
893 | if (this._Resource.HasLoadedOrAssignedValue)
|
---|
894 | {
|
---|
895 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
896 | }
|
---|
897 | this.OnResourceIdChanging(value);
|
---|
898 | this.SendPropertyChanging();
|
---|
899 | this._ResourceId = value;
|
---|
900 | this.SendPropertyChanged("ResourceId");
|
---|
901 | this.OnResourceIdChanged();
|
---|
902 | }
|
---|
903 | }
|
---|
904 | }
|
---|
905 |
|
---|
906 | [Column(Storage="_ClientGroup_RessourceId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
907 | public System.Guid ClientGroup_RessourceId
|
---|
908 | {
|
---|
909 | get
|
---|
910 | {
|
---|
911 | return this._ClientGroup_RessourceId;
|
---|
912 | }
|
---|
913 | set
|
---|
914 | {
|
---|
915 | if ((this._ClientGroup_RessourceId != value))
|
---|
916 | {
|
---|
917 | this.OnClientGroup_RessourceIdChanging(value);
|
---|
918 | this.SendPropertyChanging();
|
---|
919 | this._ClientGroup_RessourceId = value;
|
---|
920 | this.SendPropertyChanged("ClientGroup_RessourceId");
|
---|
921 | this.OnClientGroup_RessourceIdChanged();
|
---|
922 | }
|
---|
923 | }
|
---|
924 | }
|
---|
925 |
|
---|
926 | [Association(Name="ClientGroup_ClientGroup_Resource", Storage="_ClientGroup", ThisKey="ClientGroupId", OtherKey="ResourceId", IsForeignKey=true)]
|
---|
927 | public ClientGroup ClientGroup
|
---|
928 | {
|
---|
929 | get
|
---|
930 | {
|
---|
931 | return this._ClientGroup.Entity;
|
---|
932 | }
|
---|
933 | set
|
---|
934 | {
|
---|
935 | ClientGroup previousValue = this._ClientGroup.Entity;
|
---|
936 | if (((previousValue != value)
|
---|
937 | || (this._ClientGroup.HasLoadedOrAssignedValue == false)))
|
---|
938 | {
|
---|
939 | this.SendPropertyChanging();
|
---|
940 | if ((previousValue != null))
|
---|
941 | {
|
---|
942 | this._ClientGroup.Entity = null;
|
---|
943 | previousValue.ClientGroup_Resources.Remove(this);
|
---|
944 | }
|
---|
945 | this._ClientGroup.Entity = value;
|
---|
946 | if ((value != null))
|
---|
947 | {
|
---|
948 | value.ClientGroup_Resources.Add(this);
|
---|
949 | this._ClientGroupId = value.ResourceId;
|
---|
950 | }
|
---|
951 | else
|
---|
952 | {
|
---|
953 | this._ClientGroupId = default(System.Guid);
|
---|
954 | }
|
---|
955 | this.SendPropertyChanged("ClientGroup");
|
---|
956 | }
|
---|
957 | }
|
---|
958 | }
|
---|
959 |
|
---|
960 | [Association(Name="Resource_ClientGroup_Resource", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
|
---|
961 | public Resource Resource
|
---|
962 | {
|
---|
963 | get
|
---|
964 | {
|
---|
965 | return this._Resource.Entity;
|
---|
966 | }
|
---|
967 | set
|
---|
968 | {
|
---|
969 | Resource previousValue = this._Resource.Entity;
|
---|
970 | if (((previousValue != value)
|
---|
971 | || (this._Resource.HasLoadedOrAssignedValue == false)))
|
---|
972 | {
|
---|
973 | this.SendPropertyChanging();
|
---|
974 | if ((previousValue != null))
|
---|
975 | {
|
---|
976 | this._Resource.Entity = null;
|
---|
977 | previousValue.ClientGroup_Resources.Remove(this);
|
---|
978 | }
|
---|
979 | this._Resource.Entity = value;
|
---|
980 | if ((value != null))
|
---|
981 | {
|
---|
982 | value.ClientGroup_Resources.Add(this);
|
---|
983 | this._ResourceId = value.ResourceId;
|
---|
984 | }
|
---|
985 | else
|
---|
986 | {
|
---|
987 | this._ResourceId = default(System.Guid);
|
---|
988 | }
|
---|
989 | this.SendPropertyChanged("Resource");
|
---|
990 | }
|
---|
991 | }
|
---|
992 | }
|
---|
993 |
|
---|
994 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
995 |
|
---|
996 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
997 |
|
---|
998 | protected virtual void SendPropertyChanging()
|
---|
999 | {
|
---|
1000 | if ((this.PropertyChanging != null))
|
---|
1001 | {
|
---|
1002 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
1003 | }
|
---|
1004 | }
|
---|
1005 |
|
---|
1006 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
1007 | {
|
---|
1008 | if ((this.PropertyChanged != null))
|
---|
1009 | {
|
---|
1010 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
1011 | }
|
---|
1012 | }
|
---|
1013 | }
|
---|
1014 |
|
---|
1015 | [Table(Name="dbo.Job")]
|
---|
1016 | public partial class Job : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
1017 | {
|
---|
1018 |
|
---|
1019 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
1020 |
|
---|
1021 | private System.Guid _JobId;
|
---|
1022 |
|
---|
1023 | private System.Nullable<System.Guid> _ParentJobId;
|
---|
1024 |
|
---|
1025 | private string _JobState;
|
---|
1026 |
|
---|
1027 | private System.Nullable<System.Guid> _ResourceId;
|
---|
1028 |
|
---|
1029 | private System.Nullable<double> _Percentage;
|
---|
1030 |
|
---|
1031 | private System.Data.Linq.Binary _SerializedJob;
|
---|
1032 |
|
---|
1033 | private System.Nullable<System.DateTime> _DateCreated;
|
---|
1034 |
|
---|
1035 | private System.Nullable<System.DateTime> _DateCalculated;
|
---|
1036 |
|
---|
1037 | private System.Nullable<System.DateTime> _DateFinished;
|
---|
1038 |
|
---|
1039 | private System.Nullable<int> _Priority;
|
---|
1040 |
|
---|
1041 | private System.Nullable<System.Guid> _ProjectId;
|
---|
1042 |
|
---|
1043 | private System.Nullable<System.Guid> _UserId;
|
---|
1044 |
|
---|
1045 | private System.Nullable<int> _CoresNeeded;
|
---|
1046 |
|
---|
1047 | private System.Nullable<int> _MemoryNeeded;
|
---|
1048 |
|
---|
1049 | private EntitySet<AssignedResource> _AssignedResources;
|
---|
1050 |
|
---|
1051 | private EntitySet<Job> _Jobs;
|
---|
1052 |
|
---|
1053 | private EntitySet<RequiredPlugin> _RequiredPlugins;
|
---|
1054 |
|
---|
1055 | private EntityRef<Job> _Job1;
|
---|
1056 |
|
---|
1057 | private EntityRef<Project> _Project;
|
---|
1058 |
|
---|
1059 | private EntityRef<Client> _Client;
|
---|
1060 |
|
---|
1061 | #region Extensibility Method Definitions
|
---|
1062 | partial void OnLoaded();
|
---|
1063 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
1064 | partial void OnCreated();
|
---|
1065 | partial void OnJobIdChanging(System.Guid value);
|
---|
1066 | partial void OnJobIdChanged();
|
---|
1067 | partial void OnParentJobIdChanging(System.Nullable<System.Guid> value);
|
---|
1068 | partial void OnParentJobIdChanged();
|
---|
1069 | partial void OnJobStateChanging(string value);
|
---|
1070 | partial void OnJobStateChanged();
|
---|
1071 | partial void OnResourceIdChanging(System.Nullable<System.Guid> value);
|
---|
1072 | partial void OnResourceIdChanged();
|
---|
1073 | partial void OnPercentageChanging(System.Nullable<double> value);
|
---|
1074 | partial void OnPercentageChanged();
|
---|
1075 | partial void OnSerializedJobChanging(System.Data.Linq.Binary value);
|
---|
1076 | partial void OnSerializedJobChanged();
|
---|
1077 | partial void OnDateCreatedChanging(System.Nullable<System.DateTime> value);
|
---|
1078 | partial void OnDateCreatedChanged();
|
---|
1079 | partial void OnDateCalculatedChanging(System.Nullable<System.DateTime> value);
|
---|
1080 | partial void OnDateCalculatedChanged();
|
---|
1081 | partial void OnDateFinishedChanging(System.Nullable<System.DateTime> value);
|
---|
1082 | partial void OnDateFinishedChanged();
|
---|
1083 | partial void OnPriorityChanging(System.Nullable<int> value);
|
---|
1084 | partial void OnPriorityChanged();
|
---|
1085 | partial void OnProjectIdChanging(System.Nullable<System.Guid> value);
|
---|
1086 | partial void OnProjectIdChanged();
|
---|
1087 | partial void OnUserIdChanging(System.Nullable<System.Guid> value);
|
---|
1088 | partial void OnUserIdChanged();
|
---|
1089 | partial void OnCoresNeededChanging(System.Nullable<int> value);
|
---|
1090 | partial void OnCoresNeededChanged();
|
---|
1091 | partial void OnMemoryNeededChanging(System.Nullable<int> value);
|
---|
1092 | partial void OnMemoryNeededChanged();
|
---|
1093 | #endregion
|
---|
1094 |
|
---|
1095 | public Job()
|
---|
1096 | {
|
---|
1097 | this._AssignedResources = new EntitySet<AssignedResource>(new Action<AssignedResource>(this.attach_AssignedResources), new Action<AssignedResource>(this.detach_AssignedResources));
|
---|
1098 | this._Jobs = new EntitySet<Job>(new Action<Job>(this.attach_Jobs), new Action<Job>(this.detach_Jobs));
|
---|
1099 | this._RequiredPlugins = new EntitySet<RequiredPlugin>(new Action<RequiredPlugin>(this.attach_RequiredPlugins), new Action<RequiredPlugin>(this.detach_RequiredPlugins));
|
---|
1100 | this._Job1 = default(EntityRef<Job>);
|
---|
1101 | this._Project = default(EntityRef<Project>);
|
---|
1102 | this._Client = default(EntityRef<Client>);
|
---|
1103 | OnCreated();
|
---|
1104 | }
|
---|
1105 |
|
---|
1106 | [Column(Storage="_JobId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
1107 | public System.Guid JobId
|
---|
1108 | {
|
---|
1109 | get
|
---|
1110 | {
|
---|
1111 | return this._JobId;
|
---|
1112 | }
|
---|
1113 | set
|
---|
1114 | {
|
---|
1115 | if ((this._JobId != value))
|
---|
1116 | {
|
---|
1117 | this.OnJobIdChanging(value);
|
---|
1118 | this.SendPropertyChanging();
|
---|
1119 | this._JobId = value;
|
---|
1120 | this.SendPropertyChanged("JobId");
|
---|
1121 | this.OnJobIdChanged();
|
---|
1122 | }
|
---|
1123 | }
|
---|
1124 | }
|
---|
1125 |
|
---|
1126 | [Column(Storage="_ParentJobId", DbType="UniqueIdentifier")]
|
---|
1127 | public System.Nullable<System.Guid> ParentJobId
|
---|
1128 | {
|
---|
1129 | get
|
---|
1130 | {
|
---|
1131 | return this._ParentJobId;
|
---|
1132 | }
|
---|
1133 | set
|
---|
1134 | {
|
---|
1135 | if ((this._ParentJobId != value))
|
---|
1136 | {
|
---|
1137 | if (this._Job1.HasLoadedOrAssignedValue)
|
---|
1138 | {
|
---|
1139 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
1140 | }
|
---|
1141 | this.OnParentJobIdChanging(value);
|
---|
1142 | this.SendPropertyChanging();
|
---|
1143 | this._ParentJobId = value;
|
---|
1144 | this.SendPropertyChanged("ParentJobId");
|
---|
1145 | this.OnParentJobIdChanged();
|
---|
1146 | }
|
---|
1147 | }
|
---|
1148 | }
|
---|
1149 |
|
---|
1150 | [Column(Storage="_JobState", DbType="VarChar(MAX)")]
|
---|
1151 | public string JobState
|
---|
1152 | {
|
---|
1153 | get
|
---|
1154 | {
|
---|
1155 | return this._JobState;
|
---|
1156 | }
|
---|
1157 | set
|
---|
1158 | {
|
---|
1159 | if ((this._JobState != value))
|
---|
1160 | {
|
---|
1161 | this.OnJobStateChanging(value);
|
---|
1162 | this.SendPropertyChanging();
|
---|
1163 | this._JobState = value;
|
---|
1164 | this.SendPropertyChanged("JobState");
|
---|
1165 | this.OnJobStateChanged();
|
---|
1166 | }
|
---|
1167 | }
|
---|
1168 | }
|
---|
1169 |
|
---|
1170 | [Column(Storage="_ResourceId", DbType="UniqueIdentifier")]
|
---|
1171 | public System.Nullable<System.Guid> ResourceId
|
---|
1172 | {
|
---|
1173 | get
|
---|
1174 | {
|
---|
1175 | return this._ResourceId;
|
---|
1176 | }
|
---|
1177 | set
|
---|
1178 | {
|
---|
1179 | if ((this._ResourceId != value))
|
---|
1180 | {
|
---|
1181 | if (this._Client.HasLoadedOrAssignedValue)
|
---|
1182 | {
|
---|
1183 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
1184 | }
|
---|
1185 | this.OnResourceIdChanging(value);
|
---|
1186 | this.SendPropertyChanging();
|
---|
1187 | this._ResourceId = value;
|
---|
1188 | this.SendPropertyChanged("ResourceId");
|
---|
1189 | this.OnResourceIdChanged();
|
---|
1190 | }
|
---|
1191 | }
|
---|
1192 | }
|
---|
1193 |
|
---|
1194 | [Column(Storage="_Percentage", DbType="Float")]
|
---|
1195 | public System.Nullable<double> Percentage
|
---|
1196 | {
|
---|
1197 | get
|
---|
1198 | {
|
---|
1199 | return this._Percentage;
|
---|
1200 | }
|
---|
1201 | set
|
---|
1202 | {
|
---|
1203 | if ((this._Percentage != value))
|
---|
1204 | {
|
---|
1205 | this.OnPercentageChanging(value);
|
---|
1206 | this.SendPropertyChanging();
|
---|
1207 | this._Percentage = value;
|
---|
1208 | this.SendPropertyChanged("Percentage");
|
---|
1209 | this.OnPercentageChanged();
|
---|
1210 | }
|
---|
1211 | }
|
---|
1212 | }
|
---|
1213 |
|
---|
1214 | [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", UpdateCheck=UpdateCheck.Never)]
|
---|
1215 | public System.Data.Linq.Binary SerializedJob
|
---|
1216 | {
|
---|
1217 | get
|
---|
1218 | {
|
---|
1219 | return this._SerializedJob;
|
---|
1220 | }
|
---|
1221 | set
|
---|
1222 | {
|
---|
1223 | if ((this._SerializedJob != value))
|
---|
1224 | {
|
---|
1225 | this.OnSerializedJobChanging(value);
|
---|
1226 | this.SendPropertyChanging();
|
---|
1227 | this._SerializedJob = value;
|
---|
1228 | this.SendPropertyChanged("SerializedJob");
|
---|
1229 | this.OnSerializedJobChanged();
|
---|
1230 | }
|
---|
1231 | }
|
---|
1232 | }
|
---|
1233 |
|
---|
1234 | [Column(Storage="_DateCreated", DbType="DateTime")]
|
---|
1235 | public System.Nullable<System.DateTime> DateCreated
|
---|
1236 | {
|
---|
1237 | get
|
---|
1238 | {
|
---|
1239 | return this._DateCreated;
|
---|
1240 | }
|
---|
1241 | set
|
---|
1242 | {
|
---|
1243 | if ((this._DateCreated != value))
|
---|
1244 | {
|
---|
1245 | this.OnDateCreatedChanging(value);
|
---|
1246 | this.SendPropertyChanging();
|
---|
1247 | this._DateCreated = value;
|
---|
1248 | this.SendPropertyChanged("DateCreated");
|
---|
1249 | this.OnDateCreatedChanged();
|
---|
1250 | }
|
---|
1251 | }
|
---|
1252 | }
|
---|
1253 |
|
---|
1254 | [Column(Storage="_DateCalculated", DbType="DateTime")]
|
---|
1255 | public System.Nullable<System.DateTime> DateCalculated
|
---|
1256 | {
|
---|
1257 | get
|
---|
1258 | {
|
---|
1259 | return this._DateCalculated;
|
---|
1260 | }
|
---|
1261 | set
|
---|
1262 | {
|
---|
1263 | if ((this._DateCalculated != value))
|
---|
1264 | {
|
---|
1265 | this.OnDateCalculatedChanging(value);
|
---|
1266 | this.SendPropertyChanging();
|
---|
1267 | this._DateCalculated = value;
|
---|
1268 | this.SendPropertyChanged("DateCalculated");
|
---|
1269 | this.OnDateCalculatedChanged();
|
---|
1270 | }
|
---|
1271 | }
|
---|
1272 | }
|
---|
1273 |
|
---|
1274 | [Column(Storage="_DateFinished", DbType="DateTime")]
|
---|
1275 | public System.Nullable<System.DateTime> DateFinished
|
---|
1276 | {
|
---|
1277 | get
|
---|
1278 | {
|
---|
1279 | return this._DateFinished;
|
---|
1280 | }
|
---|
1281 | set
|
---|
1282 | {
|
---|
1283 | if ((this._DateFinished != value))
|
---|
1284 | {
|
---|
1285 | this.OnDateFinishedChanging(value);
|
---|
1286 | this.SendPropertyChanging();
|
---|
1287 | this._DateFinished = value;
|
---|
1288 | this.SendPropertyChanged("DateFinished");
|
---|
1289 | this.OnDateFinishedChanged();
|
---|
1290 | }
|
---|
1291 | }
|
---|
1292 | }
|
---|
1293 |
|
---|
1294 | [Column(Storage="_Priority", DbType="Int")]
|
---|
1295 | public System.Nullable<int> Priority
|
---|
1296 | {
|
---|
1297 | get
|
---|
1298 | {
|
---|
1299 | return this._Priority;
|
---|
1300 | }
|
---|
1301 | set
|
---|
1302 | {
|
---|
1303 | if ((this._Priority != value))
|
---|
1304 | {
|
---|
1305 | this.OnPriorityChanging(value);
|
---|
1306 | this.SendPropertyChanging();
|
---|
1307 | this._Priority = value;
|
---|
1308 | this.SendPropertyChanged("Priority");
|
---|
1309 | this.OnPriorityChanged();
|
---|
1310 | }
|
---|
1311 | }
|
---|
1312 | }
|
---|
1313 |
|
---|
1314 | [Column(Storage="_ProjectId", DbType="UniqueIdentifier")]
|
---|
1315 | public System.Nullable<System.Guid> ProjectId
|
---|
1316 | {
|
---|
1317 | get
|
---|
1318 | {
|
---|
1319 | return this._ProjectId;
|
---|
1320 | }
|
---|
1321 | set
|
---|
1322 | {
|
---|
1323 | if ((this._ProjectId != value))
|
---|
1324 | {
|
---|
1325 | if (this._Project.HasLoadedOrAssignedValue)
|
---|
1326 | {
|
---|
1327 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
1328 | }
|
---|
1329 | this.OnProjectIdChanging(value);
|
---|
1330 | this.SendPropertyChanging();
|
---|
1331 | this._ProjectId = value;
|
---|
1332 | this.SendPropertyChanged("ProjectId");
|
---|
1333 | this.OnProjectIdChanged();
|
---|
1334 | }
|
---|
1335 | }
|
---|
1336 | }
|
---|
1337 |
|
---|
1338 | [Column(Storage="_UserId", DbType="UniqueIdentifier")]
|
---|
1339 | public System.Nullable<System.Guid> UserId
|
---|
1340 | {
|
---|
1341 | get
|
---|
1342 | {
|
---|
1343 | return this._UserId;
|
---|
1344 | }
|
---|
1345 | set
|
---|
1346 | {
|
---|
1347 | if ((this._UserId != value))
|
---|
1348 | {
|
---|
1349 | this.OnUserIdChanging(value);
|
---|
1350 | this.SendPropertyChanging();
|
---|
1351 | this._UserId = value;
|
---|
1352 | this.SendPropertyChanged("UserId");
|
---|
1353 | this.OnUserIdChanged();
|
---|
1354 | }
|
---|
1355 | }
|
---|
1356 | }
|
---|
1357 |
|
---|
1358 | [Column(Storage="_CoresNeeded", DbType="Int")]
|
---|
1359 | public System.Nullable<int> CoresNeeded
|
---|
1360 | {
|
---|
1361 | get
|
---|
1362 | {
|
---|
1363 | return this._CoresNeeded;
|
---|
1364 | }
|
---|
1365 | set
|
---|
1366 | {
|
---|
1367 | if ((this._CoresNeeded != value))
|
---|
1368 | {
|
---|
1369 | this.OnCoresNeededChanging(value);
|
---|
1370 | this.SendPropertyChanging();
|
---|
1371 | this._CoresNeeded = value;
|
---|
1372 | this.SendPropertyChanged("CoresNeeded");
|
---|
1373 | this.OnCoresNeededChanged();
|
---|
1374 | }
|
---|
1375 | }
|
---|
1376 | }
|
---|
1377 |
|
---|
1378 | [Column(Storage="_MemoryNeeded", DbType="Int")]
|
---|
1379 | public System.Nullable<int> MemoryNeeded
|
---|
1380 | {
|
---|
1381 | get
|
---|
1382 | {
|
---|
1383 | return this._MemoryNeeded;
|
---|
1384 | }
|
---|
1385 | set
|
---|
1386 | {
|
---|
1387 | if ((this._MemoryNeeded != value))
|
---|
1388 | {
|
---|
1389 | this.OnMemoryNeededChanging(value);
|
---|
1390 | this.SendPropertyChanging();
|
---|
1391 | this._MemoryNeeded = value;
|
---|
1392 | this.SendPropertyChanged("MemoryNeeded");
|
---|
1393 | this.OnMemoryNeededChanged();
|
---|
1394 | }
|
---|
1395 | }
|
---|
1396 | }
|
---|
1397 |
|
---|
1398 | [Association(Name="Job_AssignedResource", Storage="_AssignedResources", ThisKey="JobId", OtherKey="JobId")]
|
---|
1399 | public EntitySet<AssignedResource> AssignedResources
|
---|
1400 | {
|
---|
1401 | get
|
---|
1402 | {
|
---|
1403 | return this._AssignedResources;
|
---|
1404 | }
|
---|
1405 | set
|
---|
1406 | {
|
---|
1407 | this._AssignedResources.Assign(value);
|
---|
1408 | }
|
---|
1409 | }
|
---|
1410 |
|
---|
1411 | [Association(Name="Job_Job", Storage="_Jobs", ThisKey="JobId", OtherKey="ParentJobId")]
|
---|
1412 | public EntitySet<Job> Jobs
|
---|
1413 | {
|
---|
1414 | get
|
---|
1415 | {
|
---|
1416 | return this._Jobs;
|
---|
1417 | }
|
---|
1418 | set
|
---|
1419 | {
|
---|
1420 | this._Jobs.Assign(value);
|
---|
1421 | }
|
---|
1422 | }
|
---|
1423 |
|
---|
1424 | [Association(Name="Job_RequiredPlugin", Storage="_RequiredPlugins", ThisKey="JobId", OtherKey="JobId")]
|
---|
1425 | public EntitySet<RequiredPlugin> RequiredPlugins
|
---|
1426 | {
|
---|
1427 | get
|
---|
1428 | {
|
---|
1429 | return this._RequiredPlugins;
|
---|
1430 | }
|
---|
1431 | set
|
---|
1432 | {
|
---|
1433 | this._RequiredPlugins.Assign(value);
|
---|
1434 | }
|
---|
1435 | }
|
---|
1436 |
|
---|
1437 | [Association(Name="Job_Job", Storage="_Job1", ThisKey="ParentJobId", OtherKey="JobId", IsForeignKey=true)]
|
---|
1438 | public Job Job1
|
---|
1439 | {
|
---|
1440 | get
|
---|
1441 | {
|
---|
1442 | return this._Job1.Entity;
|
---|
1443 | }
|
---|
1444 | set
|
---|
1445 | {
|
---|
1446 | Job previousValue = this._Job1.Entity;
|
---|
1447 | if (((previousValue != value)
|
---|
1448 | || (this._Job1.HasLoadedOrAssignedValue == false)))
|
---|
1449 | {
|
---|
1450 | this.SendPropertyChanging();
|
---|
1451 | if ((previousValue != null))
|
---|
1452 | {
|
---|
1453 | this._Job1.Entity = null;
|
---|
1454 | previousValue.Jobs.Remove(this);
|
---|
1455 | }
|
---|
1456 | this._Job1.Entity = value;
|
---|
1457 | if ((value != null))
|
---|
1458 | {
|
---|
1459 | value.Jobs.Add(this);
|
---|
1460 | this._ParentJobId = value.JobId;
|
---|
1461 | }
|
---|
1462 | else
|
---|
1463 | {
|
---|
1464 | this._ParentJobId = default(Nullable<System.Guid>);
|
---|
1465 | }
|
---|
1466 | this.SendPropertyChanged("Job1");
|
---|
1467 | }
|
---|
1468 | }
|
---|
1469 | }
|
---|
1470 |
|
---|
1471 | [Association(Name="Project_Job", Storage="_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true, DeleteRule="SET NULL")]
|
---|
1472 | public Project Project
|
---|
1473 | {
|
---|
1474 | get
|
---|
1475 | {
|
---|
1476 | return this._Project.Entity;
|
---|
1477 | }
|
---|
1478 | set
|
---|
1479 | {
|
---|
1480 | Project previousValue = this._Project.Entity;
|
---|
1481 | if (((previousValue != value)
|
---|
1482 | || (this._Project.HasLoadedOrAssignedValue == false)))
|
---|
1483 | {
|
---|
1484 | this.SendPropertyChanging();
|
---|
1485 | if ((previousValue != null))
|
---|
1486 | {
|
---|
1487 | this._Project.Entity = null;
|
---|
1488 | previousValue.Jobs.Remove(this);
|
---|
1489 | }
|
---|
1490 | this._Project.Entity = value;
|
---|
1491 | if ((value != null))
|
---|
1492 | {
|
---|
1493 | value.Jobs.Add(this);
|
---|
1494 | this._ProjectId = value.ProjectId;
|
---|
1495 | }
|
---|
1496 | else
|
---|
1497 | {
|
---|
1498 | this._ProjectId = default(Nullable<System.Guid>);
|
---|
1499 | }
|
---|
1500 | this.SendPropertyChanged("Project");
|
---|
1501 | }
|
---|
1502 | }
|
---|
1503 | }
|
---|
1504 |
|
---|
1505 | [Association(Name="Client_Job", Storage="_Client", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteRule="SET NULL")]
|
---|
1506 | public Client Client
|
---|
1507 | {
|
---|
1508 | get
|
---|
1509 | {
|
---|
1510 | return this._Client.Entity;
|
---|
1511 | }
|
---|
1512 | set
|
---|
1513 | {
|
---|
1514 | Client previousValue = this._Client.Entity;
|
---|
1515 | if (((previousValue != value)
|
---|
1516 | || (this._Client.HasLoadedOrAssignedValue == false)))
|
---|
1517 | {
|
---|
1518 | this.SendPropertyChanging();
|
---|
1519 | if ((previousValue != null))
|
---|
1520 | {
|
---|
1521 | this._Client.Entity = null;
|
---|
1522 | previousValue.Jobs.Remove(this);
|
---|
1523 | }
|
---|
1524 | this._Client.Entity = value;
|
---|
1525 | if ((value != null))
|
---|
1526 | {
|
---|
1527 | value.Jobs.Add(this);
|
---|
1528 | this._ResourceId = value.ResourceId;
|
---|
1529 | }
|
---|
1530 | else
|
---|
1531 | {
|
---|
1532 | this._ResourceId = default(Nullable<System.Guid>);
|
---|
1533 | }
|
---|
1534 | this.SendPropertyChanged("Client");
|
---|
1535 | }
|
---|
1536 | }
|
---|
1537 | }
|
---|
1538 |
|
---|
1539 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
1540 |
|
---|
1541 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
1542 |
|
---|
1543 | protected virtual void SendPropertyChanging()
|
---|
1544 | {
|
---|
1545 | if ((this.PropertyChanging != null))
|
---|
1546 | {
|
---|
1547 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
1548 | }
|
---|
1549 | }
|
---|
1550 |
|
---|
1551 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
1552 | {
|
---|
1553 | if ((this.PropertyChanged != null))
|
---|
1554 | {
|
---|
1555 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
1556 | }
|
---|
1557 | }
|
---|
1558 |
|
---|
1559 | private void attach_AssignedResources(AssignedResource entity)
|
---|
1560 | {
|
---|
1561 | this.SendPropertyChanging();
|
---|
1562 | entity.Job = this;
|
---|
1563 | }
|
---|
1564 |
|
---|
1565 | private void detach_AssignedResources(AssignedResource entity)
|
---|
1566 | {
|
---|
1567 | this.SendPropertyChanging();
|
---|
1568 | entity.Job = null;
|
---|
1569 | }
|
---|
1570 |
|
---|
1571 | private void attach_Jobs(Job entity)
|
---|
1572 | {
|
---|
1573 | this.SendPropertyChanging();
|
---|
1574 | entity.Job1 = this;
|
---|
1575 | }
|
---|
1576 |
|
---|
1577 | private void detach_Jobs(Job entity)
|
---|
1578 | {
|
---|
1579 | this.SendPropertyChanging();
|
---|
1580 | entity.Job1 = null;
|
---|
1581 | }
|
---|
1582 |
|
---|
1583 | private void attach_RequiredPlugins(RequiredPlugin entity)
|
---|
1584 | {
|
---|
1585 | this.SendPropertyChanging();
|
---|
1586 | entity.Job = this;
|
---|
1587 | }
|
---|
1588 |
|
---|
1589 | private void detach_RequiredPlugins(RequiredPlugin entity)
|
---|
1590 | {
|
---|
1591 | this.SendPropertyChanging();
|
---|
1592 | entity.Job = null;
|
---|
1593 | }
|
---|
1594 | }
|
---|
1595 |
|
---|
1596 | [Table(Name="dbo.PluginInfo")]
|
---|
1597 | public partial class PluginInfo : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
1598 | {
|
---|
1599 |
|
---|
1600 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
1601 |
|
---|
1602 | private System.Guid _PluginId;
|
---|
1603 |
|
---|
1604 | private string _Name;
|
---|
1605 |
|
---|
1606 | private string _Version;
|
---|
1607 |
|
---|
1608 | private string _BuildDate;
|
---|
1609 |
|
---|
1610 | private EntitySet<RequiredPlugin> _RequiredPlugins;
|
---|
1611 |
|
---|
1612 | #region Extensibility Method Definitions
|
---|
1613 | partial void OnLoaded();
|
---|
1614 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
1615 | partial void OnCreated();
|
---|
1616 | partial void OnPluginIdChanging(System.Guid value);
|
---|
1617 | partial void OnPluginIdChanged();
|
---|
1618 | partial void OnNameChanging(string value);
|
---|
1619 | partial void OnNameChanged();
|
---|
1620 | partial void OnVersionChanging(string value);
|
---|
1621 | partial void OnVersionChanged();
|
---|
1622 | partial void OnBuildDateChanging(string value);
|
---|
1623 | partial void OnBuildDateChanged();
|
---|
1624 | #endregion
|
---|
1625 |
|
---|
1626 | public PluginInfo()
|
---|
1627 | {
|
---|
1628 | this._RequiredPlugins = new EntitySet<RequiredPlugin>(new Action<RequiredPlugin>(this.attach_RequiredPlugins), new Action<RequiredPlugin>(this.detach_RequiredPlugins));
|
---|
1629 | OnCreated();
|
---|
1630 | }
|
---|
1631 |
|
---|
1632 | [Column(Storage="_PluginId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
1633 | public System.Guid PluginId
|
---|
1634 | {
|
---|
1635 | get
|
---|
1636 | {
|
---|
1637 | return this._PluginId;
|
---|
1638 | }
|
---|
1639 | set
|
---|
1640 | {
|
---|
1641 | if ((this._PluginId != value))
|
---|
1642 | {
|
---|
1643 | this.OnPluginIdChanging(value);
|
---|
1644 | this.SendPropertyChanging();
|
---|
1645 | this._PluginId = value;
|
---|
1646 | this.SendPropertyChanged("PluginId");
|
---|
1647 | this.OnPluginIdChanged();
|
---|
1648 | }
|
---|
1649 | }
|
---|
1650 | }
|
---|
1651 |
|
---|
1652 | [Column(Storage="_Name", DbType="VarChar(MAX)")]
|
---|
1653 | public string Name
|
---|
1654 | {
|
---|
1655 | get
|
---|
1656 | {
|
---|
1657 | return this._Name;
|
---|
1658 | }
|
---|
1659 | set
|
---|
1660 | {
|
---|
1661 | if ((this._Name != value))
|
---|
1662 | {
|
---|
1663 | this.OnNameChanging(value);
|
---|
1664 | this.SendPropertyChanging();
|
---|
1665 | this._Name = value;
|
---|
1666 | this.SendPropertyChanged("Name");
|
---|
1667 | this.OnNameChanged();
|
---|
1668 | }
|
---|
1669 | }
|
---|
1670 | }
|
---|
1671 |
|
---|
1672 | [Column(Storage="_Version", DbType="VarChar(MAX)")]
|
---|
1673 | public string Version
|
---|
1674 | {
|
---|
1675 | get
|
---|
1676 | {
|
---|
1677 | return this._Version;
|
---|
1678 | }
|
---|
1679 | set
|
---|
1680 | {
|
---|
1681 | if ((this._Version != value))
|
---|
1682 | {
|
---|
1683 | this.OnVersionChanging(value);
|
---|
1684 | this.SendPropertyChanging();
|
---|
1685 | this._Version = value;
|
---|
1686 | this.SendPropertyChanged("Version");
|
---|
1687 | this.OnVersionChanged();
|
---|
1688 | }
|
---|
1689 | }
|
---|
1690 | }
|
---|
1691 |
|
---|
1692 | [Column(Storage="_BuildDate", DbType="VarChar(20)")]
|
---|
1693 | public string BuildDate
|
---|
1694 | {
|
---|
1695 | get
|
---|
1696 | {
|
---|
1697 | return this._BuildDate;
|
---|
1698 | }
|
---|
1699 | set
|
---|
1700 | {
|
---|
1701 | if ((this._BuildDate != value))
|
---|
1702 | {
|
---|
1703 | this.OnBuildDateChanging(value);
|
---|
1704 | this.SendPropertyChanging();
|
---|
1705 | this._BuildDate = value;
|
---|
1706 | this.SendPropertyChanged("BuildDate");
|
---|
1707 | this.OnBuildDateChanged();
|
---|
1708 | }
|
---|
1709 | }
|
---|
1710 | }
|
---|
1711 |
|
---|
1712 | [Association(Name="PluginInfo_RequiredPlugin", Storage="_RequiredPlugins", ThisKey="PluginId", OtherKey="PluginId")]
|
---|
1713 | public EntitySet<RequiredPlugin> RequiredPlugins
|
---|
1714 | {
|
---|
1715 | get
|
---|
1716 | {
|
---|
1717 | return this._RequiredPlugins;
|
---|
1718 | }
|
---|
1719 | set
|
---|
1720 | {
|
---|
1721 | this._RequiredPlugins.Assign(value);
|
---|
1722 | }
|
---|
1723 | }
|
---|
1724 |
|
---|
1725 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
1726 |
|
---|
1727 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
1728 |
|
---|
1729 | protected virtual void SendPropertyChanging()
|
---|
1730 | {
|
---|
1731 | if ((this.PropertyChanging != null))
|
---|
1732 | {
|
---|
1733 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
1734 | }
|
---|
1735 | }
|
---|
1736 |
|
---|
1737 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
1738 | {
|
---|
1739 | if ((this.PropertyChanged != null))
|
---|
1740 | {
|
---|
1741 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
1742 | }
|
---|
1743 | }
|
---|
1744 |
|
---|
1745 | private void attach_RequiredPlugins(RequiredPlugin entity)
|
---|
1746 | {
|
---|
1747 | this.SendPropertyChanging();
|
---|
1748 | entity.PluginInfo = this;
|
---|
1749 | }
|
---|
1750 |
|
---|
1751 | private void detach_RequiredPlugins(RequiredPlugin entity)
|
---|
1752 | {
|
---|
1753 | this.SendPropertyChanging();
|
---|
1754 | entity.PluginInfo = null;
|
---|
1755 | }
|
---|
1756 | }
|
---|
1757 |
|
---|
1758 | [Table(Name="dbo.Project")]
|
---|
1759 | public partial class Project : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
1760 | {
|
---|
1761 |
|
---|
1762 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
1763 |
|
---|
1764 | private System.Guid _ProjectId;
|
---|
1765 |
|
---|
1766 | private string _Name;
|
---|
1767 |
|
---|
1768 | private EntitySet<Job> _Jobs;
|
---|
1769 |
|
---|
1770 | #region Extensibility Method Definitions
|
---|
1771 | partial void OnLoaded();
|
---|
1772 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
1773 | partial void OnCreated();
|
---|
1774 | partial void OnProjectIdChanging(System.Guid value);
|
---|
1775 | partial void OnProjectIdChanged();
|
---|
1776 | partial void OnNameChanging(string value);
|
---|
1777 | partial void OnNameChanged();
|
---|
1778 | #endregion
|
---|
1779 |
|
---|
1780 | public Project()
|
---|
1781 | {
|
---|
1782 | this._Jobs = new EntitySet<Job>(new Action<Job>(this.attach_Jobs), new Action<Job>(this.detach_Jobs));
|
---|
1783 | OnCreated();
|
---|
1784 | }
|
---|
1785 |
|
---|
1786 | [Column(Storage="_ProjectId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
1787 | public System.Guid ProjectId
|
---|
1788 | {
|
---|
1789 | get
|
---|
1790 | {
|
---|
1791 | return this._ProjectId;
|
---|
1792 | }
|
---|
1793 | set
|
---|
1794 | {
|
---|
1795 | if ((this._ProjectId != value))
|
---|
1796 | {
|
---|
1797 | this.OnProjectIdChanging(value);
|
---|
1798 | this.SendPropertyChanging();
|
---|
1799 | this._ProjectId = value;
|
---|
1800 | this.SendPropertyChanged("ProjectId");
|
---|
1801 | this.OnProjectIdChanged();
|
---|
1802 | }
|
---|
1803 | }
|
---|
1804 | }
|
---|
1805 |
|
---|
1806 | [Column(Storage="_Name", DbType="VarChar(MAX)")]
|
---|
1807 | public string Name
|
---|
1808 | {
|
---|
1809 | get
|
---|
1810 | {
|
---|
1811 | return this._Name;
|
---|
1812 | }
|
---|
1813 | set
|
---|
1814 | {
|
---|
1815 | if ((this._Name != value))
|
---|
1816 | {
|
---|
1817 | this.OnNameChanging(value);
|
---|
1818 | this.SendPropertyChanging();
|
---|
1819 | this._Name = value;
|
---|
1820 | this.SendPropertyChanged("Name");
|
---|
1821 | this.OnNameChanged();
|
---|
1822 | }
|
---|
1823 | }
|
---|
1824 | }
|
---|
1825 |
|
---|
1826 | [Association(Name="Project_Job", Storage="_Jobs", ThisKey="ProjectId", OtherKey="ProjectId")]
|
---|
1827 | public EntitySet<Job> Jobs
|
---|
1828 | {
|
---|
1829 | get
|
---|
1830 | {
|
---|
1831 | return this._Jobs;
|
---|
1832 | }
|
---|
1833 | set
|
---|
1834 | {
|
---|
1835 | this._Jobs.Assign(value);
|
---|
1836 | }
|
---|
1837 | }
|
---|
1838 |
|
---|
1839 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
1840 |
|
---|
1841 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
1842 |
|
---|
1843 | protected virtual void SendPropertyChanging()
|
---|
1844 | {
|
---|
1845 | if ((this.PropertyChanging != null))
|
---|
1846 | {
|
---|
1847 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
1848 | }
|
---|
1849 | }
|
---|
1850 |
|
---|
1851 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
1852 | {
|
---|
1853 | if ((this.PropertyChanged != null))
|
---|
1854 | {
|
---|
1855 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
1856 | }
|
---|
1857 | }
|
---|
1858 |
|
---|
1859 | private void attach_Jobs(Job entity)
|
---|
1860 | {
|
---|
1861 | this.SendPropertyChanging();
|
---|
1862 | entity.Project = this;
|
---|
1863 | }
|
---|
1864 |
|
---|
1865 | private void detach_Jobs(Job entity)
|
---|
1866 | {
|
---|
1867 | this.SendPropertyChanging();
|
---|
1868 | entity.Project = null;
|
---|
1869 | }
|
---|
1870 | }
|
---|
1871 |
|
---|
1872 | [Table(Name="dbo.RequiredPlugins")]
|
---|
1873 | public partial class RequiredPlugin : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
1874 | {
|
---|
1875 |
|
---|
1876 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
1877 |
|
---|
1878 | private System.Guid _JobId;
|
---|
1879 |
|
---|
1880 | private System.Guid _PluginId;
|
---|
1881 |
|
---|
1882 | private System.Guid _RequiredPluginId;
|
---|
1883 |
|
---|
1884 | private EntityRef<Job> _Job;
|
---|
1885 |
|
---|
1886 | private EntityRef<PluginInfo> _PluginInfo;
|
---|
1887 |
|
---|
1888 | #region Extensibility Method Definitions
|
---|
1889 | partial void OnLoaded();
|
---|
1890 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
1891 | partial void OnCreated();
|
---|
1892 | partial void OnJobIdChanging(System.Guid value);
|
---|
1893 | partial void OnJobIdChanged();
|
---|
1894 | partial void OnPluginIdChanging(System.Guid value);
|
---|
1895 | partial void OnPluginIdChanged();
|
---|
1896 | partial void OnRequiredPluginIdChanging(System.Guid value);
|
---|
1897 | partial void OnRequiredPluginIdChanged();
|
---|
1898 | #endregion
|
---|
1899 |
|
---|
1900 | public RequiredPlugin()
|
---|
1901 | {
|
---|
1902 | this._Job = default(EntityRef<Job>);
|
---|
1903 | this._PluginInfo = default(EntityRef<PluginInfo>);
|
---|
1904 | OnCreated();
|
---|
1905 | }
|
---|
1906 |
|
---|
1907 | [Column(Storage="_JobId", DbType="UniqueIdentifier NOT NULL")]
|
---|
1908 | public System.Guid JobId
|
---|
1909 | {
|
---|
1910 | get
|
---|
1911 | {
|
---|
1912 | return this._JobId;
|
---|
1913 | }
|
---|
1914 | set
|
---|
1915 | {
|
---|
1916 | if ((this._JobId != value))
|
---|
1917 | {
|
---|
1918 | if (this._Job.HasLoadedOrAssignedValue)
|
---|
1919 | {
|
---|
1920 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
1921 | }
|
---|
1922 | this.OnJobIdChanging(value);
|
---|
1923 | this.SendPropertyChanging();
|
---|
1924 | this._JobId = value;
|
---|
1925 | this.SendPropertyChanged("JobId");
|
---|
1926 | this.OnJobIdChanged();
|
---|
1927 | }
|
---|
1928 | }
|
---|
1929 | }
|
---|
1930 |
|
---|
1931 | [Column(Storage="_PluginId", DbType="UniqueIdentifier NOT NULL")]
|
---|
1932 | public System.Guid PluginId
|
---|
1933 | {
|
---|
1934 | get
|
---|
1935 | {
|
---|
1936 | return this._PluginId;
|
---|
1937 | }
|
---|
1938 | set
|
---|
1939 | {
|
---|
1940 | if ((this._PluginId != value))
|
---|
1941 | {
|
---|
1942 | if (this._PluginInfo.HasLoadedOrAssignedValue)
|
---|
1943 | {
|
---|
1944 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
1945 | }
|
---|
1946 | this.OnPluginIdChanging(value);
|
---|
1947 | this.SendPropertyChanging();
|
---|
1948 | this._PluginId = value;
|
---|
1949 | this.SendPropertyChanged("PluginId");
|
---|
1950 | this.OnPluginIdChanged();
|
---|
1951 | }
|
---|
1952 | }
|
---|
1953 | }
|
---|
1954 |
|
---|
1955 | [Column(Storage="_RequiredPluginId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
1956 | public System.Guid RequiredPluginId
|
---|
1957 | {
|
---|
1958 | get
|
---|
1959 | {
|
---|
1960 | return this._RequiredPluginId;
|
---|
1961 | }
|
---|
1962 | set
|
---|
1963 | {
|
---|
1964 | if ((this._RequiredPluginId != value))
|
---|
1965 | {
|
---|
1966 | this.OnRequiredPluginIdChanging(value);
|
---|
1967 | this.SendPropertyChanging();
|
---|
1968 | this._RequiredPluginId = value;
|
---|
1969 | this.SendPropertyChanged("RequiredPluginId");
|
---|
1970 | this.OnRequiredPluginIdChanged();
|
---|
1971 | }
|
---|
1972 | }
|
---|
1973 | }
|
---|
1974 |
|
---|
1975 | [Association(Name="Job_RequiredPlugin", Storage="_Job", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true)]
|
---|
1976 | public Job Job
|
---|
1977 | {
|
---|
1978 | get
|
---|
1979 | {
|
---|
1980 | return this._Job.Entity;
|
---|
1981 | }
|
---|
1982 | set
|
---|
1983 | {
|
---|
1984 | Job previousValue = this._Job.Entity;
|
---|
1985 | if (((previousValue != value)
|
---|
1986 | || (this._Job.HasLoadedOrAssignedValue == false)))
|
---|
1987 | {
|
---|
1988 | this.SendPropertyChanging();
|
---|
1989 | if ((previousValue != null))
|
---|
1990 | {
|
---|
1991 | this._Job.Entity = null;
|
---|
1992 | previousValue.RequiredPlugins.Remove(this);
|
---|
1993 | }
|
---|
1994 | this._Job.Entity = value;
|
---|
1995 | if ((value != null))
|
---|
1996 | {
|
---|
1997 | value.RequiredPlugins.Add(this);
|
---|
1998 | this._JobId = value.JobId;
|
---|
1999 | }
|
---|
2000 | else
|
---|
2001 | {
|
---|
2002 | this._JobId = default(System.Guid);
|
---|
2003 | }
|
---|
2004 | this.SendPropertyChanged("Job");
|
---|
2005 | }
|
---|
2006 | }
|
---|
2007 | }
|
---|
2008 |
|
---|
2009 | [Association(Name="PluginInfo_RequiredPlugin", Storage="_PluginInfo", ThisKey="PluginId", OtherKey="PluginId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
|
---|
2010 | public PluginInfo PluginInfo
|
---|
2011 | {
|
---|
2012 | get
|
---|
2013 | {
|
---|
2014 | return this._PluginInfo.Entity;
|
---|
2015 | }
|
---|
2016 | set
|
---|
2017 | {
|
---|
2018 | PluginInfo previousValue = this._PluginInfo.Entity;
|
---|
2019 | if (((previousValue != value)
|
---|
2020 | || (this._PluginInfo.HasLoadedOrAssignedValue == false)))
|
---|
2021 | {
|
---|
2022 | this.SendPropertyChanging();
|
---|
2023 | if ((previousValue != null))
|
---|
2024 | {
|
---|
2025 | this._PluginInfo.Entity = null;
|
---|
2026 | previousValue.RequiredPlugins.Remove(this);
|
---|
2027 | }
|
---|
2028 | this._PluginInfo.Entity = value;
|
---|
2029 | if ((value != null))
|
---|
2030 | {
|
---|
2031 | value.RequiredPlugins.Add(this);
|
---|
2032 | this._PluginId = value.PluginId;
|
---|
2033 | }
|
---|
2034 | else
|
---|
2035 | {
|
---|
2036 | this._PluginId = default(System.Guid);
|
---|
2037 | }
|
---|
2038 | this.SendPropertyChanged("PluginInfo");
|
---|
2039 | }
|
---|
2040 | }
|
---|
2041 | }
|
---|
2042 |
|
---|
2043 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
2044 |
|
---|
2045 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
2046 |
|
---|
2047 | protected virtual void SendPropertyChanging()
|
---|
2048 | {
|
---|
2049 | if ((this.PropertyChanging != null))
|
---|
2050 | {
|
---|
2051 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
2052 | }
|
---|
2053 | }
|
---|
2054 |
|
---|
2055 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
2056 | {
|
---|
2057 | if ((this.PropertyChanged != null))
|
---|
2058 | {
|
---|
2059 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
2060 | }
|
---|
2061 | }
|
---|
2062 | }
|
---|
2063 |
|
---|
2064 | [Table(Name="dbo.Resource")]
|
---|
2065 | public partial class Resource : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
2066 | {
|
---|
2067 |
|
---|
2068 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
2069 |
|
---|
2070 | private System.Guid _ResourceId;
|
---|
2071 |
|
---|
2072 | private string _Name;
|
---|
2073 |
|
---|
2074 | private EntitySet<AssignedResource> _AssignedResources;
|
---|
2075 |
|
---|
2076 | private EntityRef<ClientGroup> _ClientGroup;
|
---|
2077 |
|
---|
2078 | private EntitySet<ClientGroup_Resource> _ClientGroup_Resources;
|
---|
2079 |
|
---|
2080 | private EntityRef<Client> _Client;
|
---|
2081 |
|
---|
2082 | #region Extensibility Method Definitions
|
---|
2083 | partial void OnLoaded();
|
---|
2084 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
2085 | partial void OnCreated();
|
---|
2086 | partial void OnResourceIdChanging(System.Guid value);
|
---|
2087 | partial void OnResourceIdChanged();
|
---|
2088 | partial void OnNameChanging(string value);
|
---|
2089 | partial void OnNameChanged();
|
---|
2090 | #endregion
|
---|
2091 |
|
---|
2092 | public Resource()
|
---|
2093 | {
|
---|
2094 | this._AssignedResources = new EntitySet<AssignedResource>(new Action<AssignedResource>(this.attach_AssignedResources), new Action<AssignedResource>(this.detach_AssignedResources));
|
---|
2095 | this._ClientGroup = default(EntityRef<ClientGroup>);
|
---|
2096 | this._ClientGroup_Resources = new EntitySet<ClientGroup_Resource>(new Action<ClientGroup_Resource>(this.attach_ClientGroup_Resources), new Action<ClientGroup_Resource>(this.detach_ClientGroup_Resources));
|
---|
2097 | this._Client = default(EntityRef<Client>);
|
---|
2098 | OnCreated();
|
---|
2099 | }
|
---|
2100 |
|
---|
2101 | [Column(Storage="_ResourceId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
|
---|
2102 | public System.Guid ResourceId
|
---|
2103 | {
|
---|
2104 | get
|
---|
2105 | {
|
---|
2106 | return this._ResourceId;
|
---|
2107 | }
|
---|
2108 | set
|
---|
2109 | {
|
---|
2110 | if ((this._ResourceId != value))
|
---|
2111 | {
|
---|
2112 | this.OnResourceIdChanging(value);
|
---|
2113 | this.SendPropertyChanging();
|
---|
2114 | this._ResourceId = value;
|
---|
2115 | this.SendPropertyChanged("ResourceId");
|
---|
2116 | this.OnResourceIdChanged();
|
---|
2117 | }
|
---|
2118 | }
|
---|
2119 | }
|
---|
2120 |
|
---|
2121 | [Column(Storage="_Name", DbType="VarChar(MAX)")]
|
---|
2122 | public string Name
|
---|
2123 | {
|
---|
2124 | get
|
---|
2125 | {
|
---|
2126 | return this._Name;
|
---|
2127 | }
|
---|
2128 | set
|
---|
2129 | {
|
---|
2130 | if ((this._Name != value))
|
---|
2131 | {
|
---|
2132 | this.OnNameChanging(value);
|
---|
2133 | this.SendPropertyChanging();
|
---|
2134 | this._Name = value;
|
---|
2135 | this.SendPropertyChanged("Name");
|
---|
2136 | this.OnNameChanged();
|
---|
2137 | }
|
---|
2138 | }
|
---|
2139 | }
|
---|
2140 |
|
---|
2141 | [Association(Name="Resource_AssignedResource", Storage="_AssignedResources", ThisKey="ResourceId", OtherKey="ResourceId")]
|
---|
2142 | public EntitySet<AssignedResource> AssignedResources
|
---|
2143 | {
|
---|
2144 | get
|
---|
2145 | {
|
---|
2146 | return this._AssignedResources;
|
---|
2147 | }
|
---|
2148 | set
|
---|
2149 | {
|
---|
2150 | this._AssignedResources.Assign(value);
|
---|
2151 | }
|
---|
2152 | }
|
---|
2153 |
|
---|
2154 | [Association(Name="Resource_ClientGroup", Storage="_ClientGroup", ThisKey="ResourceId", OtherKey="ResourceId", IsUnique=true, IsForeignKey=false)]
|
---|
2155 | public ClientGroup ClientGroup
|
---|
2156 | {
|
---|
2157 | get
|
---|
2158 | {
|
---|
2159 | return this._ClientGroup.Entity;
|
---|
2160 | }
|
---|
2161 | set
|
---|
2162 | {
|
---|
2163 | ClientGroup previousValue = this._ClientGroup.Entity;
|
---|
2164 | if (((previousValue != value)
|
---|
2165 | || (this._ClientGroup.HasLoadedOrAssignedValue == false)))
|
---|
2166 | {
|
---|
2167 | this.SendPropertyChanging();
|
---|
2168 | if ((previousValue != null))
|
---|
2169 | {
|
---|
2170 | this._ClientGroup.Entity = null;
|
---|
2171 | previousValue.Resource = null;
|
---|
2172 | }
|
---|
2173 | this._ClientGroup.Entity = value;
|
---|
2174 | if ((value != null))
|
---|
2175 | {
|
---|
2176 | value.Resource = this;
|
---|
2177 | }
|
---|
2178 | this.SendPropertyChanged("ClientGroup");
|
---|
2179 | }
|
---|
2180 | }
|
---|
2181 | }
|
---|
2182 |
|
---|
2183 | [Association(Name="Resource_ClientGroup_Resource", Storage="_ClientGroup_Resources", ThisKey="ResourceId", OtherKey="ResourceId")]
|
---|
2184 | public EntitySet<ClientGroup_Resource> ClientGroup_Resources
|
---|
2185 | {
|
---|
2186 | get
|
---|
2187 | {
|
---|
2188 | return this._ClientGroup_Resources;
|
---|
2189 | }
|
---|
2190 | set
|
---|
2191 | {
|
---|
2192 | this._ClientGroup_Resources.Assign(value);
|
---|
2193 | }
|
---|
2194 | }
|
---|
2195 |
|
---|
2196 | [Association(Name="Resource_Client", Storage="_Client", ThisKey="ResourceId", OtherKey="ResourceId", IsUnique=true, IsForeignKey=false)]
|
---|
2197 | public Client Client
|
---|
2198 | {
|
---|
2199 | get
|
---|
2200 | {
|
---|
2201 | return this._Client.Entity;
|
---|
2202 | }
|
---|
2203 | set
|
---|
2204 | {
|
---|
2205 | Client previousValue = this._Client.Entity;
|
---|
2206 | if (((previousValue != value)
|
---|
2207 | || (this._Client.HasLoadedOrAssignedValue == false)))
|
---|
2208 | {
|
---|
2209 | this.SendPropertyChanging();
|
---|
2210 | if ((previousValue != null))
|
---|
2211 | {
|
---|
2212 | this._Client.Entity = null;
|
---|
2213 | previousValue.Resource = null;
|
---|
2214 | }
|
---|
2215 | this._Client.Entity = value;
|
---|
2216 | if ((value != null))
|
---|
2217 | {
|
---|
2218 | value.Resource = this;
|
---|
2219 | }
|
---|
2220 | this.SendPropertyChanged("Client");
|
---|
2221 | }
|
---|
2222 | }
|
---|
2223 | }
|
---|
2224 |
|
---|
2225 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
2226 |
|
---|
2227 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
2228 |
|
---|
2229 | protected virtual void SendPropertyChanging()
|
---|
2230 | {
|
---|
2231 | if ((this.PropertyChanging != null))
|
---|
2232 | {
|
---|
2233 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
2234 | }
|
---|
2235 | }
|
---|
2236 |
|
---|
2237 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
2238 | {
|
---|
2239 | if ((this.PropertyChanged != null))
|
---|
2240 | {
|
---|
2241 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
2242 | }
|
---|
2243 | }
|
---|
2244 |
|
---|
2245 | private void attach_AssignedResources(AssignedResource entity)
|
---|
2246 | {
|
---|
2247 | this.SendPropertyChanging();
|
---|
2248 | entity.Resource = this;
|
---|
2249 | }
|
---|
2250 |
|
---|
2251 | private void detach_AssignedResources(AssignedResource entity)
|
---|
2252 | {
|
---|
2253 | this.SendPropertyChanging();
|
---|
2254 | entity.Resource = null;
|
---|
2255 | }
|
---|
2256 |
|
---|
2257 | private void attach_ClientGroup_Resources(ClientGroup_Resource entity)
|
---|
2258 | {
|
---|
2259 | this.SendPropertyChanging();
|
---|
2260 | entity.Resource = this;
|
---|
2261 | }
|
---|
2262 |
|
---|
2263 | private void detach_ClientGroup_Resources(ClientGroup_Resource entity)
|
---|
2264 | {
|
---|
2265 | this.SendPropertyChanging();
|
---|
2266 | entity.Resource = null;
|
---|
2267 | }
|
---|
2268 | }
|
---|
2269 |
|
---|
2270 | [Table(Name="dbo.Client")]
|
---|
2271 | public partial class Client : INotifyPropertyChanging, INotifyPropertyChanged
|
---|
2272 | {
|
---|
2273 |
|
---|
2274 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
2275 |
|
---|
2276 | private System.Guid _ResourceId;
|
---|
2277 |
|
---|
2278 | private int _CPUSpeed;
|
---|
2279 |
|
---|
2280 | private int _Memory;
|
---|
2281 |
|
---|
2282 | private System.DateTime _Login;
|
---|
2283 |
|
---|
2284 | private string _Status;
|
---|
2285 |
|
---|
2286 | private System.Nullable<System.Guid> _ClientConfigId;
|
---|
2287 |
|
---|
2288 | private int _NumberOfCores;
|
---|
2289 |
|
---|
2290 | private int _NumberOfFreeCores;
|
---|
2291 |
|
---|
2292 | private int _FreeMemory;
|
---|
2293 |
|
---|
2294 | private EntitySet<UptimeStatistic> _UptimeStatistics;
|
---|
2295 |
|
---|
2296 | private EntitySet<Job> _Jobs;
|
---|
2297 |
|
---|
2298 | private EntityRef<Resource> _Resource;
|
---|
2299 |
|
---|
2300 | private EntityRef<ClientConfig> _ClientConfig;
|
---|
2301 |
|
---|
2302 | #region Extensibility Method Definitions
|
---|
2303 | partial void OnLoaded();
|
---|
2304 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
2305 | partial void OnCreated();
|
---|
2306 | partial void OnResourceIdChanging(System.Guid value);
|
---|
2307 | partial void OnResourceIdChanged();
|
---|
2308 | partial void OnCPUSpeedChanging(int value);
|
---|
2309 | partial void OnCPUSpeedChanged();
|
---|
2310 | partial void OnMemoryChanging(int value);
|
---|
2311 | partial void OnMemoryChanged();
|
---|
2312 | partial void OnLoginChanging(System.DateTime value);
|
---|
2313 | partial void OnLoginChanged();
|
---|
2314 | partial void OnStatusChanging(string value);
|
---|
2315 | partial void OnStatusChanged();
|
---|
2316 | partial void OnClientConfigIdChanging(System.Nullable<System.Guid> value);
|
---|
2317 | partial void OnClientConfigIdChanged();
|
---|
2318 | partial void OnNumberOfCoresChanging(int value);
|
---|
2319 | partial void OnNumberOfCoresChanged();
|
---|
2320 | partial void OnNumberOfFreeCoresChanging(int value);
|
---|
2321 | partial void OnNumberOfFreeCoresChanged();
|
---|
2322 | partial void OnFreeMemoryChanging(int value);
|
---|
2323 | partial void OnFreeMemoryChanged();
|
---|
2324 | #endregion
|
---|
2325 |
|
---|
2326 | public Client()
|
---|
2327 | {
|
---|
2328 | this._UptimeStatistics = new EntitySet<UptimeStatistic>(new Action<UptimeStatistic>(this.attach_UptimeStatistics), new Action<UptimeStatistic>(this.detach_UptimeStatistics));
|
---|
2329 | this._Jobs = new EntitySet<Job>(new Action<Job>(this.attach_Jobs), new Action<Job>(this.detach_Jobs));
|
---|
2330 | this._Resource = default(EntityRef<Resource>);
|
---|
2331 | this._ClientConfig = default(EntityRef<ClientConfig>);
|
---|
2332 | OnCreated();
|
---|
2333 | }
|
---|
2334 |
|
---|
2335 | [Column(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]
|
---|
2336 | public System.Guid ResourceId
|
---|
2337 | {
|
---|
2338 | get
|
---|
2339 | {
|
---|
2340 | return this._ResourceId;
|
---|
2341 | }
|
---|
2342 | set
|
---|
2343 | {
|
---|
2344 | if ((this._ResourceId != value))
|
---|
2345 | {
|
---|
2346 | if (this._Resource.HasLoadedOrAssignedValue)
|
---|
2347 | {
|
---|
2348 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
2349 | }
|
---|
2350 | this.OnResourceIdChanging(value);
|
---|
2351 | this.SendPropertyChanging();
|
---|
2352 | this._ResourceId = value;
|
---|
2353 | this.SendPropertyChanged("ResourceId");
|
---|
2354 | this.OnResourceIdChanged();
|
---|
2355 | }
|
---|
2356 | }
|
---|
2357 | }
|
---|
2358 |
|
---|
2359 | [Column(Storage="_CPUSpeed", DbType="Int NOT NULL")]
|
---|
2360 | public int CPUSpeed
|
---|
2361 | {
|
---|
2362 | get
|
---|
2363 | {
|
---|
2364 | return this._CPUSpeed;
|
---|
2365 | }
|
---|
2366 | set
|
---|
2367 | {
|
---|
2368 | if ((this._CPUSpeed != value))
|
---|
2369 | {
|
---|
2370 | this.OnCPUSpeedChanging(value);
|
---|
2371 | this.SendPropertyChanging();
|
---|
2372 | this._CPUSpeed = value;
|
---|
2373 | this.SendPropertyChanged("CPUSpeed");
|
---|
2374 | this.OnCPUSpeedChanged();
|
---|
2375 | }
|
---|
2376 | }
|
---|
2377 | }
|
---|
2378 |
|
---|
2379 | [Column(Storage="_Memory", DbType="Int NOT NULL")]
|
---|
2380 | public int Memory
|
---|
2381 | {
|
---|
2382 | get
|
---|
2383 | {
|
---|
2384 | return this._Memory;
|
---|
2385 | }
|
---|
2386 | set
|
---|
2387 | {
|
---|
2388 | if ((this._Memory != value))
|
---|
2389 | {
|
---|
2390 | this.OnMemoryChanging(value);
|
---|
2391 | this.SendPropertyChanging();
|
---|
2392 | this._Memory = value;
|
---|
2393 | this.SendPropertyChanged("Memory");
|
---|
2394 | this.OnMemoryChanged();
|
---|
2395 | }
|
---|
2396 | }
|
---|
2397 | }
|
---|
2398 |
|
---|
2399 | [Column(Storage="_Login", DbType="DateTime NOT NULL")]
|
---|
2400 | public System.DateTime Login
|
---|
2401 | {
|
---|
2402 | get
|
---|
2403 | {
|
---|
2404 | return this._Login;
|
---|
2405 | }
|
---|
2406 | set
|
---|
2407 | {
|
---|
2408 | if ((this._Login != value))
|
---|
2409 | {
|
---|
2410 | this.OnLoginChanging(value);
|
---|
2411 | this.SendPropertyChanging();
|
---|
2412 | this._Login = value;
|
---|
2413 | this.SendPropertyChanged("Login");
|
---|
2414 | this.OnLoginChanged();
|
---|
2415 | }
|
---|
2416 | }
|
---|
2417 | }
|
---|
2418 |
|
---|
2419 | [Column(Storage="_Status", DbType="VarChar(MAX)")]
|
---|
2420 | public string Status
|
---|
2421 | {
|
---|
2422 | get
|
---|
2423 | {
|
---|
2424 | return this._Status;
|
---|
2425 | }
|
---|
2426 | set
|
---|
2427 | {
|
---|
2428 | if ((this._Status != value))
|
---|
2429 | {
|
---|
2430 | this.OnStatusChanging(value);
|
---|
2431 | this.SendPropertyChanging();
|
---|
2432 | this._Status = value;
|
---|
2433 | this.SendPropertyChanged("Status");
|
---|
2434 | this.OnStatusChanged();
|
---|
2435 | }
|
---|
2436 | }
|
---|
2437 | }
|
---|
2438 |
|
---|
2439 | [Column(Storage="_ClientConfigId", DbType="UniqueIdentifier")]
|
---|
2440 | public System.Nullable<System.Guid> ClientConfigId
|
---|
2441 | {
|
---|
2442 | get
|
---|
2443 | {
|
---|
2444 | return this._ClientConfigId;
|
---|
2445 | }
|
---|
2446 | set
|
---|
2447 | {
|
---|
2448 | if ((this._ClientConfigId != value))
|
---|
2449 | {
|
---|
2450 | if (this._ClientConfig.HasLoadedOrAssignedValue)
|
---|
2451 | {
|
---|
2452 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
2453 | }
|
---|
2454 | this.OnClientConfigIdChanging(value);
|
---|
2455 | this.SendPropertyChanging();
|
---|
2456 | this._ClientConfigId = value;
|
---|
2457 | this.SendPropertyChanged("ClientConfigId");
|
---|
2458 | this.OnClientConfigIdChanged();
|
---|
2459 | }
|
---|
2460 | }
|
---|
2461 | }
|
---|
2462 |
|
---|
2463 | [Column(Storage="_NumberOfCores", DbType="Int NOT NULL")]
|
---|
2464 | public int NumberOfCores
|
---|
2465 | {
|
---|
2466 | get
|
---|
2467 | {
|
---|
2468 | return this._NumberOfCores;
|
---|
2469 | }
|
---|
2470 | set
|
---|
2471 | {
|
---|
2472 | if ((this._NumberOfCores != value))
|
---|
2473 | {
|
---|
2474 | this.OnNumberOfCoresChanging(value);
|
---|
2475 | this.SendPropertyChanging();
|
---|
2476 | this._NumberOfCores = value;
|
---|
2477 | this.SendPropertyChanged("NumberOfCores");
|
---|
2478 | this.OnNumberOfCoresChanged();
|
---|
2479 | }
|
---|
2480 | }
|
---|
2481 | }
|
---|
2482 |
|
---|
2483 | [Column(Storage="_NumberOfFreeCores", DbType="Int NOT NULL")]
|
---|
2484 | public int NumberOfFreeCores
|
---|
2485 | {
|
---|
2486 | get
|
---|
2487 | {
|
---|
2488 | return this._NumberOfFreeCores;
|
---|
2489 | }
|
---|
2490 | set
|
---|
2491 | {
|
---|
2492 | if ((this._NumberOfFreeCores != value))
|
---|
2493 | {
|
---|
2494 | this.OnNumberOfFreeCoresChanging(value);
|
---|
2495 | this.SendPropertyChanging();
|
---|
2496 | this._NumberOfFreeCores = value;
|
---|
2497 | this.SendPropertyChanged("NumberOfFreeCores");
|
---|
2498 | this.OnNumberOfFreeCoresChanged();
|
---|
2499 | }
|
---|
2500 | }
|
---|
2501 | }
|
---|
2502 |
|
---|
2503 | [Column(Storage="_FreeMemory", DbType="Int NOT NULL")]
|
---|
2504 | public int FreeMemory
|
---|
2505 | {
|
---|
2506 | get
|
---|
2507 | {
|
---|
2508 | return this._FreeMemory;
|
---|
2509 | }
|
---|
2510 | set
|
---|
2511 | {
|
---|
2512 | if ((this._FreeMemory != value))
|
---|
2513 | {
|
---|
2514 | this.OnFreeMemoryChanging(value);
|
---|
2515 | this.SendPropertyChanging();
|
---|
2516 | this._FreeMemory = value;
|
---|
2517 | this.SendPropertyChanged("FreeMemory");
|
---|
2518 | this.OnFreeMemoryChanged();
|
---|
2519 | }
|
---|
2520 | }
|
---|
2521 | }
|
---|
2522 |
|
---|
2523 | [Association(Name="Client_UptimeStatistic", Storage="_UptimeStatistics", ThisKey="ResourceId", OtherKey="ResourceId")]
|
---|
2524 | public EntitySet<UptimeStatistic> UptimeStatistics
|
---|
2525 | {
|
---|
2526 | get
|
---|
2527 | {
|
---|
2528 | return this._UptimeStatistics;
|
---|
2529 | }
|
---|
2530 | set
|
---|
2531 | {
|
---|
2532 | this._UptimeStatistics.Assign(value);
|
---|
2533 | }
|
---|
2534 | }
|
---|
2535 |
|
---|
2536 | [Association(Name="Client_Job", Storage="_Jobs", ThisKey="ResourceId", OtherKey="ResourceId")]
|
---|
2537 | public EntitySet<Job> Jobs
|
---|
2538 | {
|
---|
2539 | get
|
---|
2540 | {
|
---|
2541 | return this._Jobs;
|
---|
2542 | }
|
---|
2543 | set
|
---|
2544 | {
|
---|
2545 | this._Jobs.Assign(value);
|
---|
2546 | }
|
---|
2547 | }
|
---|
2548 |
|
---|
2549 | [Association(Name="Resource_Client", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
|
---|
2550 | public Resource Resource
|
---|
2551 | {
|
---|
2552 | get
|
---|
2553 | {
|
---|
2554 | return this._Resource.Entity;
|
---|
2555 | }
|
---|
2556 | set
|
---|
2557 | {
|
---|
2558 | Resource previousValue = this._Resource.Entity;
|
---|
2559 | if (((previousValue != value)
|
---|
2560 | || (this._Resource.HasLoadedOrAssignedValue == false)))
|
---|
2561 | {
|
---|
2562 | this.SendPropertyChanging();
|
---|
2563 | if ((previousValue != null))
|
---|
2564 | {
|
---|
2565 | this._Resource.Entity = null;
|
---|
2566 | previousValue.Client = null;
|
---|
2567 | }
|
---|
2568 | this._Resource.Entity = value;
|
---|
2569 | if ((value != null))
|
---|
2570 | {
|
---|
2571 | value.Client = this;
|
---|
2572 | this._ResourceId = value.ResourceId;
|
---|
2573 | }
|
---|
2574 | else
|
---|
2575 | {
|
---|
2576 | this._ResourceId = default(System.Guid);
|
---|
2577 | }
|
---|
2578 | this.SendPropertyChanged("Resource");
|
---|
2579 | }
|
---|
2580 | }
|
---|
2581 | }
|
---|
2582 |
|
---|
2583 | [Association(Name="ClientConfig_Client", Storage="_ClientConfig", ThisKey="ClientConfigId", OtherKey="ClientConfigId", IsForeignKey=true, DeleteRule="SET NULL")]
|
---|
2584 | public ClientConfig ClientConfig
|
---|
2585 | {
|
---|
2586 | get
|
---|
2587 | {
|
---|
2588 | return this._ClientConfig.Entity;
|
---|
2589 | }
|
---|
2590 | set
|
---|
2591 | {
|
---|
2592 | ClientConfig previousValue = this._ClientConfig.Entity;
|
---|
2593 | if (((previousValue != value)
|
---|
2594 | || (this._ClientConfig.HasLoadedOrAssignedValue == false)))
|
---|
2595 | {
|
---|
2596 | this.SendPropertyChanging();
|
---|
2597 | if ((previousValue != null))
|
---|
2598 | {
|
---|
2599 | this._ClientConfig.Entity = null;
|
---|
2600 | previousValue.Clients.Remove(this);
|
---|
2601 | }
|
---|
2602 | this._ClientConfig.Entity = value;
|
---|
2603 | if ((value != null))
|
---|
2604 | {
|
---|
2605 | value.Clients.Add(this);
|
---|
2606 | this._ClientConfigId = value.ClientConfigId;
|
---|
2607 | }
|
---|
2608 | else
|
---|
2609 | {
|
---|
2610 | this._ClientConfigId = default(Nullable<System.Guid>);
|
---|
2611 | }
|
---|
2612 | this.SendPropertyChanged("ClientConfig");
|
---|
2613 | }
|
---|
2614 | }
|
---|
2615 | }
|
---|
2616 |
|
---|
2617 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
2618 |
|
---|
2619 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
2620 |
|
---|
2621 | protected virtual void SendPropertyChanging()
|
---|
2622 | {
|
---|
2623 | if ((this.PropertyChanging != null))
|
---|
2624 | {
|
---|
2625 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
2626 | }
|
---|
2627 | }
|
---|
2628 |
|
---|
2629 | protected virtual void SendPropertyChanged(String propertyName)
|
---|
2630 | {
|
---|
2631 | if ((this.PropertyChanged != null))
|
---|
2632 | {
|
---|
2633 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
2634 | }
|
---|
2635 | }
|
---|
2636 |
|
---|
2637 | private void attach_UptimeStatistics(UptimeStatistic entity)
|
---|
2638 | {
|
---|
2639 | this.SendPropertyChanging();
|
---|
2640 | entity.Client = this;
|
---|
2641 | }
|
---|
2642 |
|
---|
2643 | private void detach_UptimeStatistics(UptimeStatistic entity)
|
---|
2644 | {
|
---|
2645 | this.SendPropertyChanging();
|
---|
2646 | entity.Client = null;
|
---|
2647 | }
|
---|
2648 |
|
---|
2649 | private void attach_Jobs(Job entity)
|
---|
2650 | {
|
---|
2651 | this.SendPropertyChanging();
|
---|
2652 | entity.Client = this;
|
---|
2653 | }
|
---|
2654 |
|
---|
2655 | private void detach_Jobs(Job entity)
|
---|
2656 | {
|
---|
2657 | this.SendPropertyChanging();
|
---|
2658 | entity.Client = null;
|
---|
2659 | }
|
---|
2660 | }
|
---|
2661 | }
|
---|
2662 | #pragma warning restore 1591
|
---|