-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchildren_s_business_data_contect.designer.cs
283 lines (250 loc) · 7.49 KB
/
children_s_business_data_contect.designer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace project_market_registry
{
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Data;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
using System.ComponentModel;
using System;
[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="children`s_business_database")]
public partial class children_s_business_data_contectDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InsertTable(Table instance);
partial void UpdateTable(Table instance);
partial void DeleteTable(Table instance);
#endregion
public children_s_business_data_contectDataContext() :
base(global::project_market_registry.Properties.Settings.Default.children_s_business_databaseConnectionString, mappingSource)
{
OnCreated();
}
public children_s_business_data_contectDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public children_s_business_data_contectDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public children_s_business_data_contectDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public children_s_business_data_contectDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table<Table> Tables
{
get
{
return this.GetTable<Table>();
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.[Table]")]
public partial class Table : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _Order_Number;
private string _Product_Name;
private string _Description;
private System.Nullable<int> _Units__Kilogram_;
private System.Nullable<double> _Price_____;
private System.Nullable<double> _Taxes____;
private System.Nullable<double> _Total_Price____;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnOrder_NumberChanging(int value);
partial void OnOrder_NumberChanged();
partial void OnProduct_NameChanging(string value);
partial void OnProduct_NameChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
partial void OnUnits__Kilogram_Changing(System.Nullable<int> value);
partial void OnUnits__Kilogram_Changed();
partial void OnPrice_____Changing(System.Nullable<double> value);
partial void OnPrice_____Changed();
partial void OnTaxes____Changing(System.Nullable<double> value);
partial void OnTaxes____Changed();
partial void OnTotal_Price____Changing(System.Nullable<double> value);
partial void OnTotal_Price____Changed();
#endregion
public Table()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="[Order Number]", Storage="_Order_Number", DbType="Int NOT NULL", IsPrimaryKey=true)]
public int Order_Number
{
get
{
return this._Order_Number;
}
set
{
if ((this._Order_Number != value))
{
this.OnOrder_NumberChanging(value);
this.SendPropertyChanging();
this._Order_Number = value;
this.SendPropertyChanged("Order_Number");
this.OnOrder_NumberChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="[Product Name]", Storage="_Product_Name", DbType="NVarChar(MAX)")]
public string Product_Name
{
get
{
return this._Product_Name;
}
set
{
if ((this._Product_Name != value))
{
this.OnProduct_NameChanging(value);
this.SendPropertyChanging();
this._Product_Name = value;
this.SendPropertyChanged("Product_Name");
this.OnProduct_NameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(MAX)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="[Units (Kilogram)]", Storage="_Units__Kilogram_", DbType="Int")]
public System.Nullable<int> Units__Kilogram_
{
get
{
return this._Units__Kilogram_;
}
set
{
if ((this._Units__Kilogram_ != value))
{
this.OnUnits__Kilogram_Changing(value);
this.SendPropertyChanging();
this._Units__Kilogram_ = value;
this.SendPropertyChanged("Units__Kilogram_");
this.OnUnits__Kilogram_Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="[Price ($) ]", Storage="_Price_____", DbType="Float")]
public System.Nullable<double> Price_____
{
get
{
return this._Price_____;
}
set
{
if ((this._Price_____ != value))
{
this.OnPrice_____Changing(value);
this.SendPropertyChanging();
this._Price_____ = value;
this.SendPropertyChanged("Price_____");
this.OnPrice_____Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="[Taxes (%)]", Storage="_Taxes____", DbType="Float")]
public System.Nullable<double> Taxes____
{
get
{
return this._Taxes____;
}
set
{
if ((this._Taxes____ != value))
{
this.OnTaxes____Changing(value);
this.SendPropertyChanging();
this._Taxes____ = value;
this.SendPropertyChanged("Taxes____");
this.OnTaxes____Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="[Total Price ($)]", Storage="_Total_Price____", DbType="Float")]
public System.Nullable<double> Total_Price____
{
get
{
return this._Total_Price____;
}
set
{
if ((this._Total_Price____ != value))
{
this.OnTotal_Price____Changing(value);
this.SendPropertyChanging();
this._Total_Price____ = value;
this.SendPropertyChanged("Total_Price____");
this.OnTotal_Price____Changed();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}
#pragma warning restore 1591