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