Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2839_HiveProjectManagement/HeuristicLab.Services.Deployment.DataAccess/3.3/Deployment.designer.cs @ 16091

Last change on this file since 16091 was 11623, checked in by ascheibe, 9 years ago

#2280 switched all projects to .NET 4.5 (ExtLibs, HL, Tests, Services, Slave)

File size: 19.1 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.34014
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.Deployment.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.PluginStore")]
26  public partial class DeploymentDataContext : 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 InsertDependency(Dependency instance);
34    partial void UpdateDependency(Dependency instance);
35    partial void DeleteDependency(Dependency instance);
36    partial void InsertProductPlugin(ProductPlugin instance);
37    partial void UpdateProductPlugin(ProductPlugin instance);
38    partial void DeleteProductPlugin(ProductPlugin instance);
39    partial void InsertPlugin(Plugin instance);
40    partial void UpdatePlugin(Plugin instance);
41    partial void DeletePlugin(Plugin instance);
42    partial void InsertPluginPackage(PluginPackage instance);
43    partial void UpdatePluginPackage(PluginPackage instance);
44    partial void DeletePluginPackage(PluginPackage instance);
45    partial void InsertProduct(Product instance);
46    partial void UpdateProduct(Product instance);
47    partial void DeleteProduct(Product instance);
48    #endregion
49   
50    public DeploymentDataContext() :
51        base(global::HeuristicLab.Services.Deployment.DataAccess.Properties.Settings.Default.HeuristicLab_DeploymentConnectionString, mappingSource)
52    {
53      OnCreated();
54    }
55   
56    public DeploymentDataContext(string connection) :
57        base(connection, mappingSource)
58    {
59      OnCreated();
60    }
61   
62    public DeploymentDataContext(System.Data.IDbConnection connection) :
63        base(connection, mappingSource)
64    {
65      OnCreated();
66    }
67   
68    public DeploymentDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
69        base(connection, mappingSource)
70    {
71      OnCreated();
72    }
73   
74    public DeploymentDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
75        base(connection, mappingSource)
76    {
77      OnCreated();
78    }
79   
80    public System.Data.Linq.Table<Dependency> Dependencies
81    {
82      get
83      {
84        return this.GetTable<Dependency>();
85      }
86    }
87   
88    public System.Data.Linq.Table<ProductPlugin> ProductPlugins
89    {
90      get
91      {
92        return this.GetTable<ProductPlugin>();
93      }
94    }
95   
96    public System.Data.Linq.Table<Plugin> Plugins
97    {
98      get
99      {
100        return this.GetTable<Plugin>();
101      }
102    }
103   
104    public System.Data.Linq.Table<PluginPackage> PluginPackages
105    {
106      get
107      {
108        return this.GetTable<PluginPackage>();
109      }
110    }
111   
112    public System.Data.Linq.Table<Product> Products
113    {
114      get
115      {
116        return this.GetTable<Product>();
117      }
118    }
119  }
120 
121  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Dependencies")]
122  public partial class Dependency : INotifyPropertyChanging, INotifyPropertyChanged
123  {
124   
125    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
126   
127    private long _PluginId;
128   
129    private long _DependencyId;
130   
131    #region Extensibility Method Definitions
132    partial void OnLoaded();
133    partial void OnValidate(System.Data.Linq.ChangeAction action);
134    partial void OnCreated();
135    partial void OnPluginIdChanging(long value);
136    partial void OnPluginIdChanged();
137    partial void OnDependencyIdChanging(long value);
138    partial void OnDependencyIdChanged();
139    #endregion
140   
141    public Dependency()
142    {
143      OnCreated();
144    }
145   
146    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginId", DbType="BigInt NOT NULL", IsPrimaryKey=true)]
147    public long PluginId
148    {
149      get
150      {
151        return this._PluginId;
152      }
153      set
154      {
155        if ((this._PluginId != value))
156        {
157          this.OnPluginIdChanging(value);
158          this.SendPropertyChanging();
159          this._PluginId = value;
160          this.SendPropertyChanged("PluginId");
161          this.OnPluginIdChanged();
162        }
163      }
164    }
165   
166    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DependencyId", DbType="BigInt NOT NULL", IsPrimaryKey=true)]
167    public long DependencyId
168    {
169      get
170      {
171        return this._DependencyId;
172      }
173      set
174      {
175        if ((this._DependencyId != value))
176        {
177          this.OnDependencyIdChanging(value);
178          this.SendPropertyChanging();
179          this._DependencyId = value;
180          this.SendPropertyChanged("DependencyId");
181          this.OnDependencyIdChanged();
182        }
183      }
184    }
185   
186    public event PropertyChangingEventHandler PropertyChanging;
187   
188    public event PropertyChangedEventHandler PropertyChanged;
189   
190    protected virtual void SendPropertyChanging()
191    {
192      if ((this.PropertyChanging != null))
193      {
194        this.PropertyChanging(this, emptyChangingEventArgs);
195      }
196    }
197   
198    protected virtual void SendPropertyChanged(String propertyName)
199    {
200      if ((this.PropertyChanged != null))
201      {
202        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
203      }
204    }
205  }
206 
207  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ProductPlugin")]
208  public partial class ProductPlugin : INotifyPropertyChanging, INotifyPropertyChanged
209  {
210   
211    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
212   
213    private long _ProductId;
214   
215    private long _PluginId;
216   
217    #region Extensibility Method Definitions
218    partial void OnLoaded();
219    partial void OnValidate(System.Data.Linq.ChangeAction action);
220    partial void OnCreated();
221    partial void OnProductIdChanging(long value);
222    partial void OnProductIdChanged();
223    partial void OnPluginIdChanging(long value);
224    partial void OnPluginIdChanged();
225    #endregion
226   
227    public ProductPlugin()
228    {
229      OnCreated();
230    }
231   
232    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProductId", DbType="BigInt NOT NULL", IsPrimaryKey=true)]
233    public long ProductId
234    {
235      get
236      {
237        return this._ProductId;
238      }
239      set
240      {
241        if ((this._ProductId != value))
242        {
243          this.OnProductIdChanging(value);
244          this.SendPropertyChanging();
245          this._ProductId = value;
246          this.SendPropertyChanged("ProductId");
247          this.OnProductIdChanged();
248        }
249      }
250    }
251   
252    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginId", DbType="BigInt NOT NULL", IsPrimaryKey=true)]
253    public long PluginId
254    {
255      get
256      {
257        return this._PluginId;
258      }
259      set
260      {
261        if ((this._PluginId != value))
262        {
263          this.OnPluginIdChanging(value);
264          this.SendPropertyChanging();
265          this._PluginId = value;
266          this.SendPropertyChanged("PluginId");
267          this.OnPluginIdChanged();
268        }
269      }
270    }
271   
272    public event PropertyChangingEventHandler PropertyChanging;
273   
274    public event PropertyChangedEventHandler PropertyChanged;
275   
276    protected virtual void SendPropertyChanging()
277    {
278      if ((this.PropertyChanging != null))
279      {
280        this.PropertyChanging(this, emptyChangingEventArgs);
281      }
282    }
283   
284    protected virtual void SendPropertyChanged(String propertyName)
285    {
286      if ((this.PropertyChanged != null))
287      {
288        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
289      }
290    }
291  }
292 
293  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Plugin")]
294  public partial class Plugin : INotifyPropertyChanging, INotifyPropertyChanged
295  {
296   
297    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
298   
299    private long _Id;
300   
301    private string _Name;
302   
303    private string _Version;
304   
305    private string _ContactName;
306   
307    private string _ContactEmail;
308   
309    private string _License;
310   
311    private EntityRef<PluginPackage> _PluginPackage;
312   
313    #region Extensibility Method Definitions
314    partial void OnLoaded();
315    partial void OnValidate(System.Data.Linq.ChangeAction action);
316    partial void OnCreated();
317    partial void OnIdChanging(long value);
318    partial void OnIdChanged();
319    partial void OnNameChanging(string value);
320    partial void OnNameChanged();
321    partial void OnVersionChanging(string value);
322    partial void OnVersionChanged();
323    partial void OnContactNameChanging(string value);
324    partial void OnContactNameChanged();
325    partial void OnContactEmailChanging(string value);
326    partial void OnContactEmailChanged();
327    partial void OnLicenseChanging(string value);
328    partial void OnLicenseChanged();
329    #endregion
330   
331    public Plugin()
332    {
333      this._PluginPackage = default(EntityRef<PluginPackage>);
334      OnCreated();
335    }
336   
337    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
338    public long Id
339    {
340      get
341      {
342        return this._Id;
343      }
344      set
345      {
346        if ((this._Id != value))
347        {
348          this.OnIdChanging(value);
349          this.SendPropertyChanging();
350          this._Id = value;
351          this.SendPropertyChanged("Id");
352          this.OnIdChanged();
353        }
354      }
355    }
356   
357    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(300) NOT NULL", CanBeNull=false)]
358    public string Name
359    {
360      get
361      {
362        return this._Name;
363      }
364      set
365      {
366        if ((this._Name != value))
367        {
368          this.OnNameChanging(value);
369          this.SendPropertyChanging();
370          this._Name = value;
371          this.SendPropertyChanged("Name");
372          this.OnNameChanged();
373        }
374      }
375    }
376   
377    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Version", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
378    public string Version
379    {
380      get
381      {
382        return this._Version;
383      }
384      set
385      {
386        if ((this._Version != value))
387        {
388          this.OnVersionChanging(value);
389          this.SendPropertyChanging();
390          this._Version = value;
391          this.SendPropertyChanged("Version");
392          this.OnVersionChanged();
393        }
394      }
395    }
396   
397    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContactName", DbType="Text", UpdateCheck=UpdateCheck.Never)]
398    public string ContactName
399    {
400      get
401      {
402        return this._ContactName;
403      }
404      set
405      {
406        if ((this._ContactName != value))
407        {
408          this.OnContactNameChanging(value);
409          this.SendPropertyChanging();
410          this._ContactName = value;
411          this.SendPropertyChanged("ContactName");
412          this.OnContactNameChanged();
413        }
414      }
415    }
416   
417    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContactEmail", DbType="Text", UpdateCheck=UpdateCheck.Never)]
418    public string ContactEmail
419    {
420      get
421      {
422        return this._ContactEmail;
423      }
424      set
425      {
426        if ((this._ContactEmail != value))
427        {
428          this.OnContactEmailChanging(value);
429          this.SendPropertyChanging();
430          this._ContactEmail = value;
431          this.SendPropertyChanged("ContactEmail");
432          this.OnContactEmailChanged();
433        }
434      }
435    }
436   
437    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_License", DbType="Text", UpdateCheck=UpdateCheck.Never)]
438    public string License
439    {
440      get
441      {
442        return this._License;
443      }
444      set
445      {
446        if ((this._License != value))
447        {
448          this.OnLicenseChanging(value);
449          this.SendPropertyChanging();
450          this._License = value;
451          this.SendPropertyChanged("License");
452          this.OnLicenseChanged();
453        }
454      }
455    }
456   
457    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Plugin_PluginPackage", Storage="_PluginPackage", ThisKey="Id", OtherKey="PluginId", IsUnique=true, IsForeignKey=false)]
458    public PluginPackage PluginPackage
459    {
460      get
461      {
462        return this._PluginPackage.Entity;
463      }
464      set
465      {
466        PluginPackage previousValue = this._PluginPackage.Entity;
467        if (((previousValue != value)
468              || (this._PluginPackage.HasLoadedOrAssignedValue == false)))
469        {
470          this.SendPropertyChanging();
471          if ((previousValue != null))
472          {
473            this._PluginPackage.Entity = null;
474            previousValue.Plugin = null;
475          }
476          this._PluginPackage.Entity = value;
477          if ((value != null))
478          {
479            value.Plugin = this;
480          }
481          this.SendPropertyChanged("PluginPackage");
482        }
483      }
484    }
485   
486    public event PropertyChangingEventHandler PropertyChanging;
487   
488    public event PropertyChangedEventHandler PropertyChanged;
489   
490    protected virtual void SendPropertyChanging()
491    {
492      if ((this.PropertyChanging != null))
493      {
494        this.PropertyChanging(this, emptyChangingEventArgs);
495      }
496    }
497   
498    protected virtual void SendPropertyChanged(String propertyName)
499    {
500      if ((this.PropertyChanged != null))
501      {
502        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
503      }
504    }
505  }
506 
507  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.PluginPackage")]
508  public partial class PluginPackage : INotifyPropertyChanging, INotifyPropertyChanged
509  {
510   
511    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
512   
513    private long _PluginId;
514   
515    private System.Data.Linq.Binary _Data;
516   
517    private EntityRef<Plugin> _Plugin;
518   
519    #region Extensibility Method Definitions
520    partial void OnLoaded();
521    partial void OnValidate(System.Data.Linq.ChangeAction action);
522    partial void OnCreated();
523    partial void OnPluginIdChanging(long value);
524    partial void OnPluginIdChanged();
525    partial void OnDataChanging(System.Data.Linq.Binary value);
526    partial void OnDataChanged();
527    #endregion
528   
529    public PluginPackage()
530    {
531      this._Plugin = default(EntityRef<Plugin>);
532      OnCreated();
533    }
534   
535    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PluginId", DbType="BigInt NOT NULL", IsPrimaryKey=true)]
536    public long PluginId
537    {
538      get
539      {
540        return this._PluginId;
541      }
542      set
543      {
544        if ((this._PluginId != value))
545        {
546          if (this._Plugin.HasLoadedOrAssignedValue)
547          {
548            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
549          }
550          this.OnPluginIdChanging(value);
551          this.SendPropertyChanging();
552          this._PluginId = value;
553          this.SendPropertyChanged("PluginId");
554          this.OnPluginIdChanged();
555        }
556      }
557    }
558   
559    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Data", DbType="Image NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
560    public System.Data.Linq.Binary Data
561    {
562      get
563      {
564        return this._Data;
565      }
566      set
567      {
568        if ((this._Data != value))
569        {
570          this.OnDataChanging(value);
571          this.SendPropertyChanging();
572          this._Data = value;
573          this.SendPropertyChanged("Data");
574          this.OnDataChanged();
575        }
576      }
577    }
578   
579    [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Plugin_PluginPackage", Storage="_Plugin", ThisKey="PluginId", OtherKey="Id", IsForeignKey=true)]
580    public Plugin Plugin
581    {
582      get
583      {
584        return this._Plugin.Entity;
585      }
586      set
587      {
588        Plugin previousValue = this._Plugin.Entity;
589        if (((previousValue != value)
590              || (this._Plugin.HasLoadedOrAssignedValue == false)))
591        {
592          this.SendPropertyChanging();
593          if ((previousValue != null))
594          {
595            this._Plugin.Entity = null;
596            previousValue.PluginPackage = null;
597          }
598          this._Plugin.Entity = value;
599          if ((value != null))
600          {
601            value.PluginPackage = this;
602            this._PluginId = value.Id;
603          }
604          else
605          {
606            this._PluginId = default(long);
607          }
608          this.SendPropertyChanged("Plugin");
609        }
610      }
611    }
612   
613    public event PropertyChangingEventHandler PropertyChanging;
614   
615    public event PropertyChangedEventHandler PropertyChanged;
616   
617    protected virtual void SendPropertyChanging()
618    {
619      if ((this.PropertyChanging != null))
620      {
621        this.PropertyChanging(this, emptyChangingEventArgs);
622      }
623    }
624   
625    protected virtual void SendPropertyChanged(String propertyName)
626    {
627      if ((this.PropertyChanged != null))
628      {
629        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
630      }
631    }
632  }
633 
634  [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Product")]
635  public partial class Product : INotifyPropertyChanging, INotifyPropertyChanged
636  {
637   
638    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
639   
640    private long _Id;
641   
642    private string _Name;
643   
644    private string _Version;
645   
646    #region Extensibility Method Definitions
647    partial void OnLoaded();
648    partial void OnValidate(System.Data.Linq.ChangeAction action);
649    partial void OnCreated();
650    partial void OnIdChanging(long value);
651    partial void OnIdChanged();
652    partial void OnNameChanging(string value);
653    partial void OnNameChanged();
654    partial void OnVersionChanging(string value);
655    partial void OnVersionChanged();
656    #endregion
657   
658    public Product()
659    {
660      OnCreated();
661    }
662   
663    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
664    public long Id
665    {
666      get
667      {
668        return this._Id;
669      }
670      set
671      {
672        if ((this._Id != value))
673        {
674          this.OnIdChanging(value);
675          this.SendPropertyChanging();
676          this._Id = value;
677          this.SendPropertyChanged("Id");
678          this.OnIdChanged();
679        }
680      }
681    }
682   
683    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(300) NOT NULL", CanBeNull=false)]
684    public string Name
685    {
686      get
687      {
688        return this._Name;
689      }
690      set
691      {
692        if ((this._Name != value))
693        {
694          this.OnNameChanging(value);
695          this.SendPropertyChanging();
696          this._Name = value;
697          this.SendPropertyChanged("Name");
698          this.OnNameChanged();
699        }
700      }
701    }
702   
703    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Version", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
704    public string Version
705    {
706      get
707      {
708        return this._Version;
709      }
710      set
711      {
712        if ((this._Version != value))
713        {
714          this.OnVersionChanging(value);
715          this.SendPropertyChanging();
716          this._Version = value;
717          this.SendPropertyChanged("Version");
718          this.OnVersionChanged();
719        }
720      }
721    }
722   
723    public event PropertyChangingEventHandler PropertyChanging;
724   
725    public event PropertyChangedEventHandler PropertyChanged;
726   
727    protected virtual void SendPropertyChanging()
728    {
729      if ((this.PropertyChanging != null))
730      {
731        this.PropertyChanging(this, emptyChangingEventArgs);
732      }
733    }
734   
735    protected virtual void SendPropertyChanged(String propertyName)
736    {
737      if ((this.PropertyChanged != null))
738      {
739        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
740      }
741    }
742  }
743}
744#pragma warning restore 1591
Note: See TracBrowser for help on using the repository browser.