Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/HiveDataContext.designer.cs @ 5106

Last change on this file since 5106 was 5106, checked in by cneumuel, 13 years ago

#1233

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