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 |
|
---|
10 | using System;
|
---|
11 | using System.Data.Objects;
|
---|
12 | using System.Data.Objects.DataClasses;
|
---|
13 | using System.Data.EntityClient;
|
---|
14 | using System.ComponentModel;
|
---|
15 | using System.Xml.Serialization;
|
---|
16 | using System.Runtime.Serialization;
|
---|
17 |
|
---|
18 | [assembly: EdmSchemaAttribute()]
|
---|
19 | #region EDM Relationship Metadata
|
---|
20 |
|
---|
21 | [assembly: EdmRelationshipAttribute("ProblemInstancesModel", "FK_QAPSolution_QAPInstance1", "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 |
|
---|
25 | namespace 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<T> 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<T> 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="weightsHash">Initial value of the WeightsHash property.</param>
|
---|
149 | /// <param name="distances">Initial value of the Distances property.</param>
|
---|
150 | /// <param name="distancesHash">Initial value of the DistancesHash 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 weightsHash, global::System.String distances, global::System.String distancesHash, global::System.Int32 problemSize)
|
---|
153 | {
|
---|
154 | QAPInstance qAPInstance = new QAPInstance();
|
---|
155 | qAPInstance.Name = name;
|
---|
156 | qAPInstance.Maximization = maximization;
|
---|
157 | qAPInstance.Weights = weights;
|
---|
158 | qAPInstance.WeightsHash = weightsHash;
|
---|
159 | qAPInstance.Distances = distances;
|
---|
160 | qAPInstance.DistancesHash = distancesHash;
|
---|
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 WeightsHash
|
---|
273 | {
|
---|
274 | get
|
---|
275 | {
|
---|
276 | return _WeightsHash;
|
---|
277 | }
|
---|
278 | set
|
---|
279 | {
|
---|
280 | OnWeightsHashChanging(value);
|
---|
281 | ReportPropertyChanging("WeightsHash");
|
---|
282 | _WeightsHash = StructuralObject.SetValidValue(value, false);
|
---|
283 | ReportPropertyChanged("WeightsHash");
|
---|
284 | OnWeightsHashChanged();
|
---|
285 | }
|
---|
286 | }
|
---|
287 | private global::System.String _WeightsHash;
|
---|
288 | partial void OnWeightsHashChanging(global::System.String value);
|
---|
289 | partial void OnWeightsHashChanged();
|
---|
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 DistancesHash
|
---|
321 | {
|
---|
322 | get
|
---|
323 | {
|
---|
324 | return _DistancesHash;
|
---|
325 | }
|
---|
326 | set
|
---|
327 | {
|
---|
328 | OnDistancesHashChanging(value);
|
---|
329 | ReportPropertyChanging("DistancesHash");
|
---|
330 | _DistancesHash = StructuralObject.SetValidValue(value, false);
|
---|
331 | ReportPropertyChanged("DistancesHash");
|
---|
332 | OnDistancesHashChanged();
|
---|
333 | }
|
---|
334 | }
|
---|
335 | private global::System.String _DistancesHash;
|
---|
336 | partial void OnDistancesHashChanging(global::System.String value);
|
---|
337 | partial void OnDistancesHashChanged();
|
---|
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_QAPInstance1", "QAPSolution")]
|
---|
374 | public EntityCollection<QAPSolution> Solutions
|
---|
375 | {
|
---|
376 | get
|
---|
377 | {
|
---|
378 | return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<QAPSolution>("ProblemInstancesModel.FK_QAPSolution_QAPInstance1", "QAPSolution");
|
---|
379 | }
|
---|
380 | set
|
---|
381 | {
|
---|
382 | if ((value != null))
|
---|
383 | {
|
---|
384 | ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<QAPSolution>("ProblemInstancesModel.FK_QAPSolution_QAPInstance1", "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="quality">Initial value of the Quality property.</param>
|
---|
408 | public static QAPSolution CreateQAPSolution(global::System.Int32 id, global::System.String name, global::System.Double quality)
|
---|
409 | {
|
---|
410 | QAPSolution qAPSolution = new QAPSolution();
|
---|
411 | qAPSolution.Id = id;
|
---|
412 | qAPSolution.Name = name;
|
---|
413 | qAPSolution.Quality = quality;
|
---|
414 | return qAPSolution;
|
---|
415 | }
|
---|
416 |
|
---|
417 | #endregion
|
---|
418 | #region Primitive Properties
|
---|
419 |
|
---|
420 | /// <summary>
|
---|
421 | /// No Metadata Documentation available.
|
---|
422 | /// </summary>
|
---|
423 | [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
---|
424 | [DataMemberAttribute()]
|
---|
425 | public global::System.Int32 Id
|
---|
426 | {
|
---|
427 | get
|
---|
428 | {
|
---|
429 | return _Id;
|
---|
430 | }
|
---|
431 | set
|
---|
432 | {
|
---|
433 | if (_Id != value)
|
---|
434 | {
|
---|
435 | OnIdChanging(value);
|
---|
436 | ReportPropertyChanging("Id");
|
---|
437 | _Id = StructuralObject.SetValidValue(value);
|
---|
438 | ReportPropertyChanged("Id");
|
---|
439 | OnIdChanged();
|
---|
440 | }
|
---|
441 | }
|
---|
442 | }
|
---|
443 | private global::System.Int32 _Id;
|
---|
444 | partial void OnIdChanging(global::System.Int32 value);
|
---|
445 | partial void OnIdChanged();
|
---|
446 |
|
---|
447 | /// <summary>
|
---|
448 | /// No Metadata Documentation available.
|
---|
449 | /// </summary>
|
---|
450 | [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
---|
451 | [DataMemberAttribute()]
|
---|
452 | public global::System.String Name
|
---|
453 | {
|
---|
454 | get
|
---|
455 | {
|
---|
456 | return _Name;
|
---|
457 | }
|
---|
458 | set
|
---|
459 | {
|
---|
460 | OnNameChanging(value);
|
---|
461 | ReportPropertyChanging("Name");
|
---|
462 | _Name = StructuralObject.SetValidValue(value, false);
|
---|
463 | ReportPropertyChanged("Name");
|
---|
464 | OnNameChanged();
|
---|
465 | }
|
---|
466 | }
|
---|
467 | private global::System.String _Name;
|
---|
468 | partial void OnNameChanging(global::System.String value);
|
---|
469 | partial void OnNameChanged();
|
---|
470 |
|
---|
471 | /// <summary>
|
---|
472 | /// No Metadata Documentation available.
|
---|
473 | /// </summary>
|
---|
474 | [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
---|
475 | [DataMemberAttribute()]
|
---|
476 | public global::System.String Assignment
|
---|
477 | {
|
---|
478 | get
|
---|
479 | {
|
---|
480 | return _Assignment;
|
---|
481 | }
|
---|
482 | set
|
---|
483 | {
|
---|
484 | OnAssignmentChanging(value);
|
---|
485 | ReportPropertyChanging("Assignment");
|
---|
486 | _Assignment = StructuralObject.SetValidValue(value, true);
|
---|
487 | ReportPropertyChanged("Assignment");
|
---|
488 | OnAssignmentChanged();
|
---|
489 | }
|
---|
490 | }
|
---|
491 | private global::System.String _Assignment;
|
---|
492 | partial void OnAssignmentChanging(global::System.String value);
|
---|
493 | partial void OnAssignmentChanged();
|
---|
494 |
|
---|
495 | /// <summary>
|
---|
496 | /// No Metadata Documentation available.
|
---|
497 | /// </summary>
|
---|
498 | [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
---|
499 | [DataMemberAttribute()]
|
---|
500 | public global::System.String AssignmentHash
|
---|
501 | {
|
---|
502 | get
|
---|
503 | {
|
---|
504 | return _AssignmentHash;
|
---|
505 | }
|
---|
506 | set
|
---|
507 | {
|
---|
508 | OnAssignmentHashChanging(value);
|
---|
509 | ReportPropertyChanging("AssignmentHash");
|
---|
510 | _AssignmentHash = StructuralObject.SetValidValue(value, true);
|
---|
511 | ReportPropertyChanged("AssignmentHash");
|
---|
512 | OnAssignmentHashChanged();
|
---|
513 | }
|
---|
514 | }
|
---|
515 | private global::System.String _AssignmentHash;
|
---|
516 | partial void OnAssignmentHashChanging(global::System.String value);
|
---|
517 | partial void OnAssignmentHashChanged();
|
---|
518 |
|
---|
519 | /// <summary>
|
---|
520 | /// No Metadata Documentation available.
|
---|
521 | /// </summary>
|
---|
522 | [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
---|
523 | [DataMemberAttribute()]
|
---|
524 | public global::System.Double Quality
|
---|
525 | {
|
---|
526 | get
|
---|
527 | {
|
---|
528 | return _Quality;
|
---|
529 | }
|
---|
530 | set
|
---|
531 | {
|
---|
532 | OnQualityChanging(value);
|
---|
533 | ReportPropertyChanging("Quality");
|
---|
534 | _Quality = StructuralObject.SetValidValue(value);
|
---|
535 | ReportPropertyChanged("Quality");
|
---|
536 | OnQualityChanged();
|
---|
537 | }
|
---|
538 | }
|
---|
539 | private global::System.Double _Quality;
|
---|
540 | partial void OnQualityChanging(global::System.Double value);
|
---|
541 | partial void OnQualityChanged();
|
---|
542 |
|
---|
543 | #endregion
|
---|
544 |
|
---|
545 | #region Navigation Properties
|
---|
546 |
|
---|
547 | /// <summary>
|
---|
548 | /// No Metadata Documentation available.
|
---|
549 | /// </summary>
|
---|
550 | [XmlIgnoreAttribute()]
|
---|
551 | [SoapIgnoreAttribute()]
|
---|
552 | [DataMemberAttribute()]
|
---|
553 | [EdmRelationshipNavigationPropertyAttribute("ProblemInstancesModel", "FK_QAPSolution_QAPInstance1", "QAPInstance")]
|
---|
554 | public QAPInstance Instance
|
---|
555 | {
|
---|
556 | get
|
---|
557 | {
|
---|
558 | return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<QAPInstance>("ProblemInstancesModel.FK_QAPSolution_QAPInstance1", "QAPInstance").Value;
|
---|
559 | }
|
---|
560 | set
|
---|
561 | {
|
---|
562 | ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<QAPInstance>("ProblemInstancesModel.FK_QAPSolution_QAPInstance1", "QAPInstance").Value = value;
|
---|
563 | }
|
---|
564 | }
|
---|
565 | /// <summary>
|
---|
566 | /// No Metadata Documentation available.
|
---|
567 | /// </summary>
|
---|
568 | [BrowsableAttribute(false)]
|
---|
569 | [DataMemberAttribute()]
|
---|
570 | public EntityReference<QAPInstance> InstanceReference
|
---|
571 | {
|
---|
572 | get
|
---|
573 | {
|
---|
574 | return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<QAPInstance>("ProblemInstancesModel.FK_QAPSolution_QAPInstance1", "QAPInstance");
|
---|
575 | }
|
---|
576 | set
|
---|
577 | {
|
---|
578 | if ((value != null))
|
---|
579 | {
|
---|
580 | ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<QAPInstance>("ProblemInstancesModel.FK_QAPSolution_QAPInstance1", "QAPInstance", value);
|
---|
581 | }
|
---|
582 | }
|
---|
583 | }
|
---|
584 |
|
---|
585 | #endregion
|
---|
586 | }
|
---|
587 |
|
---|
588 | #endregion
|
---|
589 |
|
---|
590 | }
|
---|