Free cookie consent management tool by TermsFeed Policy Generator

source: branches/GeneralizedQAP/HeuristicLab.Services.ProblemInstances/ProblemInstancesModel.Designer.cs @ 6659

Last change on this file since 6659 was 6659, checked in by abeham, 13 years ago

#1619

  • experimented with a first locally working version
File size: 21.4 KB
Line 
1//------------------------------------------------------------------------------
2// <auto-generated>
3//    This code was generated from a template.
4//
5//    Manual changes to this file may cause unexpected behavior in your application.
6//    Manual changes to this file will be overwritten if the code is regenerated.
7// </auto-generated>
8//------------------------------------------------------------------------------
9
10using System;
11using System.Data.Objects;
12using System.Data.Objects.DataClasses;
13using System.Data.EntityClient;
14using System.ComponentModel;
15using System.Xml.Serialization;
16using System.Runtime.Serialization;
17
18[assembly: EdmSchemaAttribute()]
19#region EDM Relationship Metadata
20
21[assembly: EdmRelationshipAttribute("ProblemInstancesModel", "FK_QAPSolution_QAPInstance", "QAPInstance", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(HeuristicLab.Services.ProblemInstances.QAPInstance), "QAPSolution", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(HeuristicLab.Services.ProblemInstances.QAPSolution), true)]
22
23#endregion
24
25namespace HeuristicLab.Services.ProblemInstances
26{
27    #region Contexts
28   
29    /// <summary>
30    /// No Metadata Documentation available.
31    /// </summary>
32    public partial class ProblemInstancesEntities : ObjectContext
33    {
34        #region Constructors
35   
36        /// <summary>
37        /// Initializes a new ProblemInstancesEntities object using the connection string found in the 'ProblemInstancesEntities' section of the application configuration file.
38        /// </summary>
39        public ProblemInstancesEntities() : base("name=ProblemInstancesEntities", "ProblemInstancesEntities")
40        {
41            this.ContextOptions.LazyLoadingEnabled = true;
42            OnContextCreated();
43        }
44   
45        /// <summary>
46        /// Initialize a new ProblemInstancesEntities object.
47        /// </summary>
48        public ProblemInstancesEntities(string connectionString) : base(connectionString, "ProblemInstancesEntities")
49        {
50            this.ContextOptions.LazyLoadingEnabled = true;
51            OnContextCreated();
52        }
53   
54        /// <summary>
55        /// Initialize a new ProblemInstancesEntities object.
56        /// </summary>
57        public ProblemInstancesEntities(EntityConnection connection) : base(connection, "ProblemInstancesEntities")
58        {
59            this.ContextOptions.LazyLoadingEnabled = true;
60            OnContextCreated();
61        }
62   
63        #endregion
64   
65        #region Partial Methods
66   
67        partial void OnContextCreated();
68   
69        #endregion
70   
71        #region ObjectSet Properties
72   
73        /// <summary>
74        /// No Metadata Documentation available.
75        /// </summary>
76        public ObjectSet<QAPInstance> QAPInstances
77        {
78            get
79            {
80                if ((_QAPInstances == null))
81                {
82                    _QAPInstances = base.CreateObjectSet<QAPInstance>("QAPInstances");
83                }
84                return _QAPInstances;
85            }
86        }
87        private ObjectSet<QAPInstance> _QAPInstances;
88   
89        /// <summary>
90        /// No Metadata Documentation available.
91        /// </summary>
92        public ObjectSet<QAPSolution> QAPSolutions
93        {
94            get
95            {
96                if ((_QAPSolutions == null))
97                {
98                    _QAPSolutions = base.CreateObjectSet<QAPSolution>("QAPSolutions");
99                }
100                return _QAPSolutions;
101            }
102        }
103        private ObjectSet<QAPSolution> _QAPSolutions;
104
105        #endregion
106        #region AddTo Methods
107   
108        /// <summary>
109        /// Deprecated Method for adding a new object to the QAPInstances EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
110        /// </summary>
111        public void AddToQAPInstances(QAPInstance qAPInstance)
112        {
113            base.AddObject("QAPInstances", qAPInstance);
114        }
115   
116        /// <summary>
117        /// Deprecated Method for adding a new object to the QAPSolutions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
118        /// </summary>
119        public void AddToQAPSolutions(QAPSolution qAPSolution)
120        {
121            base.AddObject("QAPSolutions", qAPSolution);
122        }
123
124        #endregion
125    }
126   
127
128    #endregion
129   
130    #region Entities
131   
132    /// <summary>
133    /// No Metadata Documentation available.
134    /// </summary>
135    [EdmEntityTypeAttribute(NamespaceName="ProblemInstancesModel", Name="QAPInstance")]
136    [Serializable()]
137    [DataContractAttribute(IsReference=true)]
138    public partial class QAPInstance : EntityObject
139    {
140        #region Factory Method
141   
142        /// <summary>
143        /// Create a new QAPInstance object.
144        /// </summary>
145        /// <param name="name">Initial value of the name property.</param>
146        /// <param name="maximization">Initial value of the maximization property.</param>
147        /// <param name="weights">Initial value of the weights property.</param>
148        /// <param name="weights_sha1">Initial value of the weights_sha1 property.</param>
149        /// <param name="distances">Initial value of the distances property.</param>
150        /// <param name="distances_sha1">Initial value of the distances_sha1 property.</param>
151        /// <param name="problemsize">Initial value of the problemsize property.</param>
152        public static QAPInstance CreateQAPInstance(global::System.String name, global::System.Boolean maximization, global::System.String weights, global::System.String weights_sha1, global::System.String distances, global::System.String distances_sha1, global::System.Int32 problemsize)
153        {
154            QAPInstance qAPInstance = new QAPInstance();
155            qAPInstance.name = name;
156            qAPInstance.maximization = maximization;
157            qAPInstance.weights = weights;
158            qAPInstance.weights_sha1 = weights_sha1;
159            qAPInstance.distances = distances;
160            qAPInstance.distances_sha1 = distances_sha1;
161            qAPInstance.problemsize = problemsize;
162            return qAPInstance;
163        }
164
165        #endregion
166        #region Primitive Properties
167   
168        /// <summary>
169        /// No Metadata Documentation available.
170        /// </summary>
171        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
172        [DataMemberAttribute()]
173        public global::System.String name
174        {
175            get
176            {
177                return _name;
178            }
179            set
180            {
181                if (_name != value)
182                {
183                    OnnameChanging(value);
184                    ReportPropertyChanging("name");
185                    _name = StructuralObject.SetValidValue(value, false);
186                    ReportPropertyChanged("name");
187                    OnnameChanged();
188                }
189            }
190        }
191        private global::System.String _name;
192        partial void OnnameChanging(global::System.String value);
193        partial void OnnameChanged();
194   
195        /// <summary>
196        /// No Metadata Documentation available.
197        /// </summary>
198        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
199        [DataMemberAttribute()]
200        public global::System.String description
201        {
202            get
203            {
204                return _description;
205            }
206            set
207            {
208                OndescriptionChanging(value);
209                ReportPropertyChanging("description");
210                _description = StructuralObject.SetValidValue(value, true);
211                ReportPropertyChanged("description");
212                OndescriptionChanged();
213            }
214        }
215        private global::System.String _description;
216        partial void OndescriptionChanging(global::System.String value);
217        partial void OndescriptionChanged();
218   
219        /// <summary>
220        /// No Metadata Documentation available.
221        /// </summary>
222        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
223        [DataMemberAttribute()]
224        public global::System.Boolean maximization
225        {
226            get
227            {
228                return _maximization;
229            }
230            set
231            {
232                OnmaximizationChanging(value);
233                ReportPropertyChanging("maximization");
234                _maximization = StructuralObject.SetValidValue(value);
235                ReportPropertyChanged("maximization");
236                OnmaximizationChanged();
237            }
238        }
239        private global::System.Boolean _maximization;
240        partial void OnmaximizationChanging(global::System.Boolean value);
241        partial void OnmaximizationChanged();
242   
243        /// <summary>
244        /// No Metadata Documentation available.
245        /// </summary>
246        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
247        [DataMemberAttribute()]
248        public global::System.String weights
249        {
250            get
251            {
252                return _weights;
253            }
254            set
255            {
256                OnweightsChanging(value);
257                ReportPropertyChanging("weights");
258                _weights = StructuralObject.SetValidValue(value, false);
259                ReportPropertyChanged("weights");
260                OnweightsChanged();
261            }
262        }
263        private global::System.String _weights;
264        partial void OnweightsChanging(global::System.String value);
265        partial void OnweightsChanged();
266   
267        /// <summary>
268        /// No Metadata Documentation available.
269        /// </summary>
270        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
271        [DataMemberAttribute()]
272        public global::System.String weights_sha1
273        {
274            get
275            {
276                return _weights_sha1;
277            }
278            set
279            {
280                Onweights_sha1Changing(value);
281                ReportPropertyChanging("weights_sha1");
282                _weights_sha1 = StructuralObject.SetValidValue(value, false);
283                ReportPropertyChanged("weights_sha1");
284                Onweights_sha1Changed();
285            }
286        }
287        private global::System.String _weights_sha1;
288        partial void Onweights_sha1Changing(global::System.String value);
289        partial void Onweights_sha1Changed();
290   
291        /// <summary>
292        /// No Metadata Documentation available.
293        /// </summary>
294        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
295        [DataMemberAttribute()]
296        public global::System.String distances
297        {
298            get
299            {
300                return _distances;
301            }
302            set
303            {
304                OndistancesChanging(value);
305                ReportPropertyChanging("distances");
306                _distances = StructuralObject.SetValidValue(value, false);
307                ReportPropertyChanged("distances");
308                OndistancesChanged();
309            }
310        }
311        private global::System.String _distances;
312        partial void OndistancesChanging(global::System.String value);
313        partial void OndistancesChanged();
314   
315        /// <summary>
316        /// No Metadata Documentation available.
317        /// </summary>
318        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
319        [DataMemberAttribute()]
320        public global::System.String distances_sha1
321        {
322            get
323            {
324                return _distances_sha1;
325            }
326            set
327            {
328                Ondistances_sha1Changing(value);
329                ReportPropertyChanging("distances_sha1");
330                _distances_sha1 = StructuralObject.SetValidValue(value, false);
331                ReportPropertyChanged("distances_sha1");
332                Ondistances_sha1Changed();
333            }
334        }
335        private global::System.String _distances_sha1;
336        partial void Ondistances_sha1Changing(global::System.String value);
337        partial void Ondistances_sha1Changed();
338   
339        /// <summary>
340        /// No Metadata Documentation available.
341        /// </summary>
342        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
343        [DataMemberAttribute()]
344        public global::System.Int32 problemsize
345        {
346            get
347            {
348                return _problemsize;
349            }
350            set
351            {
352                OnproblemsizeChanging(value);
353                ReportPropertyChanging("problemsize");
354                _problemsize = StructuralObject.SetValidValue(value);
355                ReportPropertyChanged("problemsize");
356                OnproblemsizeChanged();
357            }
358        }
359        private global::System.Int32 _problemsize;
360        partial void OnproblemsizeChanging(global::System.Int32 value);
361        partial void OnproblemsizeChanged();
362
363        #endregion
364   
365        #region Navigation Properties
366   
367        /// <summary>
368        /// No Metadata Documentation available.
369        /// </summary>
370        [XmlIgnoreAttribute()]
371        [SoapIgnoreAttribute()]
372        [DataMemberAttribute()]
373        [EdmRelationshipNavigationPropertyAttribute("ProblemInstancesModel", "FK_QAPSolution_QAPInstance", "QAPSolution")]
374        public EntityCollection<QAPSolution> QAPSolutions
375        {
376            get
377            {
378                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<QAPSolution>("ProblemInstancesModel.FK_QAPSolution_QAPInstance", "QAPSolution");
379            }
380            set
381            {
382                if ((value != null))
383                {
384                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<QAPSolution>("ProblemInstancesModel.FK_QAPSolution_QAPInstance", "QAPSolution", value);
385                }
386            }
387        }
388
389        #endregion
390    }
391   
392    /// <summary>
393    /// No Metadata Documentation available.
394    /// </summary>
395    [EdmEntityTypeAttribute(NamespaceName="ProblemInstancesModel", Name="QAPSolution")]
396    [Serializable()]
397    [DataContractAttribute(IsReference=true)]
398    public partial class QAPSolution : EntityObject
399    {
400        #region Factory Method
401   
402        /// <summary>
403        /// Create a new QAPSolution object.
404        /// </summary>
405        /// <param name="id">Initial value of the id property.</param>
406        /// <param name="name">Initial value of the name property.</param>
407        /// <param name="assignment">Initial value of the assignment property.</param>
408        /// <param name="assignment_sha1">Initial value of the assignment_sha1 property.</param>
409        /// <param name="quality">Initial value of the quality property.</param>
410        public static QAPSolution CreateQAPSolution(global::System.Int32 id, global::System.String name, global::System.String assignment, global::System.String assignment_sha1, global::System.Double quality)
411        {
412            QAPSolution qAPSolution = new QAPSolution();
413            qAPSolution.id = id;
414            qAPSolution.name = name;
415            qAPSolution.assignment = assignment;
416            qAPSolution.assignment_sha1 = assignment_sha1;
417            qAPSolution.quality = quality;
418            return qAPSolution;
419        }
420
421        #endregion
422        #region Primitive Properties
423   
424        /// <summary>
425        /// No Metadata Documentation available.
426        /// </summary>
427        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
428        [DataMemberAttribute()]
429        public global::System.Int32 id
430        {
431            get
432            {
433                return _id;
434            }
435            set
436            {
437                if (_id != value)
438                {
439                    OnidChanging(value);
440                    ReportPropertyChanging("id");
441                    _id = StructuralObject.SetValidValue(value);
442                    ReportPropertyChanged("id");
443                    OnidChanged();
444                }
445            }
446        }
447        private global::System.Int32 _id;
448        partial void OnidChanging(global::System.Int32 value);
449        partial void OnidChanged();
450   
451        /// <summary>
452        /// No Metadata Documentation available.
453        /// </summary>
454        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
455        [DataMemberAttribute()]
456        public global::System.String name
457        {
458            get
459            {
460                return _name;
461            }
462            set
463            {
464                OnnameChanging(value);
465                ReportPropertyChanging("name");
466                _name = StructuralObject.SetValidValue(value, false);
467                ReportPropertyChanged("name");
468                OnnameChanged();
469            }
470        }
471        private global::System.String _name;
472        partial void OnnameChanging(global::System.String value);
473        partial void OnnameChanged();
474   
475        /// <summary>
476        /// No Metadata Documentation available.
477        /// </summary>
478        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
479        [DataMemberAttribute()]
480        public global::System.String assignment
481        {
482            get
483            {
484                return _assignment;
485            }
486            set
487            {
488                OnassignmentChanging(value);
489                ReportPropertyChanging("assignment");
490                _assignment = StructuralObject.SetValidValue(value, false);
491                ReportPropertyChanged("assignment");
492                OnassignmentChanged();
493            }
494        }
495        private global::System.String _assignment;
496        partial void OnassignmentChanging(global::System.String value);
497        partial void OnassignmentChanged();
498   
499        /// <summary>
500        /// No Metadata Documentation available.
501        /// </summary>
502        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
503        [DataMemberAttribute()]
504        public global::System.String assignment_sha1
505        {
506            get
507            {
508                return _assignment_sha1;
509            }
510            set
511            {
512                Onassignment_sha1Changing(value);
513                ReportPropertyChanging("assignment_sha1");
514                _assignment_sha1 = StructuralObject.SetValidValue(value, false);
515                ReportPropertyChanged("assignment_sha1");
516                Onassignment_sha1Changed();
517            }
518        }
519        private global::System.String _assignment_sha1;
520        partial void Onassignment_sha1Changing(global::System.String value);
521        partial void Onassignment_sha1Changed();
522   
523        /// <summary>
524        /// No Metadata Documentation available.
525        /// </summary>
526        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
527        [DataMemberAttribute()]
528        public global::System.Double quality
529        {
530            get
531            {
532                return _quality;
533            }
534            set
535            {
536                OnqualityChanging(value);
537                ReportPropertyChanging("quality");
538                _quality = StructuralObject.SetValidValue(value);
539                ReportPropertyChanged("quality");
540                OnqualityChanged();
541            }
542        }
543        private global::System.Double _quality;
544        partial void OnqualityChanging(global::System.Double value);
545        partial void OnqualityChanged();
546
547        #endregion
548   
549        #region Navigation Properties
550   
551        /// <summary>
552        /// No Metadata Documentation available.
553        /// </summary>
554        [XmlIgnoreAttribute()]
555        [SoapIgnoreAttribute()]
556        [DataMemberAttribute()]
557        [EdmRelationshipNavigationPropertyAttribute("ProblemInstancesModel", "FK_QAPSolution_QAPInstance", "QAPInstance")]
558        public QAPInstance QAPInstance
559        {
560            get
561            {
562                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<QAPInstance>("ProblemInstancesModel.FK_QAPSolution_QAPInstance", "QAPInstance").Value;
563            }
564            set
565            {
566                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<QAPInstance>("ProblemInstancesModel.FK_QAPSolution_QAPInstance", "QAPInstance").Value = value;
567            }
568        }
569        /// <summary>
570        /// No Metadata Documentation available.
571        /// </summary>
572        [BrowsableAttribute(false)]
573        [DataMemberAttribute()]
574        public EntityReference<QAPInstance> QAPInstanceReference
575        {
576            get
577            {
578                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<QAPInstance>("ProblemInstancesModel.FK_QAPSolution_QAPInstance", "QAPInstance");
579            }
580            set
581            {
582                if ((value != null))
583                {
584                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<QAPInstance>("ProblemInstancesModel.FK_QAPSolution_QAPInstance", "QAPInstance", value);
585                }
586            }
587        }
588
589        #endregion
590    }
591
592    #endregion
593   
594}
Note: See TracBrowser for help on using the repository browser.