1 | #pragma warning disable 1591
|
---|
2 | //------------------------------------------------------------------------------
|
---|
3 | // <auto-generated>
|
---|
4 | // This code was generated by a tool.
|
---|
5 | // Runtime Version:4.0.30319.1
|
---|
6 | //
|
---|
7 | // Changes to this file may cause incorrect behavior and will be lost if
|
---|
8 | // the code is regenerated.
|
---|
9 | // </auto-generated>
|
---|
10 | //------------------------------------------------------------------------------
|
---|
11 |
|
---|
12 | namespace HeuristicLab.Services.Deployment.DataAccess {
|
---|
13 | using System;
|
---|
14 | using System.ComponentModel;
|
---|
15 | using System.Data.Linq;
|
---|
16 | using System.Data.Linq.Mapping;
|
---|
17 |
|
---|
18 |
|
---|
19 | [global::System.Data.Linq.Mapping.DatabaseAttribute(Name = "HeuristicLab.PluginStore")]
|
---|
20 | public partial class PluginStoreClassesDataContext : System.Data.Linq.DataContext {
|
---|
21 |
|
---|
22 | private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
|
---|
23 |
|
---|
24 | #region Extensibility Method Definitions
|
---|
25 | partial void OnCreated();
|
---|
26 | partial void InsertDependency(Dependency instance);
|
---|
27 | partial void UpdateDependency(Dependency instance);
|
---|
28 | partial void DeleteDependency(Dependency instance);
|
---|
29 | partial void InsertProductPlugin(ProductPlugin instance);
|
---|
30 | partial void UpdateProductPlugin(ProductPlugin instance);
|
---|
31 | partial void DeleteProductPlugin(ProductPlugin instance);
|
---|
32 | partial void InsertPlugin(Plugin instance);
|
---|
33 | partial void UpdatePlugin(Plugin instance);
|
---|
34 | partial void DeletePlugin(Plugin instance);
|
---|
35 | partial void InsertPluginPackage(PluginPackage instance);
|
---|
36 | partial void UpdatePluginPackage(PluginPackage instance);
|
---|
37 | partial void DeletePluginPackage(PluginPackage instance);
|
---|
38 | partial void InsertProduct(Product instance);
|
---|
39 | partial void UpdateProduct(Product instance);
|
---|
40 | partial void DeleteProduct(Product instance);
|
---|
41 | #endregion
|
---|
42 |
|
---|
43 | public PluginStoreClassesDataContext() :
|
---|
44 | base(global::HeuristicLab.Services.Deployment.DataAccess.Properties.Settings.Default.HeuristicLab_PluginStoreConnectionString, mappingSource) {
|
---|
45 | OnCreated();
|
---|
46 | }
|
---|
47 |
|
---|
48 | public PluginStoreClassesDataContext(string connection) :
|
---|
49 | base(connection, mappingSource) {
|
---|
50 | OnCreated();
|
---|
51 | }
|
---|
52 |
|
---|
53 | public PluginStoreClassesDataContext(System.Data.IDbConnection connection) :
|
---|
54 | base(connection, mappingSource) {
|
---|
55 | OnCreated();
|
---|
56 | }
|
---|
57 |
|
---|
58 | public PluginStoreClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
59 | base(connection, mappingSource) {
|
---|
60 | OnCreated();
|
---|
61 | }
|
---|
62 |
|
---|
63 | public PluginStoreClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
---|
64 | base(connection, mappingSource) {
|
---|
65 | OnCreated();
|
---|
66 | }
|
---|
67 |
|
---|
68 | public System.Data.Linq.Table<Dependency> Dependencies {
|
---|
69 | get {
|
---|
70 | return this.GetTable<Dependency>();
|
---|
71 | }
|
---|
72 | }
|
---|
73 |
|
---|
74 | public System.Data.Linq.Table<ProductPlugin> ProductPlugins {
|
---|
75 | get {
|
---|
76 | return this.GetTable<ProductPlugin>();
|
---|
77 | }
|
---|
78 | }
|
---|
79 |
|
---|
80 | public System.Data.Linq.Table<Plugin> Plugins {
|
---|
81 | get {
|
---|
82 | return this.GetTable<Plugin>();
|
---|
83 | }
|
---|
84 | }
|
---|
85 |
|
---|
86 | public System.Data.Linq.Table<PluginPackage> PluginPackages {
|
---|
87 | get {
|
---|
88 | return this.GetTable<PluginPackage>();
|
---|
89 | }
|
---|
90 | }
|
---|
91 |
|
---|
92 | public System.Data.Linq.Table<Product> Products {
|
---|
93 | get {
|
---|
94 | return this.GetTable<Product>();
|
---|
95 | }
|
---|
96 | }
|
---|
97 | }
|
---|
98 |
|
---|
99 | [global::System.Data.Linq.Mapping.TableAttribute(Name = "dbo.Dependencies")]
|
---|
100 | public partial class Dependency : INotifyPropertyChanging, INotifyPropertyChanged {
|
---|
101 |
|
---|
102 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
103 |
|
---|
104 | private long _PluginId;
|
---|
105 |
|
---|
106 | private long _DependencyId;
|
---|
107 |
|
---|
108 | #region Extensibility Method Definitions
|
---|
109 | partial void OnLoaded();
|
---|
110 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
111 | partial void OnCreated();
|
---|
112 | partial void OnPluginIdChanging(long value);
|
---|
113 | partial void OnPluginIdChanged();
|
---|
114 | partial void OnDependencyIdChanging(long value);
|
---|
115 | partial void OnDependencyIdChanged();
|
---|
116 | #endregion
|
---|
117 |
|
---|
118 | public Dependency() {
|
---|
119 | OnCreated();
|
---|
120 | }
|
---|
121 |
|
---|
122 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_PluginId", DbType = "BigInt NOT NULL", IsPrimaryKey = true)]
|
---|
123 | public long PluginId {
|
---|
124 | get {
|
---|
125 | return this._PluginId;
|
---|
126 | }
|
---|
127 | set {
|
---|
128 | if ((this._PluginId != value)) {
|
---|
129 | this.OnPluginIdChanging(value);
|
---|
130 | this.SendPropertyChanging();
|
---|
131 | this._PluginId = value;
|
---|
132 | this.SendPropertyChanged("PluginId");
|
---|
133 | this.OnPluginIdChanged();
|
---|
134 | }
|
---|
135 | }
|
---|
136 | }
|
---|
137 |
|
---|
138 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_DependencyId", DbType = "BigInt NOT NULL", IsPrimaryKey = true)]
|
---|
139 | public long DependencyId {
|
---|
140 | get {
|
---|
141 | return this._DependencyId;
|
---|
142 | }
|
---|
143 | set {
|
---|
144 | if ((this._DependencyId != value)) {
|
---|
145 | this.OnDependencyIdChanging(value);
|
---|
146 | this.SendPropertyChanging();
|
---|
147 | this._DependencyId = value;
|
---|
148 | this.SendPropertyChanged("DependencyId");
|
---|
149 | this.OnDependencyIdChanged();
|
---|
150 | }
|
---|
151 | }
|
---|
152 | }
|
---|
153 |
|
---|
154 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
155 |
|
---|
156 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
157 |
|
---|
158 | protected virtual void SendPropertyChanging() {
|
---|
159 | if ((this.PropertyChanging != null)) {
|
---|
160 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
161 | }
|
---|
162 | }
|
---|
163 |
|
---|
164 | protected virtual void SendPropertyChanged(String propertyName) {
|
---|
165 | if ((this.PropertyChanged != null)) {
|
---|
166 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
167 | }
|
---|
168 | }
|
---|
169 | }
|
---|
170 |
|
---|
171 | [global::System.Data.Linq.Mapping.TableAttribute(Name = "dbo.ProductPlugin")]
|
---|
172 | public partial class ProductPlugin : INotifyPropertyChanging, INotifyPropertyChanged {
|
---|
173 |
|
---|
174 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
175 |
|
---|
176 | private long _ProductId;
|
---|
177 |
|
---|
178 | private long _PluginId;
|
---|
179 |
|
---|
180 | #region Extensibility Method Definitions
|
---|
181 | partial void OnLoaded();
|
---|
182 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
183 | partial void OnCreated();
|
---|
184 | partial void OnProductIdChanging(long value);
|
---|
185 | partial void OnProductIdChanged();
|
---|
186 | partial void OnPluginIdChanging(long value);
|
---|
187 | partial void OnPluginIdChanged();
|
---|
188 | #endregion
|
---|
189 |
|
---|
190 | public ProductPlugin() {
|
---|
191 | OnCreated();
|
---|
192 | }
|
---|
193 |
|
---|
194 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_ProductId", DbType = "BigInt NOT NULL", IsPrimaryKey = true)]
|
---|
195 | public long ProductId {
|
---|
196 | get {
|
---|
197 | return this._ProductId;
|
---|
198 | }
|
---|
199 | set {
|
---|
200 | if ((this._ProductId != value)) {
|
---|
201 | this.OnProductIdChanging(value);
|
---|
202 | this.SendPropertyChanging();
|
---|
203 | this._ProductId = value;
|
---|
204 | this.SendPropertyChanged("ProductId");
|
---|
205 | this.OnProductIdChanged();
|
---|
206 | }
|
---|
207 | }
|
---|
208 | }
|
---|
209 |
|
---|
210 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_PluginId", DbType = "BigInt NOT NULL", IsPrimaryKey = true)]
|
---|
211 | public long PluginId {
|
---|
212 | get {
|
---|
213 | return this._PluginId;
|
---|
214 | }
|
---|
215 | set {
|
---|
216 | if ((this._PluginId != value)) {
|
---|
217 | this.OnPluginIdChanging(value);
|
---|
218 | this.SendPropertyChanging();
|
---|
219 | this._PluginId = value;
|
---|
220 | this.SendPropertyChanged("PluginId");
|
---|
221 | this.OnPluginIdChanged();
|
---|
222 | }
|
---|
223 | }
|
---|
224 | }
|
---|
225 |
|
---|
226 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
227 |
|
---|
228 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
229 |
|
---|
230 | protected virtual void SendPropertyChanging() {
|
---|
231 | if ((this.PropertyChanging != null)) {
|
---|
232 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
233 | }
|
---|
234 | }
|
---|
235 |
|
---|
236 | protected virtual void SendPropertyChanged(String propertyName) {
|
---|
237 | if ((this.PropertyChanged != null)) {
|
---|
238 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
239 | }
|
---|
240 | }
|
---|
241 | }
|
---|
242 |
|
---|
243 | [global::System.Data.Linq.Mapping.TableAttribute(Name = "dbo.Plugin")]
|
---|
244 | public partial class Plugin : INotifyPropertyChanging, INotifyPropertyChanged {
|
---|
245 |
|
---|
246 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
247 |
|
---|
248 | private long _Id;
|
---|
249 |
|
---|
250 | private string _Name;
|
---|
251 |
|
---|
252 | private string _Version;
|
---|
253 |
|
---|
254 | private string _ContactName;
|
---|
255 |
|
---|
256 | private string _ContactEmail;
|
---|
257 |
|
---|
258 | private string _License;
|
---|
259 |
|
---|
260 | private EntityRef<PluginPackage> _PluginPackage;
|
---|
261 |
|
---|
262 | #region Extensibility Method Definitions
|
---|
263 | partial void OnLoaded();
|
---|
264 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
265 | partial void OnCreated();
|
---|
266 | partial void OnIdChanging(long value);
|
---|
267 | partial void OnIdChanged();
|
---|
268 | partial void OnNameChanging(string value);
|
---|
269 | partial void OnNameChanged();
|
---|
270 | partial void OnVersionChanging(string value);
|
---|
271 | partial void OnVersionChanged();
|
---|
272 | partial void OnContactNameChanging(string value);
|
---|
273 | partial void OnContactNameChanged();
|
---|
274 | partial void OnContactEmailChanging(string value);
|
---|
275 | partial void OnContactEmailChanged();
|
---|
276 | partial void OnLicenseChanging(string value);
|
---|
277 | partial void OnLicenseChanged();
|
---|
278 | #endregion
|
---|
279 |
|
---|
280 | public Plugin() {
|
---|
281 | this._PluginPackage = default(EntityRef<PluginPackage>);
|
---|
282 | OnCreated();
|
---|
283 | }
|
---|
284 |
|
---|
285 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_Id", AutoSync = AutoSync.OnInsert, DbType = "BigInt NOT NULL IDENTITY", IsPrimaryKey = true, IsDbGenerated = true)]
|
---|
286 | public long Id {
|
---|
287 | get {
|
---|
288 | return this._Id;
|
---|
289 | }
|
---|
290 | set {
|
---|
291 | if ((this._Id != value)) {
|
---|
292 | this.OnIdChanging(value);
|
---|
293 | this.SendPropertyChanging();
|
---|
294 | this._Id = value;
|
---|
295 | this.SendPropertyChanged("Id");
|
---|
296 | this.OnIdChanged();
|
---|
297 | }
|
---|
298 | }
|
---|
299 | }
|
---|
300 |
|
---|
301 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_Name", DbType = "NVarChar(300) NOT NULL", CanBeNull = false)]
|
---|
302 | public string Name {
|
---|
303 | get {
|
---|
304 | return this._Name;
|
---|
305 | }
|
---|
306 | set {
|
---|
307 | if ((this._Name != value)) {
|
---|
308 | this.OnNameChanging(value);
|
---|
309 | this.SendPropertyChanging();
|
---|
310 | this._Name = value;
|
---|
311 | this.SendPropertyChanged("Name");
|
---|
312 | this.OnNameChanged();
|
---|
313 | }
|
---|
314 | }
|
---|
315 | }
|
---|
316 |
|
---|
317 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_Version", DbType = "NVarChar(50) NOT NULL", CanBeNull = false)]
|
---|
318 | public string Version {
|
---|
319 | get {
|
---|
320 | return this._Version;
|
---|
321 | }
|
---|
322 | set {
|
---|
323 | if ((this._Version != value)) {
|
---|
324 | this.OnVersionChanging(value);
|
---|
325 | this.SendPropertyChanging();
|
---|
326 | this._Version = value;
|
---|
327 | this.SendPropertyChanged("Version");
|
---|
328 | this.OnVersionChanged();
|
---|
329 | }
|
---|
330 | }
|
---|
331 | }
|
---|
332 |
|
---|
333 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_ContactName", DbType = "Text", UpdateCheck = UpdateCheck.Never)]
|
---|
334 | public string ContactName {
|
---|
335 | get {
|
---|
336 | return this._ContactName;
|
---|
337 | }
|
---|
338 | set {
|
---|
339 | if ((this._ContactName != value)) {
|
---|
340 | this.OnContactNameChanging(value);
|
---|
341 | this.SendPropertyChanging();
|
---|
342 | this._ContactName = value;
|
---|
343 | this.SendPropertyChanged("ContactName");
|
---|
344 | this.OnContactNameChanged();
|
---|
345 | }
|
---|
346 | }
|
---|
347 | }
|
---|
348 |
|
---|
349 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_ContactEmail", DbType = "Text", UpdateCheck = UpdateCheck.Never)]
|
---|
350 | public string ContactEmail {
|
---|
351 | get {
|
---|
352 | return this._ContactEmail;
|
---|
353 | }
|
---|
354 | set {
|
---|
355 | if ((this._ContactEmail != value)) {
|
---|
356 | this.OnContactEmailChanging(value);
|
---|
357 | this.SendPropertyChanging();
|
---|
358 | this._ContactEmail = value;
|
---|
359 | this.SendPropertyChanged("ContactEmail");
|
---|
360 | this.OnContactEmailChanged();
|
---|
361 | }
|
---|
362 | }
|
---|
363 | }
|
---|
364 |
|
---|
365 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_License", DbType = "Text", UpdateCheck = UpdateCheck.Never)]
|
---|
366 | public string License {
|
---|
367 | get {
|
---|
368 | return this._License;
|
---|
369 | }
|
---|
370 | set {
|
---|
371 | if ((this._License != value)) {
|
---|
372 | this.OnLicenseChanging(value);
|
---|
373 | this.SendPropertyChanging();
|
---|
374 | this._License = value;
|
---|
375 | this.SendPropertyChanged("License");
|
---|
376 | this.OnLicenseChanged();
|
---|
377 | }
|
---|
378 | }
|
---|
379 | }
|
---|
380 |
|
---|
381 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name = "Plugin_PluginPackage", Storage = "_PluginPackage", ThisKey = "Id", OtherKey = "PluginId", IsUnique = true, IsForeignKey = false)]
|
---|
382 | public PluginPackage PluginPackage {
|
---|
383 | get {
|
---|
384 | return this._PluginPackage.Entity;
|
---|
385 | }
|
---|
386 | set {
|
---|
387 | PluginPackage previousValue = this._PluginPackage.Entity;
|
---|
388 | if (((previousValue != value)
|
---|
389 | || (this._PluginPackage.HasLoadedOrAssignedValue == false))) {
|
---|
390 | this.SendPropertyChanging();
|
---|
391 | if ((previousValue != null)) {
|
---|
392 | this._PluginPackage.Entity = null;
|
---|
393 | previousValue.Plugin = null;
|
---|
394 | }
|
---|
395 | this._PluginPackage.Entity = value;
|
---|
396 | if ((value != null)) {
|
---|
397 | value.Plugin = this;
|
---|
398 | }
|
---|
399 | this.SendPropertyChanged("PluginPackage");
|
---|
400 | }
|
---|
401 | }
|
---|
402 | }
|
---|
403 |
|
---|
404 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
405 |
|
---|
406 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
407 |
|
---|
408 | protected virtual void SendPropertyChanging() {
|
---|
409 | if ((this.PropertyChanging != null)) {
|
---|
410 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
411 | }
|
---|
412 | }
|
---|
413 |
|
---|
414 | protected virtual void SendPropertyChanged(String propertyName) {
|
---|
415 | if ((this.PropertyChanged != null)) {
|
---|
416 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
417 | }
|
---|
418 | }
|
---|
419 | }
|
---|
420 |
|
---|
421 | [global::System.Data.Linq.Mapping.TableAttribute(Name = "dbo.PluginPackage")]
|
---|
422 | public partial class PluginPackage : INotifyPropertyChanging, INotifyPropertyChanged {
|
---|
423 |
|
---|
424 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
425 |
|
---|
426 | private long _PluginId;
|
---|
427 |
|
---|
428 | private System.Data.Linq.Binary _Data;
|
---|
429 |
|
---|
430 | private EntityRef<Plugin> _Plugin;
|
---|
431 |
|
---|
432 | #region Extensibility Method Definitions
|
---|
433 | partial void OnLoaded();
|
---|
434 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
435 | partial void OnCreated();
|
---|
436 | partial void OnPluginIdChanging(long value);
|
---|
437 | partial void OnPluginIdChanged();
|
---|
438 | partial void OnDataChanging(System.Data.Linq.Binary value);
|
---|
439 | partial void OnDataChanged();
|
---|
440 | #endregion
|
---|
441 |
|
---|
442 | public PluginPackage() {
|
---|
443 | this._Plugin = default(EntityRef<Plugin>);
|
---|
444 | OnCreated();
|
---|
445 | }
|
---|
446 |
|
---|
447 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_PluginId", DbType = "BigInt NOT NULL", IsPrimaryKey = true)]
|
---|
448 | public long PluginId {
|
---|
449 | get {
|
---|
450 | return this._PluginId;
|
---|
451 | }
|
---|
452 | set {
|
---|
453 | if ((this._PluginId != value)) {
|
---|
454 | if (this._Plugin.HasLoadedOrAssignedValue) {
|
---|
455 | throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
---|
456 | }
|
---|
457 | this.OnPluginIdChanging(value);
|
---|
458 | this.SendPropertyChanging();
|
---|
459 | this._PluginId = value;
|
---|
460 | this.SendPropertyChanged("PluginId");
|
---|
461 | this.OnPluginIdChanged();
|
---|
462 | }
|
---|
463 | }
|
---|
464 | }
|
---|
465 |
|
---|
466 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_Data", DbType = "Image NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
|
---|
467 | public System.Data.Linq.Binary Data {
|
---|
468 | get {
|
---|
469 | return this._Data;
|
---|
470 | }
|
---|
471 | set {
|
---|
472 | if ((this._Data != value)) {
|
---|
473 | this.OnDataChanging(value);
|
---|
474 | this.SendPropertyChanging();
|
---|
475 | this._Data = value;
|
---|
476 | this.SendPropertyChanged("Data");
|
---|
477 | this.OnDataChanged();
|
---|
478 | }
|
---|
479 | }
|
---|
480 | }
|
---|
481 |
|
---|
482 | [global::System.Data.Linq.Mapping.AssociationAttribute(Name = "Plugin_PluginPackage", Storage = "_Plugin", ThisKey = "PluginId", OtherKey = "Id", IsForeignKey = true)]
|
---|
483 | public Plugin Plugin {
|
---|
484 | get {
|
---|
485 | return this._Plugin.Entity;
|
---|
486 | }
|
---|
487 | set {
|
---|
488 | Plugin previousValue = this._Plugin.Entity;
|
---|
489 | if (((previousValue != value)
|
---|
490 | || (this._Plugin.HasLoadedOrAssignedValue == false))) {
|
---|
491 | this.SendPropertyChanging();
|
---|
492 | if ((previousValue != null)) {
|
---|
493 | this._Plugin.Entity = null;
|
---|
494 | previousValue.PluginPackage = null;
|
---|
495 | }
|
---|
496 | this._Plugin.Entity = value;
|
---|
497 | if ((value != null)) {
|
---|
498 | value.PluginPackage = this;
|
---|
499 | this._PluginId = value.Id;
|
---|
500 | } else {
|
---|
501 | this._PluginId = default(long);
|
---|
502 | }
|
---|
503 | this.SendPropertyChanged("Plugin");
|
---|
504 | }
|
---|
505 | }
|
---|
506 | }
|
---|
507 |
|
---|
508 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
509 |
|
---|
510 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
511 |
|
---|
512 | protected virtual void SendPropertyChanging() {
|
---|
513 | if ((this.PropertyChanging != null)) {
|
---|
514 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
515 | }
|
---|
516 | }
|
---|
517 |
|
---|
518 | protected virtual void SendPropertyChanged(String propertyName) {
|
---|
519 | if ((this.PropertyChanged != null)) {
|
---|
520 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
521 | }
|
---|
522 | }
|
---|
523 | }
|
---|
524 |
|
---|
525 | [global::System.Data.Linq.Mapping.TableAttribute(Name = "dbo.Product")]
|
---|
526 | public partial class Product : INotifyPropertyChanging, INotifyPropertyChanged {
|
---|
527 |
|
---|
528 | private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
---|
529 |
|
---|
530 | private long _Id;
|
---|
531 |
|
---|
532 | private string _Name;
|
---|
533 |
|
---|
534 | private string _Version;
|
---|
535 |
|
---|
536 | #region Extensibility Method Definitions
|
---|
537 | partial void OnLoaded();
|
---|
538 | partial void OnValidate(System.Data.Linq.ChangeAction action);
|
---|
539 | partial void OnCreated();
|
---|
540 | partial void OnIdChanging(long value);
|
---|
541 | partial void OnIdChanged();
|
---|
542 | partial void OnNameChanging(string value);
|
---|
543 | partial void OnNameChanged();
|
---|
544 | partial void OnVersionChanging(string value);
|
---|
545 | partial void OnVersionChanged();
|
---|
546 | #endregion
|
---|
547 |
|
---|
548 | public Product() {
|
---|
549 | OnCreated();
|
---|
550 | }
|
---|
551 |
|
---|
552 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_Id", AutoSync = AutoSync.OnInsert, DbType = "BigInt NOT NULL IDENTITY", IsPrimaryKey = true, IsDbGenerated = true)]
|
---|
553 | public long Id {
|
---|
554 | get {
|
---|
555 | return this._Id;
|
---|
556 | }
|
---|
557 | set {
|
---|
558 | if ((this._Id != value)) {
|
---|
559 | this.OnIdChanging(value);
|
---|
560 | this.SendPropertyChanging();
|
---|
561 | this._Id = value;
|
---|
562 | this.SendPropertyChanged("Id");
|
---|
563 | this.OnIdChanged();
|
---|
564 | }
|
---|
565 | }
|
---|
566 | }
|
---|
567 |
|
---|
568 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_Name", DbType = "NVarChar(300) NOT NULL", CanBeNull = false)]
|
---|
569 | public string Name {
|
---|
570 | get {
|
---|
571 | return this._Name;
|
---|
572 | }
|
---|
573 | set {
|
---|
574 | if ((this._Name != value)) {
|
---|
575 | this.OnNameChanging(value);
|
---|
576 | this.SendPropertyChanging();
|
---|
577 | this._Name = value;
|
---|
578 | this.SendPropertyChanged("Name");
|
---|
579 | this.OnNameChanged();
|
---|
580 | }
|
---|
581 | }
|
---|
582 | }
|
---|
583 |
|
---|
584 | [global::System.Data.Linq.Mapping.ColumnAttribute(Storage = "_Version", DbType = "NVarChar(50) NOT NULL", CanBeNull = false)]
|
---|
585 | public string Version {
|
---|
586 | get {
|
---|
587 | return this._Version;
|
---|
588 | }
|
---|
589 | set {
|
---|
590 | if ((this._Version != value)) {
|
---|
591 | this.OnVersionChanging(value);
|
---|
592 | this.SendPropertyChanging();
|
---|
593 | this._Version = value;
|
---|
594 | this.SendPropertyChanged("Version");
|
---|
595 | this.OnVersionChanged();
|
---|
596 | }
|
---|
597 | }
|
---|
598 | }
|
---|
599 |
|
---|
600 | public event PropertyChangingEventHandler PropertyChanging;
|
---|
601 |
|
---|
602 | public event PropertyChangedEventHandler PropertyChanged;
|
---|
603 |
|
---|
604 | protected virtual void SendPropertyChanging() {
|
---|
605 | if ((this.PropertyChanging != null)) {
|
---|
606 | this.PropertyChanging(this, emptyChangingEventArgs);
|
---|
607 | }
|
---|
608 | }
|
---|
609 |
|
---|
610 | protected virtual void SendPropertyChanged(String propertyName) {
|
---|
611 | if ((this.PropertyChanged != null)) {
|
---|
612 | this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
---|
613 | }
|
---|
614 | }
|
---|
615 | }
|
---|
616 | }
|
---|
617 | #pragma warning restore 1591
|
---|