0
|
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.ComponentModel;
|
|
12 using System.Data.EntityClient;
|
|
13 using System.Data.Objects;
|
|
14 using System.Data.Objects.DataClasses;
|
|
15 using System.Linq;
|
|
16 using System.Runtime.Serialization;
|
|
17 using System.Xml.Serialization;
|
|
18
|
|
19 [assembly: EdmSchemaAttribute()]
|
|
20 #region EDM Relationship Metadata
|
|
21
|
|
22 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Products_Categories", "Categories", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Category), "Products", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Product), true)]
|
|
23 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Orders_Customers", "Customers", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Customer), "Orders", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order), true)]
|
|
24 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Employees_Employees", "Employees", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Employee), "Employees1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Employee), true)]
|
|
25 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Orders_Employees", "Employees", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Employee), "Orders", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order), true)]
|
|
26 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Order_Details_Orders", "Orders", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(NorthwindDataService.Order), "Order_Details", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order_Detail), true)]
|
|
27 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Order_Details_Products", "Products", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(NorthwindDataService.Product), "Order_Details", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order_Detail), true)]
|
|
28 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Orders_Shippers", "Shippers", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Shipper), "Orders", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order), true)]
|
|
29 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Products_Suppliers", "Suppliers", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Supplier), "Products", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Product), true)]
|
|
30 [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Territories_Region", "Region", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(NorthwindDataService.Region), "Territories", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Territory), true)]
|
|
31 [assembly: EdmRelationshipAttribute("NorthwindModel", "CustomerCustomerDemo", "CustomerDemographics", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.CustomerDemographic), "Customers", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Customer))]
|
|
32 [assembly: EdmRelationshipAttribute("NorthwindModel", "EmployeeTerritories", "Employees", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Employee), "Territories", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Territory))]
|
|
33
|
|
34 #endregion
|
|
35
|
|
36 namespace NorthwindDataService
|
|
37 {
|
|
38 #region Contexts
|
|
39
|
|
40 /// <summary>
|
|
41 /// No Metadata Documentation available.
|
|
42 /// </summary>
|
|
43 public partial class NorthwindEntities : ObjectContext
|
|
44 {
|
|
45 #region Constructors
|
|
46
|
|
47 /// <summary>
|
|
48 /// Initializes a new NorthwindEntities object using the connection string found in the 'NorthwindEntities' section of the application configuration file.
|
|
49 /// </summary>
|
|
50 public NorthwindEntities() : base("name=NorthwindEntities", "NorthwindEntities")
|
|
51 {
|
|
52 this.ContextOptions.LazyLoadingEnabled = true;
|
|
53 OnContextCreated();
|
|
54 }
|
|
55
|
|
56 /// <summary>
|
|
57 /// Initialize a new NorthwindEntities object.
|
|
58 /// </summary>
|
|
59 public NorthwindEntities(string connectionString) : base(connectionString, "NorthwindEntities")
|
|
60 {
|
|
61 this.ContextOptions.LazyLoadingEnabled = true;
|
|
62 OnContextCreated();
|
|
63 }
|
|
64
|
|
65 /// <summary>
|
|
66 /// Initialize a new NorthwindEntities object.
|
|
67 /// </summary>
|
|
68 public NorthwindEntities(EntityConnection connection) : base(connection, "NorthwindEntities")
|
|
69 {
|
|
70 this.ContextOptions.LazyLoadingEnabled = true;
|
|
71 OnContextCreated();
|
|
72 }
|
|
73
|
|
74 #endregion
|
|
75
|
|
76 #region Partial Methods
|
|
77
|
|
78 partial void OnContextCreated();
|
|
79
|
|
80 #endregion
|
|
81
|
|
82 #region ObjectSet Properties
|
|
83
|
|
84 /// <summary>
|
|
85 /// No Metadata Documentation available.
|
|
86 /// </summary>
|
|
87 public ObjectSet<Category> Categories
|
|
88 {
|
|
89 get
|
|
90 {
|
|
91 if ((_Categories == null))
|
|
92 {
|
|
93 _Categories = base.CreateObjectSet<Category>("Categories");
|
|
94 }
|
|
95 return _Categories;
|
|
96 }
|
|
97 }
|
|
98 private ObjectSet<Category> _Categories;
|
|
99
|
|
100 /// <summary>
|
|
101 /// No Metadata Documentation available.
|
|
102 /// </summary>
|
|
103 public ObjectSet<CustomerDemographic> CustomerDemographics
|
|
104 {
|
|
105 get
|
|
106 {
|
|
107 if ((_CustomerDemographics == null))
|
|
108 {
|
|
109 _CustomerDemographics = base.CreateObjectSet<CustomerDemographic>("CustomerDemographics");
|
|
110 }
|
|
111 return _CustomerDemographics;
|
|
112 }
|
|
113 }
|
|
114 private ObjectSet<CustomerDemographic> _CustomerDemographics;
|
|
115
|
|
116 /// <summary>
|
|
117 /// No Metadata Documentation available.
|
|
118 /// </summary>
|
|
119 public ObjectSet<Customer> Customers
|
|
120 {
|
|
121 get
|
|
122 {
|
|
123 if ((_Customers == null))
|
|
124 {
|
|
125 _Customers = base.CreateObjectSet<Customer>("Customers");
|
|
126 }
|
|
127 return _Customers;
|
|
128 }
|
|
129 }
|
|
130 private ObjectSet<Customer> _Customers;
|
|
131
|
|
132 /// <summary>
|
|
133 /// No Metadata Documentation available.
|
|
134 /// </summary>
|
|
135 public ObjectSet<Employee> Employees
|
|
136 {
|
|
137 get
|
|
138 {
|
|
139 if ((_Employees == null))
|
|
140 {
|
|
141 _Employees = base.CreateObjectSet<Employee>("Employees");
|
|
142 }
|
|
143 return _Employees;
|
|
144 }
|
|
145 }
|
|
146 private ObjectSet<Employee> _Employees;
|
|
147
|
|
148 /// <summary>
|
|
149 /// No Metadata Documentation available.
|
|
150 /// </summary>
|
|
151 public ObjectSet<Order_Detail> Order_Details
|
|
152 {
|
|
153 get
|
|
154 {
|
|
155 if ((_Order_Details == null))
|
|
156 {
|
|
157 _Order_Details = base.CreateObjectSet<Order_Detail>("Order_Details");
|
|
158 }
|
|
159 return _Order_Details;
|
|
160 }
|
|
161 }
|
|
162 private ObjectSet<Order_Detail> _Order_Details;
|
|
163
|
|
164 /// <summary>
|
|
165 /// No Metadata Documentation available.
|
|
166 /// </summary>
|
|
167 public ObjectSet<Order> Orders
|
|
168 {
|
|
169 get
|
|
170 {
|
|
171 if ((_Orders == null))
|
|
172 {
|
|
173 _Orders = base.CreateObjectSet<Order>("Orders");
|
|
174 }
|
|
175 return _Orders;
|
|
176 }
|
|
177 }
|
|
178 private ObjectSet<Order> _Orders;
|
|
179
|
|
180 /// <summary>
|
|
181 /// No Metadata Documentation available.
|
|
182 /// </summary>
|
|
183 public ObjectSet<Product> Products
|
|
184 {
|
|
185 get
|
|
186 {
|
|
187 if ((_Products == null))
|
|
188 {
|
|
189 _Products = base.CreateObjectSet<Product>("Products");
|
|
190 }
|
|
191 return _Products;
|
|
192 }
|
|
193 }
|
|
194 private ObjectSet<Product> _Products;
|
|
195
|
|
196 /// <summary>
|
|
197 /// No Metadata Documentation available.
|
|
198 /// </summary>
|
|
199 public ObjectSet<Region> Regions
|
|
200 {
|
|
201 get
|
|
202 {
|
|
203 if ((_Regions == null))
|
|
204 {
|
|
205 _Regions = base.CreateObjectSet<Region>("Regions");
|
|
206 }
|
|
207 return _Regions;
|
|
208 }
|
|
209 }
|
|
210 private ObjectSet<Region> _Regions;
|
|
211
|
|
212 /// <summary>
|
|
213 /// No Metadata Documentation available.
|
|
214 /// </summary>
|
|
215 public ObjectSet<Shipper> Shippers
|
|
216 {
|
|
217 get
|
|
218 {
|
|
219 if ((_Shippers == null))
|
|
220 {
|
|
221 _Shippers = base.CreateObjectSet<Shipper>("Shippers");
|
|
222 }
|
|
223 return _Shippers;
|
|
224 }
|
|
225 }
|
|
226 private ObjectSet<Shipper> _Shippers;
|
|
227
|
|
228 /// <summary>
|
|
229 /// No Metadata Documentation available.
|
|
230 /// </summary>
|
|
231 public ObjectSet<Supplier> Suppliers
|
|
232 {
|
|
233 get
|
|
234 {
|
|
235 if ((_Suppliers == null))
|
|
236 {
|
|
237 _Suppliers = base.CreateObjectSet<Supplier>("Suppliers");
|
|
238 }
|
|
239 return _Suppliers;
|
|
240 }
|
|
241 }
|
|
242 private ObjectSet<Supplier> _Suppliers;
|
|
243
|
|
244 /// <summary>
|
|
245 /// No Metadata Documentation available.
|
|
246 /// </summary>
|
|
247 public ObjectSet<sysdiagram> sysdiagrams
|
|
248 {
|
|
249 get
|
|
250 {
|
|
251 if ((_sysdiagrams == null))
|
|
252 {
|
|
253 _sysdiagrams = base.CreateObjectSet<sysdiagram>("sysdiagrams");
|
|
254 }
|
|
255 return _sysdiagrams;
|
|
256 }
|
|
257 }
|
|
258 private ObjectSet<sysdiagram> _sysdiagrams;
|
|
259
|
|
260 /// <summary>
|
|
261 /// No Metadata Documentation available.
|
|
262 /// </summary>
|
|
263 public ObjectSet<Territory> Territories
|
|
264 {
|
|
265 get
|
|
266 {
|
|
267 if ((_Territories == null))
|
|
268 {
|
|
269 _Territories = base.CreateObjectSet<Territory>("Territories");
|
|
270 }
|
|
271 return _Territories;
|
|
272 }
|
|
273 }
|
|
274 private ObjectSet<Territory> _Territories;
|
|
275
|
|
276 /// <summary>
|
|
277 /// No Metadata Documentation available.
|
|
278 /// </summary>
|
|
279 public ObjectSet<Alphabetical_list_of_product> Alphabetical_list_of_products
|
|
280 {
|
|
281 get
|
|
282 {
|
|
283 if ((_Alphabetical_list_of_products == null))
|
|
284 {
|
|
285 _Alphabetical_list_of_products = base.CreateObjectSet<Alphabetical_list_of_product>("Alphabetical_list_of_products");
|
|
286 }
|
|
287 return _Alphabetical_list_of_products;
|
|
288 }
|
|
289 }
|
|
290 private ObjectSet<Alphabetical_list_of_product> _Alphabetical_list_of_products;
|
|
291
|
|
292 /// <summary>
|
|
293 /// No Metadata Documentation available.
|
|
294 /// </summary>
|
|
295 public ObjectSet<Category_Sales_for_1997> Category_Sales_for_1997
|
|
296 {
|
|
297 get
|
|
298 {
|
|
299 if ((_Category_Sales_for_1997 == null))
|
|
300 {
|
|
301 _Category_Sales_for_1997 = base.CreateObjectSet<Category_Sales_for_1997>("Category_Sales_for_1997");
|
|
302 }
|
|
303 return _Category_Sales_for_1997;
|
|
304 }
|
|
305 }
|
|
306 private ObjectSet<Category_Sales_for_1997> _Category_Sales_for_1997;
|
|
307
|
|
308 /// <summary>
|
|
309 /// No Metadata Documentation available.
|
|
310 /// </summary>
|
|
311 public ObjectSet<Current_Product_List> Current_Product_Lists
|
|
312 {
|
|
313 get
|
|
314 {
|
|
315 if ((_Current_Product_Lists == null))
|
|
316 {
|
|
317 _Current_Product_Lists = base.CreateObjectSet<Current_Product_List>("Current_Product_Lists");
|
|
318 }
|
|
319 return _Current_Product_Lists;
|
|
320 }
|
|
321 }
|
|
322 private ObjectSet<Current_Product_List> _Current_Product_Lists;
|
|
323
|
|
324 /// <summary>
|
|
325 /// No Metadata Documentation available.
|
|
326 /// </summary>
|
|
327 public ObjectSet<Customer_and_Suppliers_by_City> Customer_and_Suppliers_by_Cities
|
|
328 {
|
|
329 get
|
|
330 {
|
|
331 if ((_Customer_and_Suppliers_by_Cities == null))
|
|
332 {
|
|
333 _Customer_and_Suppliers_by_Cities = base.CreateObjectSet<Customer_and_Suppliers_by_City>("Customer_and_Suppliers_by_Cities");
|
|
334 }
|
|
335 return _Customer_and_Suppliers_by_Cities;
|
|
336 }
|
|
337 }
|
|
338 private ObjectSet<Customer_and_Suppliers_by_City> _Customer_and_Suppliers_by_Cities;
|
|
339
|
|
340 /// <summary>
|
|
341 /// No Metadata Documentation available.
|
|
342 /// </summary>
|
|
343 public ObjectSet<Invoice> Invoices
|
|
344 {
|
|
345 get
|
|
346 {
|
|
347 if ((_Invoices == null))
|
|
348 {
|
|
349 _Invoices = base.CreateObjectSet<Invoice>("Invoices");
|
|
350 }
|
|
351 return _Invoices;
|
|
352 }
|
|
353 }
|
|
354 private ObjectSet<Invoice> _Invoices;
|
|
355
|
|
356 /// <summary>
|
|
357 /// No Metadata Documentation available.
|
|
358 /// </summary>
|
|
359 public ObjectSet<Order_Details_Extended> Order_Details_Extendeds
|
|
360 {
|
|
361 get
|
|
362 {
|
|
363 if ((_Order_Details_Extendeds == null))
|
|
364 {
|
|
365 _Order_Details_Extendeds = base.CreateObjectSet<Order_Details_Extended>("Order_Details_Extendeds");
|
|
366 }
|
|
367 return _Order_Details_Extendeds;
|
|
368 }
|
|
369 }
|
|
370 private ObjectSet<Order_Details_Extended> _Order_Details_Extendeds;
|
|
371
|
|
372 /// <summary>
|
|
373 /// No Metadata Documentation available.
|
|
374 /// </summary>
|
|
375 public ObjectSet<Order_Subtotal> Order_Subtotals
|
|
376 {
|
|
377 get
|
|
378 {
|
|
379 if ((_Order_Subtotals == null))
|
|
380 {
|
|
381 _Order_Subtotals = base.CreateObjectSet<Order_Subtotal>("Order_Subtotals");
|
|
382 }
|
|
383 return _Order_Subtotals;
|
|
384 }
|
|
385 }
|
|
386 private ObjectSet<Order_Subtotal> _Order_Subtotals;
|
|
387
|
|
388 /// <summary>
|
|
389 /// No Metadata Documentation available.
|
|
390 /// </summary>
|
|
391 public ObjectSet<Orders_Qry> Orders_Qries
|
|
392 {
|
|
393 get
|
|
394 {
|
|
395 if ((_Orders_Qries == null))
|
|
396 {
|
|
397 _Orders_Qries = base.CreateObjectSet<Orders_Qry>("Orders_Qries");
|
|
398 }
|
|
399 return _Orders_Qries;
|
|
400 }
|
|
401 }
|
|
402 private ObjectSet<Orders_Qry> _Orders_Qries;
|
|
403
|
|
404 /// <summary>
|
|
405 /// No Metadata Documentation available.
|
|
406 /// </summary>
|
|
407 public ObjectSet<Product_Sales_for_1997> Product_Sales_for_1997
|
|
408 {
|
|
409 get
|
|
410 {
|
|
411 if ((_Product_Sales_for_1997 == null))
|
|
412 {
|
|
413 _Product_Sales_for_1997 = base.CreateObjectSet<Product_Sales_for_1997>("Product_Sales_for_1997");
|
|
414 }
|
|
415 return _Product_Sales_for_1997;
|
|
416 }
|
|
417 }
|
|
418 private ObjectSet<Product_Sales_for_1997> _Product_Sales_for_1997;
|
|
419
|
|
420 /// <summary>
|
|
421 /// No Metadata Documentation available.
|
|
422 /// </summary>
|
|
423 public ObjectSet<Products_Above_Average_Price> Products_Above_Average_Prices
|
|
424 {
|
|
425 get
|
|
426 {
|
|
427 if ((_Products_Above_Average_Prices == null))
|
|
428 {
|
|
429 _Products_Above_Average_Prices = base.CreateObjectSet<Products_Above_Average_Price>("Products_Above_Average_Prices");
|
|
430 }
|
|
431 return _Products_Above_Average_Prices;
|
|
432 }
|
|
433 }
|
|
434 private ObjectSet<Products_Above_Average_Price> _Products_Above_Average_Prices;
|
|
435
|
|
436 /// <summary>
|
|
437 /// No Metadata Documentation available.
|
|
438 /// </summary>
|
|
439 public ObjectSet<Products_by_Category> Products_by_Categories
|
|
440 {
|
|
441 get
|
|
442 {
|
|
443 if ((_Products_by_Categories == null))
|
|
444 {
|
|
445 _Products_by_Categories = base.CreateObjectSet<Products_by_Category>("Products_by_Categories");
|
|
446 }
|
|
447 return _Products_by_Categories;
|
|
448 }
|
|
449 }
|
|
450 private ObjectSet<Products_by_Category> _Products_by_Categories;
|
|
451
|
|
452 /// <summary>
|
|
453 /// No Metadata Documentation available.
|
|
454 /// </summary>
|
|
455 public ObjectSet<Sales_by_Category> Sales_by_Categories
|
|
456 {
|
|
457 get
|
|
458 {
|
|
459 if ((_Sales_by_Categories == null))
|
|
460 {
|
|
461 _Sales_by_Categories = base.CreateObjectSet<Sales_by_Category>("Sales_by_Categories");
|
|
462 }
|
|
463 return _Sales_by_Categories;
|
|
464 }
|
|
465 }
|
|
466 private ObjectSet<Sales_by_Category> _Sales_by_Categories;
|
|
467
|
|
468 /// <summary>
|
|
469 /// No Metadata Documentation available.
|
|
470 /// </summary>
|
|
471 public ObjectSet<Sales_Totals_by_Amount> Sales_Totals_by_Amounts
|
|
472 {
|
|
473 get
|
|
474 {
|
|
475 if ((_Sales_Totals_by_Amounts == null))
|
|
476 {
|
|
477 _Sales_Totals_by_Amounts = base.CreateObjectSet<Sales_Totals_by_Amount>("Sales_Totals_by_Amounts");
|
|
478 }
|
|
479 return _Sales_Totals_by_Amounts;
|
|
480 }
|
|
481 }
|
|
482 private ObjectSet<Sales_Totals_by_Amount> _Sales_Totals_by_Amounts;
|
|
483
|
|
484 /// <summary>
|
|
485 /// No Metadata Documentation available.
|
|
486 /// </summary>
|
|
487 public ObjectSet<Summary_of_Sales_by_Quarter> Summary_of_Sales_by_Quarters
|
|
488 {
|
|
489 get
|
|
490 {
|
|
491 if ((_Summary_of_Sales_by_Quarters == null))
|
|
492 {
|
|
493 _Summary_of_Sales_by_Quarters = base.CreateObjectSet<Summary_of_Sales_by_Quarter>("Summary_of_Sales_by_Quarters");
|
|
494 }
|
|
495 return _Summary_of_Sales_by_Quarters;
|
|
496 }
|
|
497 }
|
|
498 private ObjectSet<Summary_of_Sales_by_Quarter> _Summary_of_Sales_by_Quarters;
|
|
499
|
|
500 /// <summary>
|
|
501 /// No Metadata Documentation available.
|
|
502 /// </summary>
|
|
503 public ObjectSet<Summary_of_Sales_by_Year> Summary_of_Sales_by_Years
|
|
504 {
|
|
505 get
|
|
506 {
|
|
507 if ((_Summary_of_Sales_by_Years == null))
|
|
508 {
|
|
509 _Summary_of_Sales_by_Years = base.CreateObjectSet<Summary_of_Sales_by_Year>("Summary_of_Sales_by_Years");
|
|
510 }
|
|
511 return _Summary_of_Sales_by_Years;
|
|
512 }
|
|
513 }
|
|
514 private ObjectSet<Summary_of_Sales_by_Year> _Summary_of_Sales_by_Years;
|
|
515
|
|
516 #endregion
|
|
517
|
|
518 #region AddTo Methods
|
|
519
|
|
520 /// <summary>
|
|
521 /// Deprecated Method for adding a new object to the Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
522 /// </summary>
|
|
523 public void AddToCategories(Category category)
|
|
524 {
|
|
525 base.AddObject("Categories", category);
|
|
526 }
|
|
527
|
|
528 /// <summary>
|
|
529 /// Deprecated Method for adding a new object to the CustomerDemographics EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
530 /// </summary>
|
|
531 public void AddToCustomerDemographics(CustomerDemographic customerDemographic)
|
|
532 {
|
|
533 base.AddObject("CustomerDemographics", customerDemographic);
|
|
534 }
|
|
535
|
|
536 /// <summary>
|
|
537 /// Deprecated Method for adding a new object to the Customers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
538 /// </summary>
|
|
539 public void AddToCustomers(Customer customer)
|
|
540 {
|
|
541 base.AddObject("Customers", customer);
|
|
542 }
|
|
543
|
|
544 /// <summary>
|
|
545 /// Deprecated Method for adding a new object to the Employees EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
546 /// </summary>
|
|
547 public void AddToEmployees(Employee employee)
|
|
548 {
|
|
549 base.AddObject("Employees", employee);
|
|
550 }
|
|
551
|
|
552 /// <summary>
|
|
553 /// Deprecated Method for adding a new object to the Order_Details EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
554 /// </summary>
|
|
555 public void AddToOrder_Details(Order_Detail order_Detail)
|
|
556 {
|
|
557 base.AddObject("Order_Details", order_Detail);
|
|
558 }
|
|
559
|
|
560 /// <summary>
|
|
561 /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
562 /// </summary>
|
|
563 public void AddToOrders(Order order)
|
|
564 {
|
|
565 base.AddObject("Orders", order);
|
|
566 }
|
|
567
|
|
568 /// <summary>
|
|
569 /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
570 /// </summary>
|
|
571 public void AddToProducts(Product product)
|
|
572 {
|
|
573 base.AddObject("Products", product);
|
|
574 }
|
|
575
|
|
576 /// <summary>
|
|
577 /// Deprecated Method for adding a new object to the Regions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
578 /// </summary>
|
|
579 public void AddToRegions(Region region)
|
|
580 {
|
|
581 base.AddObject("Regions", region);
|
|
582 }
|
|
583
|
|
584 /// <summary>
|
|
585 /// Deprecated Method for adding a new object to the Shippers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
586 /// </summary>
|
|
587 public void AddToShippers(Shipper shipper)
|
|
588 {
|
|
589 base.AddObject("Shippers", shipper);
|
|
590 }
|
|
591
|
|
592 /// <summary>
|
|
593 /// Deprecated Method for adding a new object to the Suppliers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
594 /// </summary>
|
|
595 public void AddToSuppliers(Supplier supplier)
|
|
596 {
|
|
597 base.AddObject("Suppliers", supplier);
|
|
598 }
|
|
599
|
|
600 /// <summary>
|
|
601 /// Deprecated Method for adding a new object to the sysdiagrams EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
602 /// </summary>
|
|
603 public void AddTosysdiagrams(sysdiagram sysdiagram)
|
|
604 {
|
|
605 base.AddObject("sysdiagrams", sysdiagram);
|
|
606 }
|
|
607
|
|
608 /// <summary>
|
|
609 /// Deprecated Method for adding a new object to the Territories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
610 /// </summary>
|
|
611 public void AddToTerritories(Territory territory)
|
|
612 {
|
|
613 base.AddObject("Territories", territory);
|
|
614 }
|
|
615
|
|
616 /// <summary>
|
|
617 /// Deprecated Method for adding a new object to the Alphabetical_list_of_products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
618 /// </summary>
|
|
619 public void AddToAlphabetical_list_of_products(Alphabetical_list_of_product alphabetical_list_of_product)
|
|
620 {
|
|
621 base.AddObject("Alphabetical_list_of_products", alphabetical_list_of_product);
|
|
622 }
|
|
623
|
|
624 /// <summary>
|
|
625 /// Deprecated Method for adding a new object to the Category_Sales_for_1997 EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
626 /// </summary>
|
|
627 public void AddToCategory_Sales_for_1997(Category_Sales_for_1997 category_Sales_for_1997)
|
|
628 {
|
|
629 base.AddObject("Category_Sales_for_1997", category_Sales_for_1997);
|
|
630 }
|
|
631
|
|
632 /// <summary>
|
|
633 /// Deprecated Method for adding a new object to the Current_Product_Lists EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
634 /// </summary>
|
|
635 public void AddToCurrent_Product_Lists(Current_Product_List current_Product_List)
|
|
636 {
|
|
637 base.AddObject("Current_Product_Lists", current_Product_List);
|
|
638 }
|
|
639
|
|
640 /// <summary>
|
|
641 /// Deprecated Method for adding a new object to the Customer_and_Suppliers_by_Cities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
642 /// </summary>
|
|
643 public void AddToCustomer_and_Suppliers_by_Cities(Customer_and_Suppliers_by_City customer_and_Suppliers_by_City)
|
|
644 {
|
|
645 base.AddObject("Customer_and_Suppliers_by_Cities", customer_and_Suppliers_by_City);
|
|
646 }
|
|
647
|
|
648 /// <summary>
|
|
649 /// Deprecated Method for adding a new object to the Invoices EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
650 /// </summary>
|
|
651 public void AddToInvoices(Invoice invoice)
|
|
652 {
|
|
653 base.AddObject("Invoices", invoice);
|
|
654 }
|
|
655
|
|
656 /// <summary>
|
|
657 /// Deprecated Method for adding a new object to the Order_Details_Extendeds EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
658 /// </summary>
|
|
659 public void AddToOrder_Details_Extendeds(Order_Details_Extended order_Details_Extended)
|
|
660 {
|
|
661 base.AddObject("Order_Details_Extendeds", order_Details_Extended);
|
|
662 }
|
|
663
|
|
664 /// <summary>
|
|
665 /// Deprecated Method for adding a new object to the Order_Subtotals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
666 /// </summary>
|
|
667 public void AddToOrder_Subtotals(Order_Subtotal order_Subtotal)
|
|
668 {
|
|
669 base.AddObject("Order_Subtotals", order_Subtotal);
|
|
670 }
|
|
671
|
|
672 /// <summary>
|
|
673 /// Deprecated Method for adding a new object to the Orders_Qries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
674 /// </summary>
|
|
675 public void AddToOrders_Qries(Orders_Qry orders_Qry)
|
|
676 {
|
|
677 base.AddObject("Orders_Qries", orders_Qry);
|
|
678 }
|
|
679
|
|
680 /// <summary>
|
|
681 /// Deprecated Method for adding a new object to the Product_Sales_for_1997 EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
682 /// </summary>
|
|
683 public void AddToProduct_Sales_for_1997(Product_Sales_for_1997 product_Sales_for_1997)
|
|
684 {
|
|
685 base.AddObject("Product_Sales_for_1997", product_Sales_for_1997);
|
|
686 }
|
|
687
|
|
688 /// <summary>
|
|
689 /// Deprecated Method for adding a new object to the Products_Above_Average_Prices EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
690 /// </summary>
|
|
691 public void AddToProducts_Above_Average_Prices(Products_Above_Average_Price products_Above_Average_Price)
|
|
692 {
|
|
693 base.AddObject("Products_Above_Average_Prices", products_Above_Average_Price);
|
|
694 }
|
|
695
|
|
696 /// <summary>
|
|
697 /// Deprecated Method for adding a new object to the Products_by_Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
698 /// </summary>
|
|
699 public void AddToProducts_by_Categories(Products_by_Category products_by_Category)
|
|
700 {
|
|
701 base.AddObject("Products_by_Categories", products_by_Category);
|
|
702 }
|
|
703
|
|
704 /// <summary>
|
|
705 /// Deprecated Method for adding a new object to the Sales_by_Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
706 /// </summary>
|
|
707 public void AddToSales_by_Categories(Sales_by_Category sales_by_Category)
|
|
708 {
|
|
709 base.AddObject("Sales_by_Categories", sales_by_Category);
|
|
710 }
|
|
711
|
|
712 /// <summary>
|
|
713 /// Deprecated Method for adding a new object to the Sales_Totals_by_Amounts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
714 /// </summary>
|
|
715 public void AddToSales_Totals_by_Amounts(Sales_Totals_by_Amount sales_Totals_by_Amount)
|
|
716 {
|
|
717 base.AddObject("Sales_Totals_by_Amounts", sales_Totals_by_Amount);
|
|
718 }
|
|
719
|
|
720 /// <summary>
|
|
721 /// Deprecated Method for adding a new object to the Summary_of_Sales_by_Quarters EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
722 /// </summary>
|
|
723 public void AddToSummary_of_Sales_by_Quarters(Summary_of_Sales_by_Quarter summary_of_Sales_by_Quarter)
|
|
724 {
|
|
725 base.AddObject("Summary_of_Sales_by_Quarters", summary_of_Sales_by_Quarter);
|
|
726 }
|
|
727
|
|
728 /// <summary>
|
|
729 /// Deprecated Method for adding a new object to the Summary_of_Sales_by_Years EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
|
|
730 /// </summary>
|
|
731 public void AddToSummary_of_Sales_by_Years(Summary_of_Sales_by_Year summary_of_Sales_by_Year)
|
|
732 {
|
|
733 base.AddObject("Summary_of_Sales_by_Years", summary_of_Sales_by_Year);
|
|
734 }
|
|
735
|
|
736 #endregion
|
|
737
|
|
738 }
|
|
739
|
|
740 #endregion
|
|
741
|
|
742 #region Entities
|
|
743
|
|
744 /// <summary>
|
|
745 /// No Metadata Documentation available.
|
|
746 /// </summary>
|
|
747 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Alphabetical_list_of_product")]
|
|
748 [Serializable()]
|
|
749 [DataContractAttribute(IsReference=true)]
|
|
750 public partial class Alphabetical_list_of_product : EntityObject
|
|
751 {
|
|
752 #region Factory Method
|
|
753
|
|
754 /// <summary>
|
|
755 /// Create a new Alphabetical_list_of_product object.
|
|
756 /// </summary>
|
|
757 /// <param name="productID">Initial value of the ProductID property.</param>
|
|
758 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
759 /// <param name="discontinued">Initial value of the Discontinued property.</param>
|
|
760 /// <param name="categoryName">Initial value of the CategoryName property.</param>
|
|
761 public static Alphabetical_list_of_product CreateAlphabetical_list_of_product(global::System.Int32 productID, global::System.String productName, global::System.Boolean discontinued, global::System.String categoryName)
|
|
762 {
|
|
763 Alphabetical_list_of_product alphabetical_list_of_product = new Alphabetical_list_of_product();
|
|
764 alphabetical_list_of_product.ProductID = productID;
|
|
765 alphabetical_list_of_product.ProductName = productName;
|
|
766 alphabetical_list_of_product.Discontinued = discontinued;
|
|
767 alphabetical_list_of_product.CategoryName = categoryName;
|
|
768 return alphabetical_list_of_product;
|
|
769 }
|
|
770
|
|
771 #endregion
|
|
772
|
|
773 #region Primitive Properties
|
|
774
|
|
775 /// <summary>
|
|
776 /// No Metadata Documentation available.
|
|
777 /// </summary>
|
|
778 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
779 [DataMemberAttribute()]
|
|
780 public global::System.Int32 ProductID
|
|
781 {
|
|
782 get
|
|
783 {
|
|
784 return _ProductID;
|
|
785 }
|
|
786 set
|
|
787 {
|
|
788 if (_ProductID != value)
|
|
789 {
|
|
790 OnProductIDChanging(value);
|
|
791 ReportPropertyChanging("ProductID");
|
|
792 _ProductID = StructuralObject.SetValidValue(value);
|
|
793 ReportPropertyChanged("ProductID");
|
|
794 OnProductIDChanged();
|
|
795 }
|
|
796 }
|
|
797 }
|
|
798 private global::System.Int32 _ProductID;
|
|
799 partial void OnProductIDChanging(global::System.Int32 value);
|
|
800 partial void OnProductIDChanged();
|
|
801
|
|
802 /// <summary>
|
|
803 /// No Metadata Documentation available.
|
|
804 /// </summary>
|
|
805 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
806 [DataMemberAttribute()]
|
|
807 public global::System.String ProductName
|
|
808 {
|
|
809 get
|
|
810 {
|
|
811 return _ProductName;
|
|
812 }
|
|
813 set
|
|
814 {
|
|
815 if (_ProductName != value)
|
|
816 {
|
|
817 OnProductNameChanging(value);
|
|
818 ReportPropertyChanging("ProductName");
|
|
819 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
820 ReportPropertyChanged("ProductName");
|
|
821 OnProductNameChanged();
|
|
822 }
|
|
823 }
|
|
824 }
|
|
825 private global::System.String _ProductName;
|
|
826 partial void OnProductNameChanging(global::System.String value);
|
|
827 partial void OnProductNameChanged();
|
|
828
|
|
829 /// <summary>
|
|
830 /// No Metadata Documentation available.
|
|
831 /// </summary>
|
|
832 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
833 [DataMemberAttribute()]
|
|
834 public Nullable<global::System.Int32> SupplierID
|
|
835 {
|
|
836 get
|
|
837 {
|
|
838 return _SupplierID;
|
|
839 }
|
|
840 set
|
|
841 {
|
|
842 OnSupplierIDChanging(value);
|
|
843 ReportPropertyChanging("SupplierID");
|
|
844 _SupplierID = StructuralObject.SetValidValue(value);
|
|
845 ReportPropertyChanged("SupplierID");
|
|
846 OnSupplierIDChanged();
|
|
847 }
|
|
848 }
|
|
849 private Nullable<global::System.Int32> _SupplierID;
|
|
850 partial void OnSupplierIDChanging(Nullable<global::System.Int32> value);
|
|
851 partial void OnSupplierIDChanged();
|
|
852
|
|
853 /// <summary>
|
|
854 /// No Metadata Documentation available.
|
|
855 /// </summary>
|
|
856 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
857 [DataMemberAttribute()]
|
|
858 public Nullable<global::System.Int32> CategoryID
|
|
859 {
|
|
860 get
|
|
861 {
|
|
862 return _CategoryID;
|
|
863 }
|
|
864 set
|
|
865 {
|
|
866 OnCategoryIDChanging(value);
|
|
867 ReportPropertyChanging("CategoryID");
|
|
868 _CategoryID = StructuralObject.SetValidValue(value);
|
|
869 ReportPropertyChanged("CategoryID");
|
|
870 OnCategoryIDChanged();
|
|
871 }
|
|
872 }
|
|
873 private Nullable<global::System.Int32> _CategoryID;
|
|
874 partial void OnCategoryIDChanging(Nullable<global::System.Int32> value);
|
|
875 partial void OnCategoryIDChanged();
|
|
876
|
|
877 /// <summary>
|
|
878 /// No Metadata Documentation available.
|
|
879 /// </summary>
|
|
880 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
881 [DataMemberAttribute()]
|
|
882 public global::System.String QuantityPerUnit
|
|
883 {
|
|
884 get
|
|
885 {
|
|
886 return _QuantityPerUnit;
|
|
887 }
|
|
888 set
|
|
889 {
|
|
890 OnQuantityPerUnitChanging(value);
|
|
891 ReportPropertyChanging("QuantityPerUnit");
|
|
892 _QuantityPerUnit = StructuralObject.SetValidValue(value, true);
|
|
893 ReportPropertyChanged("QuantityPerUnit");
|
|
894 OnQuantityPerUnitChanged();
|
|
895 }
|
|
896 }
|
|
897 private global::System.String _QuantityPerUnit;
|
|
898 partial void OnQuantityPerUnitChanging(global::System.String value);
|
|
899 partial void OnQuantityPerUnitChanged();
|
|
900
|
|
901 /// <summary>
|
|
902 /// No Metadata Documentation available.
|
|
903 /// </summary>
|
|
904 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
905 [DataMemberAttribute()]
|
|
906 public Nullable<global::System.Decimal> UnitPrice
|
|
907 {
|
|
908 get
|
|
909 {
|
|
910 return _UnitPrice;
|
|
911 }
|
|
912 set
|
|
913 {
|
|
914 OnUnitPriceChanging(value);
|
|
915 ReportPropertyChanging("UnitPrice");
|
|
916 _UnitPrice = StructuralObject.SetValidValue(value);
|
|
917 ReportPropertyChanged("UnitPrice");
|
|
918 OnUnitPriceChanged();
|
|
919 }
|
|
920 }
|
|
921 private Nullable<global::System.Decimal> _UnitPrice;
|
|
922 partial void OnUnitPriceChanging(Nullable<global::System.Decimal> value);
|
|
923 partial void OnUnitPriceChanged();
|
|
924
|
|
925 /// <summary>
|
|
926 /// No Metadata Documentation available.
|
|
927 /// </summary>
|
|
928 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
929 [DataMemberAttribute()]
|
|
930 public Nullable<global::System.Int16> UnitsInStock
|
|
931 {
|
|
932 get
|
|
933 {
|
|
934 return _UnitsInStock;
|
|
935 }
|
|
936 set
|
|
937 {
|
|
938 OnUnitsInStockChanging(value);
|
|
939 ReportPropertyChanging("UnitsInStock");
|
|
940 _UnitsInStock = StructuralObject.SetValidValue(value);
|
|
941 ReportPropertyChanged("UnitsInStock");
|
|
942 OnUnitsInStockChanged();
|
|
943 }
|
|
944 }
|
|
945 private Nullable<global::System.Int16> _UnitsInStock;
|
|
946 partial void OnUnitsInStockChanging(Nullable<global::System.Int16> value);
|
|
947 partial void OnUnitsInStockChanged();
|
|
948
|
|
949 /// <summary>
|
|
950 /// No Metadata Documentation available.
|
|
951 /// </summary>
|
|
952 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
953 [DataMemberAttribute()]
|
|
954 public Nullable<global::System.Int16> UnitsOnOrder
|
|
955 {
|
|
956 get
|
|
957 {
|
|
958 return _UnitsOnOrder;
|
|
959 }
|
|
960 set
|
|
961 {
|
|
962 OnUnitsOnOrderChanging(value);
|
|
963 ReportPropertyChanging("UnitsOnOrder");
|
|
964 _UnitsOnOrder = StructuralObject.SetValidValue(value);
|
|
965 ReportPropertyChanged("UnitsOnOrder");
|
|
966 OnUnitsOnOrderChanged();
|
|
967 }
|
|
968 }
|
|
969 private Nullable<global::System.Int16> _UnitsOnOrder;
|
|
970 partial void OnUnitsOnOrderChanging(Nullable<global::System.Int16> value);
|
|
971 partial void OnUnitsOnOrderChanged();
|
|
972
|
|
973 /// <summary>
|
|
974 /// No Metadata Documentation available.
|
|
975 /// </summary>
|
|
976 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
977 [DataMemberAttribute()]
|
|
978 public Nullable<global::System.Int16> ReorderLevel
|
|
979 {
|
|
980 get
|
|
981 {
|
|
982 return _ReorderLevel;
|
|
983 }
|
|
984 set
|
|
985 {
|
|
986 OnReorderLevelChanging(value);
|
|
987 ReportPropertyChanging("ReorderLevel");
|
|
988 _ReorderLevel = StructuralObject.SetValidValue(value);
|
|
989 ReportPropertyChanged("ReorderLevel");
|
|
990 OnReorderLevelChanged();
|
|
991 }
|
|
992 }
|
|
993 private Nullable<global::System.Int16> _ReorderLevel;
|
|
994 partial void OnReorderLevelChanging(Nullable<global::System.Int16> value);
|
|
995 partial void OnReorderLevelChanged();
|
|
996
|
|
997 /// <summary>
|
|
998 /// No Metadata Documentation available.
|
|
999 /// </summary>
|
|
1000 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1001 [DataMemberAttribute()]
|
|
1002 public global::System.Boolean Discontinued
|
|
1003 {
|
|
1004 get
|
|
1005 {
|
|
1006 return _Discontinued;
|
|
1007 }
|
|
1008 set
|
|
1009 {
|
|
1010 if (_Discontinued != value)
|
|
1011 {
|
|
1012 OnDiscontinuedChanging(value);
|
|
1013 ReportPropertyChanging("Discontinued");
|
|
1014 _Discontinued = StructuralObject.SetValidValue(value);
|
|
1015 ReportPropertyChanged("Discontinued");
|
|
1016 OnDiscontinuedChanged();
|
|
1017 }
|
|
1018 }
|
|
1019 }
|
|
1020 private global::System.Boolean _Discontinued;
|
|
1021 partial void OnDiscontinuedChanging(global::System.Boolean value);
|
|
1022 partial void OnDiscontinuedChanged();
|
|
1023
|
|
1024 /// <summary>
|
|
1025 /// No Metadata Documentation available.
|
|
1026 /// </summary>
|
|
1027 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1028 [DataMemberAttribute()]
|
|
1029 public global::System.String CategoryName
|
|
1030 {
|
|
1031 get
|
|
1032 {
|
|
1033 return _CategoryName;
|
|
1034 }
|
|
1035 set
|
|
1036 {
|
|
1037 if (_CategoryName != value)
|
|
1038 {
|
|
1039 OnCategoryNameChanging(value);
|
|
1040 ReportPropertyChanging("CategoryName");
|
|
1041 _CategoryName = StructuralObject.SetValidValue(value, false);
|
|
1042 ReportPropertyChanged("CategoryName");
|
|
1043 OnCategoryNameChanged();
|
|
1044 }
|
|
1045 }
|
|
1046 }
|
|
1047 private global::System.String _CategoryName;
|
|
1048 partial void OnCategoryNameChanging(global::System.String value);
|
|
1049 partial void OnCategoryNameChanged();
|
|
1050
|
|
1051 #endregion
|
|
1052
|
|
1053
|
|
1054 }
|
|
1055
|
|
1056 /// <summary>
|
|
1057 /// No Metadata Documentation available.
|
|
1058 /// </summary>
|
|
1059 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Category")]
|
|
1060 [Serializable()]
|
|
1061 [DataContractAttribute(IsReference=true)]
|
|
1062 public partial class Category : EntityObject
|
|
1063 {
|
|
1064 #region Factory Method
|
|
1065
|
|
1066 /// <summary>
|
|
1067 /// Create a new Category object.
|
|
1068 /// </summary>
|
|
1069 /// <param name="categoryID">Initial value of the CategoryID property.</param>
|
|
1070 /// <param name="categoryName">Initial value of the CategoryName property.</param>
|
|
1071 public static Category CreateCategory(global::System.Int32 categoryID, global::System.String categoryName)
|
|
1072 {
|
|
1073 Category category = new Category();
|
|
1074 category.CategoryID = categoryID;
|
|
1075 category.CategoryName = categoryName;
|
|
1076 return category;
|
|
1077 }
|
|
1078
|
|
1079 #endregion
|
|
1080
|
|
1081 #region Primitive Properties
|
|
1082
|
|
1083 /// <summary>
|
|
1084 /// No Metadata Documentation available.
|
|
1085 /// </summary>
|
|
1086 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1087 [DataMemberAttribute()]
|
|
1088 public global::System.Int32 CategoryID
|
|
1089 {
|
|
1090 get
|
|
1091 {
|
|
1092 return _CategoryID;
|
|
1093 }
|
|
1094 set
|
|
1095 {
|
|
1096 if (_CategoryID != value)
|
|
1097 {
|
|
1098 OnCategoryIDChanging(value);
|
|
1099 ReportPropertyChanging("CategoryID");
|
|
1100 _CategoryID = StructuralObject.SetValidValue(value);
|
|
1101 ReportPropertyChanged("CategoryID");
|
|
1102 OnCategoryIDChanged();
|
|
1103 }
|
|
1104 }
|
|
1105 }
|
|
1106 private global::System.Int32 _CategoryID;
|
|
1107 partial void OnCategoryIDChanging(global::System.Int32 value);
|
|
1108 partial void OnCategoryIDChanged();
|
|
1109
|
|
1110 /// <summary>
|
|
1111 /// No Metadata Documentation available.
|
|
1112 /// </summary>
|
|
1113 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
1114 [DataMemberAttribute()]
|
|
1115 public global::System.String CategoryName
|
|
1116 {
|
|
1117 get
|
|
1118 {
|
|
1119 return _CategoryName;
|
|
1120 }
|
|
1121 set
|
|
1122 {
|
|
1123 OnCategoryNameChanging(value);
|
|
1124 ReportPropertyChanging("CategoryName");
|
|
1125 _CategoryName = StructuralObject.SetValidValue(value, false);
|
|
1126 ReportPropertyChanged("CategoryName");
|
|
1127 OnCategoryNameChanged();
|
|
1128 }
|
|
1129 }
|
|
1130 private global::System.String _CategoryName;
|
|
1131 partial void OnCategoryNameChanging(global::System.String value);
|
|
1132 partial void OnCategoryNameChanged();
|
|
1133
|
|
1134 /// <summary>
|
|
1135 /// No Metadata Documentation available.
|
|
1136 /// </summary>
|
|
1137 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1138 [DataMemberAttribute()]
|
|
1139 public global::System.String Description
|
|
1140 {
|
|
1141 get
|
|
1142 {
|
|
1143 return _Description;
|
|
1144 }
|
|
1145 set
|
|
1146 {
|
|
1147 OnDescriptionChanging(value);
|
|
1148 ReportPropertyChanging("Description");
|
|
1149 _Description = StructuralObject.SetValidValue(value, true);
|
|
1150 ReportPropertyChanged("Description");
|
|
1151 OnDescriptionChanged();
|
|
1152 }
|
|
1153 }
|
|
1154 private global::System.String _Description;
|
|
1155 partial void OnDescriptionChanging(global::System.String value);
|
|
1156 partial void OnDescriptionChanged();
|
|
1157
|
|
1158 /// <summary>
|
|
1159 /// No Metadata Documentation available.
|
|
1160 /// </summary>
|
|
1161 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1162 [DataMemberAttribute()]
|
|
1163 public global::System.Byte[] Picture
|
|
1164 {
|
|
1165 get
|
|
1166 {
|
|
1167 return StructuralObject.GetValidValue(_Picture);
|
|
1168 }
|
|
1169 set
|
|
1170 {
|
|
1171 OnPictureChanging(value);
|
|
1172 ReportPropertyChanging("Picture");
|
|
1173 _Picture = StructuralObject.SetValidValue(value, true);
|
|
1174 ReportPropertyChanged("Picture");
|
|
1175 OnPictureChanged();
|
|
1176 }
|
|
1177 }
|
|
1178 private global::System.Byte[] _Picture;
|
|
1179 partial void OnPictureChanging(global::System.Byte[] value);
|
|
1180 partial void OnPictureChanged();
|
|
1181
|
|
1182 #endregion
|
|
1183
|
|
1184
|
|
1185 #region Navigation Properties
|
|
1186
|
|
1187 /// <summary>
|
|
1188 /// No Metadata Documentation available.
|
|
1189 /// </summary>
|
|
1190 [XmlIgnoreAttribute()]
|
|
1191 [SoapIgnoreAttribute()]
|
|
1192 [DataMemberAttribute()]
|
|
1193 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Products_Categories", "Products")]
|
|
1194 public EntityCollection<Product> Products
|
|
1195 {
|
|
1196 get
|
|
1197 {
|
|
1198 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Product>("NorthwindModel.FK_Products_Categories", "Products");
|
|
1199 }
|
|
1200 set
|
|
1201 {
|
|
1202 if ((value != null))
|
|
1203 {
|
|
1204 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Product>("NorthwindModel.FK_Products_Categories", "Products", value);
|
|
1205 }
|
|
1206 }
|
|
1207 }
|
|
1208
|
|
1209 #endregion
|
|
1210
|
|
1211 }
|
|
1212
|
|
1213 /// <summary>
|
|
1214 /// No Metadata Documentation available.
|
|
1215 /// </summary>
|
|
1216 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Category_Sales_for_1997")]
|
|
1217 [Serializable()]
|
|
1218 [DataContractAttribute(IsReference=true)]
|
|
1219 public partial class Category_Sales_for_1997 : EntityObject
|
|
1220 {
|
|
1221 #region Factory Method
|
|
1222
|
|
1223 /// <summary>
|
|
1224 /// Create a new Category_Sales_for_1997 object.
|
|
1225 /// </summary>
|
|
1226 /// <param name="categoryName">Initial value of the CategoryName property.</param>
|
|
1227 public static Category_Sales_for_1997 CreateCategory_Sales_for_1997(global::System.String categoryName)
|
|
1228 {
|
|
1229 Category_Sales_for_1997 category_Sales_for_1997 = new Category_Sales_for_1997();
|
|
1230 category_Sales_for_1997.CategoryName = categoryName;
|
|
1231 return category_Sales_for_1997;
|
|
1232 }
|
|
1233
|
|
1234 #endregion
|
|
1235
|
|
1236 #region Primitive Properties
|
|
1237
|
|
1238 /// <summary>
|
|
1239 /// No Metadata Documentation available.
|
|
1240 /// </summary>
|
|
1241 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1242 [DataMemberAttribute()]
|
|
1243 public global::System.String CategoryName
|
|
1244 {
|
|
1245 get
|
|
1246 {
|
|
1247 return _CategoryName;
|
|
1248 }
|
|
1249 set
|
|
1250 {
|
|
1251 if (_CategoryName != value)
|
|
1252 {
|
|
1253 OnCategoryNameChanging(value);
|
|
1254 ReportPropertyChanging("CategoryName");
|
|
1255 _CategoryName = StructuralObject.SetValidValue(value, false);
|
|
1256 ReportPropertyChanged("CategoryName");
|
|
1257 OnCategoryNameChanged();
|
|
1258 }
|
|
1259 }
|
|
1260 }
|
|
1261 private global::System.String _CategoryName;
|
|
1262 partial void OnCategoryNameChanging(global::System.String value);
|
|
1263 partial void OnCategoryNameChanged();
|
|
1264
|
|
1265 /// <summary>
|
|
1266 /// No Metadata Documentation available.
|
|
1267 /// </summary>
|
|
1268 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1269 [DataMemberAttribute()]
|
|
1270 public Nullable<global::System.Decimal> CategorySales
|
|
1271 {
|
|
1272 get
|
|
1273 {
|
|
1274 return _CategorySales;
|
|
1275 }
|
|
1276 set
|
|
1277 {
|
|
1278 OnCategorySalesChanging(value);
|
|
1279 ReportPropertyChanging("CategorySales");
|
|
1280 _CategorySales = StructuralObject.SetValidValue(value);
|
|
1281 ReportPropertyChanged("CategorySales");
|
|
1282 OnCategorySalesChanged();
|
|
1283 }
|
|
1284 }
|
|
1285 private Nullable<global::System.Decimal> _CategorySales;
|
|
1286 partial void OnCategorySalesChanging(Nullable<global::System.Decimal> value);
|
|
1287 partial void OnCategorySalesChanged();
|
|
1288
|
|
1289 #endregion
|
|
1290
|
|
1291
|
|
1292 }
|
|
1293
|
|
1294 /// <summary>
|
|
1295 /// No Metadata Documentation available.
|
|
1296 /// </summary>
|
|
1297 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Current_Product_List")]
|
|
1298 [Serializable()]
|
|
1299 [DataContractAttribute(IsReference=true)]
|
|
1300 public partial class Current_Product_List : EntityObject
|
|
1301 {
|
|
1302 #region Factory Method
|
|
1303
|
|
1304 /// <summary>
|
|
1305 /// Create a new Current_Product_List object.
|
|
1306 /// </summary>
|
|
1307 /// <param name="productID">Initial value of the ProductID property.</param>
|
|
1308 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
1309 public static Current_Product_List CreateCurrent_Product_List(global::System.Int32 productID, global::System.String productName)
|
|
1310 {
|
|
1311 Current_Product_List current_Product_List = new Current_Product_List();
|
|
1312 current_Product_List.ProductID = productID;
|
|
1313 current_Product_List.ProductName = productName;
|
|
1314 return current_Product_List;
|
|
1315 }
|
|
1316
|
|
1317 #endregion
|
|
1318
|
|
1319 #region Primitive Properties
|
|
1320
|
|
1321 /// <summary>
|
|
1322 /// No Metadata Documentation available.
|
|
1323 /// </summary>
|
|
1324 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1325 [DataMemberAttribute()]
|
|
1326 public global::System.Int32 ProductID
|
|
1327 {
|
|
1328 get
|
|
1329 {
|
|
1330 return _ProductID;
|
|
1331 }
|
|
1332 set
|
|
1333 {
|
|
1334 if (_ProductID != value)
|
|
1335 {
|
|
1336 OnProductIDChanging(value);
|
|
1337 ReportPropertyChanging("ProductID");
|
|
1338 _ProductID = StructuralObject.SetValidValue(value);
|
|
1339 ReportPropertyChanged("ProductID");
|
|
1340 OnProductIDChanged();
|
|
1341 }
|
|
1342 }
|
|
1343 }
|
|
1344 private global::System.Int32 _ProductID;
|
|
1345 partial void OnProductIDChanging(global::System.Int32 value);
|
|
1346 partial void OnProductIDChanged();
|
|
1347
|
|
1348 /// <summary>
|
|
1349 /// No Metadata Documentation available.
|
|
1350 /// </summary>
|
|
1351 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1352 [DataMemberAttribute()]
|
|
1353 public global::System.String ProductName
|
|
1354 {
|
|
1355 get
|
|
1356 {
|
|
1357 return _ProductName;
|
|
1358 }
|
|
1359 set
|
|
1360 {
|
|
1361 if (_ProductName != value)
|
|
1362 {
|
|
1363 OnProductNameChanging(value);
|
|
1364 ReportPropertyChanging("ProductName");
|
|
1365 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
1366 ReportPropertyChanged("ProductName");
|
|
1367 OnProductNameChanged();
|
|
1368 }
|
|
1369 }
|
|
1370 }
|
|
1371 private global::System.String _ProductName;
|
|
1372 partial void OnProductNameChanging(global::System.String value);
|
|
1373 partial void OnProductNameChanged();
|
|
1374
|
|
1375 #endregion
|
|
1376
|
|
1377
|
|
1378 }
|
|
1379
|
|
1380 /// <summary>
|
|
1381 /// No Metadata Documentation available.
|
|
1382 /// </summary>
|
|
1383 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Customer")]
|
|
1384 [Serializable()]
|
|
1385 [DataContractAttribute(IsReference=true)]
|
|
1386 public partial class Customer : EntityObject
|
|
1387 {
|
|
1388 #region Factory Method
|
|
1389
|
|
1390 /// <summary>
|
|
1391 /// Create a new Customer object.
|
|
1392 /// </summary>
|
|
1393 /// <param name="customerID">Initial value of the CustomerID property.</param>
|
|
1394 /// <param name="companyName">Initial value of the CompanyName property.</param>
|
|
1395 public static Customer CreateCustomer(global::System.String customerID, global::System.String companyName)
|
|
1396 {
|
|
1397 Customer customer = new Customer();
|
|
1398 customer.CustomerID = customerID;
|
|
1399 customer.CompanyName = companyName;
|
|
1400 return customer;
|
|
1401 }
|
|
1402
|
|
1403 #endregion
|
|
1404
|
|
1405 #region Primitive Properties
|
|
1406
|
|
1407 /// <summary>
|
|
1408 /// No Metadata Documentation available.
|
|
1409 /// </summary>
|
|
1410 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1411 [DataMemberAttribute()]
|
|
1412 public global::System.String CustomerID
|
|
1413 {
|
|
1414 get
|
|
1415 {
|
|
1416 return _CustomerID;
|
|
1417 }
|
|
1418 set
|
|
1419 {
|
|
1420 if (_CustomerID != value)
|
|
1421 {
|
|
1422 OnCustomerIDChanging(value);
|
|
1423 ReportPropertyChanging("CustomerID");
|
|
1424 _CustomerID = StructuralObject.SetValidValue(value, false);
|
|
1425 ReportPropertyChanged("CustomerID");
|
|
1426 OnCustomerIDChanged();
|
|
1427 }
|
|
1428 }
|
|
1429 }
|
|
1430 private global::System.String _CustomerID;
|
|
1431 partial void OnCustomerIDChanging(global::System.String value);
|
|
1432 partial void OnCustomerIDChanged();
|
|
1433
|
|
1434 /// <summary>
|
|
1435 /// No Metadata Documentation available.
|
|
1436 /// </summary>
|
|
1437 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
1438 [DataMemberAttribute()]
|
|
1439 public global::System.String CompanyName
|
|
1440 {
|
|
1441 get
|
|
1442 {
|
|
1443 return _CompanyName;
|
|
1444 }
|
|
1445 set
|
|
1446 {
|
|
1447 OnCompanyNameChanging(value);
|
|
1448 ReportPropertyChanging("CompanyName");
|
|
1449 _CompanyName = StructuralObject.SetValidValue(value, false);
|
|
1450 ReportPropertyChanged("CompanyName");
|
|
1451 OnCompanyNameChanged();
|
|
1452 }
|
|
1453 }
|
|
1454 private global::System.String _CompanyName;
|
|
1455 partial void OnCompanyNameChanging(global::System.String value);
|
|
1456 partial void OnCompanyNameChanged();
|
|
1457
|
|
1458 /// <summary>
|
|
1459 /// No Metadata Documentation available.
|
|
1460 /// </summary>
|
|
1461 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1462 [DataMemberAttribute()]
|
|
1463 public global::System.String ContactName
|
|
1464 {
|
|
1465 get
|
|
1466 {
|
|
1467 return _ContactName;
|
|
1468 }
|
|
1469 set
|
|
1470 {
|
|
1471 OnContactNameChanging(value);
|
|
1472 ReportPropertyChanging("ContactName");
|
|
1473 _ContactName = StructuralObject.SetValidValue(value, true);
|
|
1474 ReportPropertyChanged("ContactName");
|
|
1475 OnContactNameChanged();
|
|
1476 }
|
|
1477 }
|
|
1478 private global::System.String _ContactName;
|
|
1479 partial void OnContactNameChanging(global::System.String value);
|
|
1480 partial void OnContactNameChanged();
|
|
1481
|
|
1482 /// <summary>
|
|
1483 /// No Metadata Documentation available.
|
|
1484 /// </summary>
|
|
1485 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1486 [DataMemberAttribute()]
|
|
1487 public global::System.String ContactTitle
|
|
1488 {
|
|
1489 get
|
|
1490 {
|
|
1491 return _ContactTitle;
|
|
1492 }
|
|
1493 set
|
|
1494 {
|
|
1495 OnContactTitleChanging(value);
|
|
1496 ReportPropertyChanging("ContactTitle");
|
|
1497 _ContactTitle = StructuralObject.SetValidValue(value, true);
|
|
1498 ReportPropertyChanged("ContactTitle");
|
|
1499 OnContactTitleChanged();
|
|
1500 }
|
|
1501 }
|
|
1502 private global::System.String _ContactTitle;
|
|
1503 partial void OnContactTitleChanging(global::System.String value);
|
|
1504 partial void OnContactTitleChanged();
|
|
1505
|
|
1506 /// <summary>
|
|
1507 /// No Metadata Documentation available.
|
|
1508 /// </summary>
|
|
1509 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1510 [DataMemberAttribute()]
|
|
1511 public global::System.String Address
|
|
1512 {
|
|
1513 get
|
|
1514 {
|
|
1515 return _Address;
|
|
1516 }
|
|
1517 set
|
|
1518 {
|
|
1519 OnAddressChanging(value);
|
|
1520 ReportPropertyChanging("Address");
|
|
1521 _Address = StructuralObject.SetValidValue(value, true);
|
|
1522 ReportPropertyChanged("Address");
|
|
1523 OnAddressChanged();
|
|
1524 }
|
|
1525 }
|
|
1526 private global::System.String _Address;
|
|
1527 partial void OnAddressChanging(global::System.String value);
|
|
1528 partial void OnAddressChanged();
|
|
1529
|
|
1530 /// <summary>
|
|
1531 /// No Metadata Documentation available.
|
|
1532 /// </summary>
|
|
1533 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1534 [DataMemberAttribute()]
|
|
1535 public global::System.String City
|
|
1536 {
|
|
1537 get
|
|
1538 {
|
|
1539 return _City;
|
|
1540 }
|
|
1541 set
|
|
1542 {
|
|
1543 OnCityChanging(value);
|
|
1544 ReportPropertyChanging("City");
|
|
1545 _City = StructuralObject.SetValidValue(value, true);
|
|
1546 ReportPropertyChanged("City");
|
|
1547 OnCityChanged();
|
|
1548 }
|
|
1549 }
|
|
1550 private global::System.String _City;
|
|
1551 partial void OnCityChanging(global::System.String value);
|
|
1552 partial void OnCityChanged();
|
|
1553
|
|
1554 /// <summary>
|
|
1555 /// No Metadata Documentation available.
|
|
1556 /// </summary>
|
|
1557 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1558 [DataMemberAttribute()]
|
|
1559 public global::System.String Region
|
|
1560 {
|
|
1561 get
|
|
1562 {
|
|
1563 return _Region;
|
|
1564 }
|
|
1565 set
|
|
1566 {
|
|
1567 OnRegionChanging(value);
|
|
1568 ReportPropertyChanging("Region");
|
|
1569 _Region = StructuralObject.SetValidValue(value, true);
|
|
1570 ReportPropertyChanged("Region");
|
|
1571 OnRegionChanged();
|
|
1572 }
|
|
1573 }
|
|
1574 private global::System.String _Region;
|
|
1575 partial void OnRegionChanging(global::System.String value);
|
|
1576 partial void OnRegionChanged();
|
|
1577
|
|
1578 /// <summary>
|
|
1579 /// No Metadata Documentation available.
|
|
1580 /// </summary>
|
|
1581 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1582 [DataMemberAttribute()]
|
|
1583 public global::System.String PostalCode
|
|
1584 {
|
|
1585 get
|
|
1586 {
|
|
1587 return _PostalCode;
|
|
1588 }
|
|
1589 set
|
|
1590 {
|
|
1591 OnPostalCodeChanging(value);
|
|
1592 ReportPropertyChanging("PostalCode");
|
|
1593 _PostalCode = StructuralObject.SetValidValue(value, true);
|
|
1594 ReportPropertyChanged("PostalCode");
|
|
1595 OnPostalCodeChanged();
|
|
1596 }
|
|
1597 }
|
|
1598 private global::System.String _PostalCode;
|
|
1599 partial void OnPostalCodeChanging(global::System.String value);
|
|
1600 partial void OnPostalCodeChanged();
|
|
1601
|
|
1602 /// <summary>
|
|
1603 /// No Metadata Documentation available.
|
|
1604 /// </summary>
|
|
1605 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1606 [DataMemberAttribute()]
|
|
1607 public global::System.String Country
|
|
1608 {
|
|
1609 get
|
|
1610 {
|
|
1611 return _Country;
|
|
1612 }
|
|
1613 set
|
|
1614 {
|
|
1615 OnCountryChanging(value);
|
|
1616 ReportPropertyChanging("Country");
|
|
1617 _Country = StructuralObject.SetValidValue(value, true);
|
|
1618 ReportPropertyChanged("Country");
|
|
1619 OnCountryChanged();
|
|
1620 }
|
|
1621 }
|
|
1622 private global::System.String _Country;
|
|
1623 partial void OnCountryChanging(global::System.String value);
|
|
1624 partial void OnCountryChanged();
|
|
1625
|
|
1626 /// <summary>
|
|
1627 /// No Metadata Documentation available.
|
|
1628 /// </summary>
|
|
1629 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1630 [DataMemberAttribute()]
|
|
1631 public global::System.String Phone
|
|
1632 {
|
|
1633 get
|
|
1634 {
|
|
1635 return _Phone;
|
|
1636 }
|
|
1637 set
|
|
1638 {
|
|
1639 OnPhoneChanging(value);
|
|
1640 ReportPropertyChanging("Phone");
|
|
1641 _Phone = StructuralObject.SetValidValue(value, true);
|
|
1642 ReportPropertyChanged("Phone");
|
|
1643 OnPhoneChanged();
|
|
1644 }
|
|
1645 }
|
|
1646 private global::System.String _Phone;
|
|
1647 partial void OnPhoneChanging(global::System.String value);
|
|
1648 partial void OnPhoneChanged();
|
|
1649
|
|
1650 /// <summary>
|
|
1651 /// No Metadata Documentation available.
|
|
1652 /// </summary>
|
|
1653 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1654 [DataMemberAttribute()]
|
|
1655 public global::System.String Fax
|
|
1656 {
|
|
1657 get
|
|
1658 {
|
|
1659 return _Fax;
|
|
1660 }
|
|
1661 set
|
|
1662 {
|
|
1663 OnFaxChanging(value);
|
|
1664 ReportPropertyChanging("Fax");
|
|
1665 _Fax = StructuralObject.SetValidValue(value, true);
|
|
1666 ReportPropertyChanged("Fax");
|
|
1667 OnFaxChanged();
|
|
1668 }
|
|
1669 }
|
|
1670 private global::System.String _Fax;
|
|
1671 partial void OnFaxChanging(global::System.String value);
|
|
1672 partial void OnFaxChanged();
|
|
1673
|
|
1674 #endregion
|
|
1675
|
|
1676
|
|
1677 #region Navigation Properties
|
|
1678
|
|
1679 /// <summary>
|
|
1680 /// No Metadata Documentation available.
|
|
1681 /// </summary>
|
|
1682 [XmlIgnoreAttribute()]
|
|
1683 [SoapIgnoreAttribute()]
|
|
1684 [DataMemberAttribute()]
|
|
1685 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Customers", "Orders")]
|
|
1686 public EntityCollection<Order> Orders
|
|
1687 {
|
|
1688 get
|
|
1689 {
|
|
1690 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order>("NorthwindModel.FK_Orders_Customers", "Orders");
|
|
1691 }
|
|
1692 set
|
|
1693 {
|
|
1694 if ((value != null))
|
|
1695 {
|
|
1696 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order>("NorthwindModel.FK_Orders_Customers", "Orders", value);
|
|
1697 }
|
|
1698 }
|
|
1699 }
|
|
1700
|
|
1701 /// <summary>
|
|
1702 /// No Metadata Documentation available.
|
|
1703 /// </summary>
|
|
1704 [XmlIgnoreAttribute()]
|
|
1705 [SoapIgnoreAttribute()]
|
|
1706 [DataMemberAttribute()]
|
|
1707 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "CustomerCustomerDemo", "CustomerDemographics")]
|
|
1708 public EntityCollection<CustomerDemographic> CustomerDemographics
|
|
1709 {
|
|
1710 get
|
|
1711 {
|
|
1712 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CustomerDemographic>("NorthwindModel.CustomerCustomerDemo", "CustomerDemographics");
|
|
1713 }
|
|
1714 set
|
|
1715 {
|
|
1716 if ((value != null))
|
|
1717 {
|
|
1718 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CustomerDemographic>("NorthwindModel.CustomerCustomerDemo", "CustomerDemographics", value);
|
|
1719 }
|
|
1720 }
|
|
1721 }
|
|
1722
|
|
1723 #endregion
|
|
1724
|
|
1725 }
|
|
1726
|
|
1727 /// <summary>
|
|
1728 /// No Metadata Documentation available.
|
|
1729 /// </summary>
|
|
1730 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Customer_and_Suppliers_by_City")]
|
|
1731 [Serializable()]
|
|
1732 [DataContractAttribute(IsReference=true)]
|
|
1733 public partial class Customer_and_Suppliers_by_City : EntityObject
|
|
1734 {
|
|
1735 #region Factory Method
|
|
1736
|
|
1737 /// <summary>
|
|
1738 /// Create a new Customer_and_Suppliers_by_City object.
|
|
1739 /// </summary>
|
|
1740 /// <param name="companyName">Initial value of the CompanyName property.</param>
|
|
1741 /// <param name="relationship">Initial value of the Relationship property.</param>
|
|
1742 public static Customer_and_Suppliers_by_City CreateCustomer_and_Suppliers_by_City(global::System.String companyName, global::System.String relationship)
|
|
1743 {
|
|
1744 Customer_and_Suppliers_by_City customer_and_Suppliers_by_City = new Customer_and_Suppliers_by_City();
|
|
1745 customer_and_Suppliers_by_City.CompanyName = companyName;
|
|
1746 customer_and_Suppliers_by_City.Relationship = relationship;
|
|
1747 return customer_and_Suppliers_by_City;
|
|
1748 }
|
|
1749
|
|
1750 #endregion
|
|
1751
|
|
1752 #region Primitive Properties
|
|
1753
|
|
1754 /// <summary>
|
|
1755 /// No Metadata Documentation available.
|
|
1756 /// </summary>
|
|
1757 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1758 [DataMemberAttribute()]
|
|
1759 public global::System.String City
|
|
1760 {
|
|
1761 get
|
|
1762 {
|
|
1763 return _City;
|
|
1764 }
|
|
1765 set
|
|
1766 {
|
|
1767 OnCityChanging(value);
|
|
1768 ReportPropertyChanging("City");
|
|
1769 _City = StructuralObject.SetValidValue(value, true);
|
|
1770 ReportPropertyChanged("City");
|
|
1771 OnCityChanged();
|
|
1772 }
|
|
1773 }
|
|
1774 private global::System.String _City;
|
|
1775 partial void OnCityChanging(global::System.String value);
|
|
1776 partial void OnCityChanged();
|
|
1777
|
|
1778 /// <summary>
|
|
1779 /// No Metadata Documentation available.
|
|
1780 /// </summary>
|
|
1781 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1782 [DataMemberAttribute()]
|
|
1783 public global::System.String CompanyName
|
|
1784 {
|
|
1785 get
|
|
1786 {
|
|
1787 return _CompanyName;
|
|
1788 }
|
|
1789 set
|
|
1790 {
|
|
1791 if (_CompanyName != value)
|
|
1792 {
|
|
1793 OnCompanyNameChanging(value);
|
|
1794 ReportPropertyChanging("CompanyName");
|
|
1795 _CompanyName = StructuralObject.SetValidValue(value, false);
|
|
1796 ReportPropertyChanged("CompanyName");
|
|
1797 OnCompanyNameChanged();
|
|
1798 }
|
|
1799 }
|
|
1800 }
|
|
1801 private global::System.String _CompanyName;
|
|
1802 partial void OnCompanyNameChanging(global::System.String value);
|
|
1803 partial void OnCompanyNameChanged();
|
|
1804
|
|
1805 /// <summary>
|
|
1806 /// No Metadata Documentation available.
|
|
1807 /// </summary>
|
|
1808 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1809 [DataMemberAttribute()]
|
|
1810 public global::System.String ContactName
|
|
1811 {
|
|
1812 get
|
|
1813 {
|
|
1814 return _ContactName;
|
|
1815 }
|
|
1816 set
|
|
1817 {
|
|
1818 OnContactNameChanging(value);
|
|
1819 ReportPropertyChanging("ContactName");
|
|
1820 _ContactName = StructuralObject.SetValidValue(value, true);
|
|
1821 ReportPropertyChanged("ContactName");
|
|
1822 OnContactNameChanged();
|
|
1823 }
|
|
1824 }
|
|
1825 private global::System.String _ContactName;
|
|
1826 partial void OnContactNameChanging(global::System.String value);
|
|
1827 partial void OnContactNameChanged();
|
|
1828
|
|
1829 /// <summary>
|
|
1830 /// No Metadata Documentation available.
|
|
1831 /// </summary>
|
|
1832 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1833 [DataMemberAttribute()]
|
|
1834 public global::System.String Relationship
|
|
1835 {
|
|
1836 get
|
|
1837 {
|
|
1838 return _Relationship;
|
|
1839 }
|
|
1840 set
|
|
1841 {
|
|
1842 if (_Relationship != value)
|
|
1843 {
|
|
1844 OnRelationshipChanging(value);
|
|
1845 ReportPropertyChanging("Relationship");
|
|
1846 _Relationship = StructuralObject.SetValidValue(value, false);
|
|
1847 ReportPropertyChanged("Relationship");
|
|
1848 OnRelationshipChanged();
|
|
1849 }
|
|
1850 }
|
|
1851 }
|
|
1852 private global::System.String _Relationship;
|
|
1853 partial void OnRelationshipChanging(global::System.String value);
|
|
1854 partial void OnRelationshipChanged();
|
|
1855
|
|
1856 #endregion
|
|
1857
|
|
1858
|
|
1859 }
|
|
1860
|
|
1861 /// <summary>
|
|
1862 /// No Metadata Documentation available.
|
|
1863 /// </summary>
|
|
1864 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="CustomerDemographic")]
|
|
1865 [Serializable()]
|
|
1866 [DataContractAttribute(IsReference=true)]
|
|
1867 public partial class CustomerDemographic : EntityObject
|
|
1868 {
|
|
1869 #region Factory Method
|
|
1870
|
|
1871 /// <summary>
|
|
1872 /// Create a new CustomerDemographic object.
|
|
1873 /// </summary>
|
|
1874 /// <param name="customerTypeID">Initial value of the CustomerTypeID property.</param>
|
|
1875 public static CustomerDemographic CreateCustomerDemographic(global::System.String customerTypeID)
|
|
1876 {
|
|
1877 CustomerDemographic customerDemographic = new CustomerDemographic();
|
|
1878 customerDemographic.CustomerTypeID = customerTypeID;
|
|
1879 return customerDemographic;
|
|
1880 }
|
|
1881
|
|
1882 #endregion
|
|
1883
|
|
1884 #region Primitive Properties
|
|
1885
|
|
1886 /// <summary>
|
|
1887 /// No Metadata Documentation available.
|
|
1888 /// </summary>
|
|
1889 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
1890 [DataMemberAttribute()]
|
|
1891 public global::System.String CustomerTypeID
|
|
1892 {
|
|
1893 get
|
|
1894 {
|
|
1895 return _CustomerTypeID;
|
|
1896 }
|
|
1897 set
|
|
1898 {
|
|
1899 if (_CustomerTypeID != value)
|
|
1900 {
|
|
1901 OnCustomerTypeIDChanging(value);
|
|
1902 ReportPropertyChanging("CustomerTypeID");
|
|
1903 _CustomerTypeID = StructuralObject.SetValidValue(value, false);
|
|
1904 ReportPropertyChanged("CustomerTypeID");
|
|
1905 OnCustomerTypeIDChanged();
|
|
1906 }
|
|
1907 }
|
|
1908 }
|
|
1909 private global::System.String _CustomerTypeID;
|
|
1910 partial void OnCustomerTypeIDChanging(global::System.String value);
|
|
1911 partial void OnCustomerTypeIDChanged();
|
|
1912
|
|
1913 /// <summary>
|
|
1914 /// No Metadata Documentation available.
|
|
1915 /// </summary>
|
|
1916 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
1917 [DataMemberAttribute()]
|
|
1918 public global::System.String CustomerDesc
|
|
1919 {
|
|
1920 get
|
|
1921 {
|
|
1922 return _CustomerDesc;
|
|
1923 }
|
|
1924 set
|
|
1925 {
|
|
1926 OnCustomerDescChanging(value);
|
|
1927 ReportPropertyChanging("CustomerDesc");
|
|
1928 _CustomerDesc = StructuralObject.SetValidValue(value, true);
|
|
1929 ReportPropertyChanged("CustomerDesc");
|
|
1930 OnCustomerDescChanged();
|
|
1931 }
|
|
1932 }
|
|
1933 private global::System.String _CustomerDesc;
|
|
1934 partial void OnCustomerDescChanging(global::System.String value);
|
|
1935 partial void OnCustomerDescChanged();
|
|
1936
|
|
1937 #endregion
|
|
1938
|
|
1939
|
|
1940 #region Navigation Properties
|
|
1941
|
|
1942 /// <summary>
|
|
1943 /// No Metadata Documentation available.
|
|
1944 /// </summary>
|
|
1945 [XmlIgnoreAttribute()]
|
|
1946 [SoapIgnoreAttribute()]
|
|
1947 [DataMemberAttribute()]
|
|
1948 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "CustomerCustomerDemo", "Customers")]
|
|
1949 public EntityCollection<Customer> Customers
|
|
1950 {
|
|
1951 get
|
|
1952 {
|
|
1953 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Customer>("NorthwindModel.CustomerCustomerDemo", "Customers");
|
|
1954 }
|
|
1955 set
|
|
1956 {
|
|
1957 if ((value != null))
|
|
1958 {
|
|
1959 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Customer>("NorthwindModel.CustomerCustomerDemo", "Customers", value);
|
|
1960 }
|
|
1961 }
|
|
1962 }
|
|
1963
|
|
1964 #endregion
|
|
1965
|
|
1966 }
|
|
1967
|
|
1968 /// <summary>
|
|
1969 /// No Metadata Documentation available.
|
|
1970 /// </summary>
|
|
1971 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Employee")]
|
|
1972 [Serializable()]
|
|
1973 [DataContractAttribute(IsReference=true)]
|
|
1974 public partial class Employee : EntityObject
|
|
1975 {
|
|
1976 #region Factory Method
|
|
1977
|
|
1978 /// <summary>
|
|
1979 /// Create a new Employee object.
|
|
1980 /// </summary>
|
|
1981 /// <param name="employeeID">Initial value of the EmployeeID property.</param>
|
|
1982 /// <param name="lastName">Initial value of the LastName property.</param>
|
|
1983 /// <param name="firstName">Initial value of the FirstName property.</param>
|
|
1984 public static Employee CreateEmployee(global::System.Int32 employeeID, global::System.String lastName, global::System.String firstName)
|
|
1985 {
|
|
1986 Employee employee = new Employee();
|
|
1987 employee.EmployeeID = employeeID;
|
|
1988 employee.LastName = lastName;
|
|
1989 employee.FirstName = firstName;
|
|
1990 return employee;
|
|
1991 }
|
|
1992
|
|
1993 #endregion
|
|
1994
|
|
1995 #region Primitive Properties
|
|
1996
|
|
1997 /// <summary>
|
|
1998 /// No Metadata Documentation available.
|
|
1999 /// </summary>
|
|
2000 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
2001 [DataMemberAttribute()]
|
|
2002 public global::System.Int32 EmployeeID
|
|
2003 {
|
|
2004 get
|
|
2005 {
|
|
2006 return _EmployeeID;
|
|
2007 }
|
|
2008 set
|
|
2009 {
|
|
2010 if (_EmployeeID != value)
|
|
2011 {
|
|
2012 OnEmployeeIDChanging(value);
|
|
2013 ReportPropertyChanging("EmployeeID");
|
|
2014 _EmployeeID = StructuralObject.SetValidValue(value);
|
|
2015 ReportPropertyChanged("EmployeeID");
|
|
2016 OnEmployeeIDChanged();
|
|
2017 }
|
|
2018 }
|
|
2019 }
|
|
2020 private global::System.Int32 _EmployeeID;
|
|
2021 partial void OnEmployeeIDChanging(global::System.Int32 value);
|
|
2022 partial void OnEmployeeIDChanged();
|
|
2023
|
|
2024 /// <summary>
|
|
2025 /// No Metadata Documentation available.
|
|
2026 /// </summary>
|
|
2027 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
2028 [DataMemberAttribute()]
|
|
2029 public global::System.String LastName
|
|
2030 {
|
|
2031 get
|
|
2032 {
|
|
2033 return _LastName;
|
|
2034 }
|
|
2035 set
|
|
2036 {
|
|
2037 OnLastNameChanging(value);
|
|
2038 ReportPropertyChanging("LastName");
|
|
2039 _LastName = StructuralObject.SetValidValue(value, false);
|
|
2040 ReportPropertyChanged("LastName");
|
|
2041 OnLastNameChanged();
|
|
2042 }
|
|
2043 }
|
|
2044 private global::System.String _LastName;
|
|
2045 partial void OnLastNameChanging(global::System.String value);
|
|
2046 partial void OnLastNameChanged();
|
|
2047
|
|
2048 /// <summary>
|
|
2049 /// No Metadata Documentation available.
|
|
2050 /// </summary>
|
|
2051 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
2052 [DataMemberAttribute()]
|
|
2053 public global::System.String FirstName
|
|
2054 {
|
|
2055 get
|
|
2056 {
|
|
2057 return _FirstName;
|
|
2058 }
|
|
2059 set
|
|
2060 {
|
|
2061 OnFirstNameChanging(value);
|
|
2062 ReportPropertyChanging("FirstName");
|
|
2063 _FirstName = StructuralObject.SetValidValue(value, false);
|
|
2064 ReportPropertyChanged("FirstName");
|
|
2065 OnFirstNameChanged();
|
|
2066 }
|
|
2067 }
|
|
2068 private global::System.String _FirstName;
|
|
2069 partial void OnFirstNameChanging(global::System.String value);
|
|
2070 partial void OnFirstNameChanged();
|
|
2071
|
|
2072 /// <summary>
|
|
2073 /// No Metadata Documentation available.
|
|
2074 /// </summary>
|
|
2075 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2076 [DataMemberAttribute()]
|
|
2077 public global::System.String Title
|
|
2078 {
|
|
2079 get
|
|
2080 {
|
|
2081 return _Title;
|
|
2082 }
|
|
2083 set
|
|
2084 {
|
|
2085 OnTitleChanging(value);
|
|
2086 ReportPropertyChanging("Title");
|
|
2087 _Title = StructuralObject.SetValidValue(value, true);
|
|
2088 ReportPropertyChanged("Title");
|
|
2089 OnTitleChanged();
|
|
2090 }
|
|
2091 }
|
|
2092 private global::System.String _Title;
|
|
2093 partial void OnTitleChanging(global::System.String value);
|
|
2094 partial void OnTitleChanged();
|
|
2095
|
|
2096 /// <summary>
|
|
2097 /// No Metadata Documentation available.
|
|
2098 /// </summary>
|
|
2099 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2100 [DataMemberAttribute()]
|
|
2101 public global::System.String TitleOfCourtesy
|
|
2102 {
|
|
2103 get
|
|
2104 {
|
|
2105 return _TitleOfCourtesy;
|
|
2106 }
|
|
2107 set
|
|
2108 {
|
|
2109 OnTitleOfCourtesyChanging(value);
|
|
2110 ReportPropertyChanging("TitleOfCourtesy");
|
|
2111 _TitleOfCourtesy = StructuralObject.SetValidValue(value, true);
|
|
2112 ReportPropertyChanged("TitleOfCourtesy");
|
|
2113 OnTitleOfCourtesyChanged();
|
|
2114 }
|
|
2115 }
|
|
2116 private global::System.String _TitleOfCourtesy;
|
|
2117 partial void OnTitleOfCourtesyChanging(global::System.String value);
|
|
2118 partial void OnTitleOfCourtesyChanged();
|
|
2119
|
|
2120 /// <summary>
|
|
2121 /// No Metadata Documentation available.
|
|
2122 /// </summary>
|
|
2123 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2124 [DataMemberAttribute()]
|
|
2125 public Nullable<global::System.DateTime> BirthDate
|
|
2126 {
|
|
2127 get
|
|
2128 {
|
|
2129 return _BirthDate;
|
|
2130 }
|
|
2131 set
|
|
2132 {
|
|
2133 OnBirthDateChanging(value);
|
|
2134 ReportPropertyChanging("BirthDate");
|
|
2135 _BirthDate = StructuralObject.SetValidValue(value);
|
|
2136 ReportPropertyChanged("BirthDate");
|
|
2137 OnBirthDateChanged();
|
|
2138 }
|
|
2139 }
|
|
2140 private Nullable<global::System.DateTime> _BirthDate;
|
|
2141 partial void OnBirthDateChanging(Nullable<global::System.DateTime> value);
|
|
2142 partial void OnBirthDateChanged();
|
|
2143
|
|
2144 /// <summary>
|
|
2145 /// No Metadata Documentation available.
|
|
2146 /// </summary>
|
|
2147 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2148 [DataMemberAttribute()]
|
|
2149 public Nullable<global::System.DateTime> HireDate
|
|
2150 {
|
|
2151 get
|
|
2152 {
|
|
2153 return _HireDate;
|
|
2154 }
|
|
2155 set
|
|
2156 {
|
|
2157 OnHireDateChanging(value);
|
|
2158 ReportPropertyChanging("HireDate");
|
|
2159 _HireDate = StructuralObject.SetValidValue(value);
|
|
2160 ReportPropertyChanged("HireDate");
|
|
2161 OnHireDateChanged();
|
|
2162 }
|
|
2163 }
|
|
2164 private Nullable<global::System.DateTime> _HireDate;
|
|
2165 partial void OnHireDateChanging(Nullable<global::System.DateTime> value);
|
|
2166 partial void OnHireDateChanged();
|
|
2167
|
|
2168 /// <summary>
|
|
2169 /// No Metadata Documentation available.
|
|
2170 /// </summary>
|
|
2171 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2172 [DataMemberAttribute()]
|
|
2173 public global::System.String Address
|
|
2174 {
|
|
2175 get
|
|
2176 {
|
|
2177 return _Address;
|
|
2178 }
|
|
2179 set
|
|
2180 {
|
|
2181 OnAddressChanging(value);
|
|
2182 ReportPropertyChanging("Address");
|
|
2183 _Address = StructuralObject.SetValidValue(value, true);
|
|
2184 ReportPropertyChanged("Address");
|
|
2185 OnAddressChanged();
|
|
2186 }
|
|
2187 }
|
|
2188 private global::System.String _Address;
|
|
2189 partial void OnAddressChanging(global::System.String value);
|
|
2190 partial void OnAddressChanged();
|
|
2191
|
|
2192 /// <summary>
|
|
2193 /// No Metadata Documentation available.
|
|
2194 /// </summary>
|
|
2195 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2196 [DataMemberAttribute()]
|
|
2197 public global::System.String City
|
|
2198 {
|
|
2199 get
|
|
2200 {
|
|
2201 return _City;
|
|
2202 }
|
|
2203 set
|
|
2204 {
|
|
2205 OnCityChanging(value);
|
|
2206 ReportPropertyChanging("City");
|
|
2207 _City = StructuralObject.SetValidValue(value, true);
|
|
2208 ReportPropertyChanged("City");
|
|
2209 OnCityChanged();
|
|
2210 }
|
|
2211 }
|
|
2212 private global::System.String _City;
|
|
2213 partial void OnCityChanging(global::System.String value);
|
|
2214 partial void OnCityChanged();
|
|
2215
|
|
2216 /// <summary>
|
|
2217 /// No Metadata Documentation available.
|
|
2218 /// </summary>
|
|
2219 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2220 [DataMemberAttribute()]
|
|
2221 public global::System.String Region
|
|
2222 {
|
|
2223 get
|
|
2224 {
|
|
2225 return _Region;
|
|
2226 }
|
|
2227 set
|
|
2228 {
|
|
2229 OnRegionChanging(value);
|
|
2230 ReportPropertyChanging("Region");
|
|
2231 _Region = StructuralObject.SetValidValue(value, true);
|
|
2232 ReportPropertyChanged("Region");
|
|
2233 OnRegionChanged();
|
|
2234 }
|
|
2235 }
|
|
2236 private global::System.String _Region;
|
|
2237 partial void OnRegionChanging(global::System.String value);
|
|
2238 partial void OnRegionChanged();
|
|
2239
|
|
2240 /// <summary>
|
|
2241 /// No Metadata Documentation available.
|
|
2242 /// </summary>
|
|
2243 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2244 [DataMemberAttribute()]
|
|
2245 public global::System.String PostalCode
|
|
2246 {
|
|
2247 get
|
|
2248 {
|
|
2249 return _PostalCode;
|
|
2250 }
|
|
2251 set
|
|
2252 {
|
|
2253 OnPostalCodeChanging(value);
|
|
2254 ReportPropertyChanging("PostalCode");
|
|
2255 _PostalCode = StructuralObject.SetValidValue(value, true);
|
|
2256 ReportPropertyChanged("PostalCode");
|
|
2257 OnPostalCodeChanged();
|
|
2258 }
|
|
2259 }
|
|
2260 private global::System.String _PostalCode;
|
|
2261 partial void OnPostalCodeChanging(global::System.String value);
|
|
2262 partial void OnPostalCodeChanged();
|
|
2263
|
|
2264 /// <summary>
|
|
2265 /// No Metadata Documentation available.
|
|
2266 /// </summary>
|
|
2267 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2268 [DataMemberAttribute()]
|
|
2269 public global::System.String Country
|
|
2270 {
|
|
2271 get
|
|
2272 {
|
|
2273 return _Country;
|
|
2274 }
|
|
2275 set
|
|
2276 {
|
|
2277 OnCountryChanging(value);
|
|
2278 ReportPropertyChanging("Country");
|
|
2279 _Country = StructuralObject.SetValidValue(value, true);
|
|
2280 ReportPropertyChanged("Country");
|
|
2281 OnCountryChanged();
|
|
2282 }
|
|
2283 }
|
|
2284 private global::System.String _Country;
|
|
2285 partial void OnCountryChanging(global::System.String value);
|
|
2286 partial void OnCountryChanged();
|
|
2287
|
|
2288 /// <summary>
|
|
2289 /// No Metadata Documentation available.
|
|
2290 /// </summary>
|
|
2291 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2292 [DataMemberAttribute()]
|
|
2293 public global::System.String HomePhone
|
|
2294 {
|
|
2295 get
|
|
2296 {
|
|
2297 return _HomePhone;
|
|
2298 }
|
|
2299 set
|
|
2300 {
|
|
2301 OnHomePhoneChanging(value);
|
|
2302 ReportPropertyChanging("HomePhone");
|
|
2303 _HomePhone = StructuralObject.SetValidValue(value, true);
|
|
2304 ReportPropertyChanged("HomePhone");
|
|
2305 OnHomePhoneChanged();
|
|
2306 }
|
|
2307 }
|
|
2308 private global::System.String _HomePhone;
|
|
2309 partial void OnHomePhoneChanging(global::System.String value);
|
|
2310 partial void OnHomePhoneChanged();
|
|
2311
|
|
2312 /// <summary>
|
|
2313 /// No Metadata Documentation available.
|
|
2314 /// </summary>
|
|
2315 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2316 [DataMemberAttribute()]
|
|
2317 public global::System.String Extension
|
|
2318 {
|
|
2319 get
|
|
2320 {
|
|
2321 return _Extension;
|
|
2322 }
|
|
2323 set
|
|
2324 {
|
|
2325 OnExtensionChanging(value);
|
|
2326 ReportPropertyChanging("Extension");
|
|
2327 _Extension = StructuralObject.SetValidValue(value, true);
|
|
2328 ReportPropertyChanged("Extension");
|
|
2329 OnExtensionChanged();
|
|
2330 }
|
|
2331 }
|
|
2332 private global::System.String _Extension;
|
|
2333 partial void OnExtensionChanging(global::System.String value);
|
|
2334 partial void OnExtensionChanged();
|
|
2335
|
|
2336 /// <summary>
|
|
2337 /// No Metadata Documentation available.
|
|
2338 /// </summary>
|
|
2339 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2340 [DataMemberAttribute()]
|
|
2341 public global::System.Byte[] Photo
|
|
2342 {
|
|
2343 get
|
|
2344 {
|
|
2345 return StructuralObject.GetValidValue(_Photo);
|
|
2346 }
|
|
2347 set
|
|
2348 {
|
|
2349 OnPhotoChanging(value);
|
|
2350 ReportPropertyChanging("Photo");
|
|
2351 _Photo = StructuralObject.SetValidValue(value, true);
|
|
2352 ReportPropertyChanged("Photo");
|
|
2353 OnPhotoChanged();
|
|
2354 }
|
|
2355 }
|
|
2356 private global::System.Byte[] _Photo;
|
|
2357 partial void OnPhotoChanging(global::System.Byte[] value);
|
|
2358 partial void OnPhotoChanged();
|
|
2359
|
|
2360 /// <summary>
|
|
2361 /// No Metadata Documentation available.
|
|
2362 /// </summary>
|
|
2363 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2364 [DataMemberAttribute()]
|
|
2365 public global::System.String Notes
|
|
2366 {
|
|
2367 get
|
|
2368 {
|
|
2369 return _Notes;
|
|
2370 }
|
|
2371 set
|
|
2372 {
|
|
2373 OnNotesChanging(value);
|
|
2374 ReportPropertyChanging("Notes");
|
|
2375 _Notes = StructuralObject.SetValidValue(value, true);
|
|
2376 ReportPropertyChanged("Notes");
|
|
2377 OnNotesChanged();
|
|
2378 }
|
|
2379 }
|
|
2380 private global::System.String _Notes;
|
|
2381 partial void OnNotesChanging(global::System.String value);
|
|
2382 partial void OnNotesChanged();
|
|
2383
|
|
2384 /// <summary>
|
|
2385 /// No Metadata Documentation available.
|
|
2386 /// </summary>
|
|
2387 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2388 [DataMemberAttribute()]
|
|
2389 public Nullable<global::System.Int32> ReportsTo
|
|
2390 {
|
|
2391 get
|
|
2392 {
|
|
2393 return _ReportsTo;
|
|
2394 }
|
|
2395 set
|
|
2396 {
|
|
2397 OnReportsToChanging(value);
|
|
2398 ReportPropertyChanging("ReportsTo");
|
|
2399 _ReportsTo = StructuralObject.SetValidValue(value);
|
|
2400 ReportPropertyChanged("ReportsTo");
|
|
2401 OnReportsToChanged();
|
|
2402 }
|
|
2403 }
|
|
2404 private Nullable<global::System.Int32> _ReportsTo;
|
|
2405 partial void OnReportsToChanging(Nullable<global::System.Int32> value);
|
|
2406 partial void OnReportsToChanged();
|
|
2407
|
|
2408 /// <summary>
|
|
2409 /// No Metadata Documentation available.
|
|
2410 /// </summary>
|
|
2411 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2412 [DataMemberAttribute()]
|
|
2413 public global::System.String PhotoPath
|
|
2414 {
|
|
2415 get
|
|
2416 {
|
|
2417 return _PhotoPath;
|
|
2418 }
|
|
2419 set
|
|
2420 {
|
|
2421 OnPhotoPathChanging(value);
|
|
2422 ReportPropertyChanging("PhotoPath");
|
|
2423 _PhotoPath = StructuralObject.SetValidValue(value, true);
|
|
2424 ReportPropertyChanged("PhotoPath");
|
|
2425 OnPhotoPathChanged();
|
|
2426 }
|
|
2427 }
|
|
2428 private global::System.String _PhotoPath;
|
|
2429 partial void OnPhotoPathChanging(global::System.String value);
|
|
2430 partial void OnPhotoPathChanged();
|
|
2431
|
|
2432 #endregion
|
|
2433
|
|
2434
|
|
2435 #region Navigation Properties
|
|
2436
|
|
2437 /// <summary>
|
|
2438 /// No Metadata Documentation available.
|
|
2439 /// </summary>
|
|
2440 [XmlIgnoreAttribute()]
|
|
2441 [SoapIgnoreAttribute()]
|
|
2442 [DataMemberAttribute()]
|
|
2443 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Employees_Employees", "Employees1")]
|
|
2444 public EntityCollection<Employee> Employees1
|
|
2445 {
|
|
2446 get
|
|
2447 {
|
|
2448 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Employee>("NorthwindModel.FK_Employees_Employees", "Employees1");
|
|
2449 }
|
|
2450 set
|
|
2451 {
|
|
2452 if ((value != null))
|
|
2453 {
|
|
2454 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Employee>("NorthwindModel.FK_Employees_Employees", "Employees1", value);
|
|
2455 }
|
|
2456 }
|
|
2457 }
|
|
2458
|
|
2459 /// <summary>
|
|
2460 /// No Metadata Documentation available.
|
|
2461 /// </summary>
|
|
2462 [XmlIgnoreAttribute()]
|
|
2463 [SoapIgnoreAttribute()]
|
|
2464 [DataMemberAttribute()]
|
|
2465 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Employees_Employees", "Employees")]
|
|
2466 public Employee Employee1
|
|
2467 {
|
|
2468 get
|
|
2469 {
|
|
2470 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Employees_Employees", "Employees").Value;
|
|
2471 }
|
|
2472 set
|
|
2473 {
|
|
2474 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Employees_Employees", "Employees").Value = value;
|
|
2475 }
|
|
2476 }
|
|
2477 /// <summary>
|
|
2478 /// No Metadata Documentation available.
|
|
2479 /// </summary>
|
|
2480 [BrowsableAttribute(false)]
|
|
2481 [DataMemberAttribute()]
|
|
2482 public EntityReference<Employee> Employee1Reference
|
|
2483 {
|
|
2484 get
|
|
2485 {
|
|
2486 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Employees_Employees", "Employees");
|
|
2487 }
|
|
2488 set
|
|
2489 {
|
|
2490 if ((value != null))
|
|
2491 {
|
|
2492 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Employee>("NorthwindModel.FK_Employees_Employees", "Employees", value);
|
|
2493 }
|
|
2494 }
|
|
2495 }
|
|
2496
|
|
2497 /// <summary>
|
|
2498 /// No Metadata Documentation available.
|
|
2499 /// </summary>
|
|
2500 [XmlIgnoreAttribute()]
|
|
2501 [SoapIgnoreAttribute()]
|
|
2502 [DataMemberAttribute()]
|
|
2503 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Employees", "Orders")]
|
|
2504 public EntityCollection<Order> Orders
|
|
2505 {
|
|
2506 get
|
|
2507 {
|
|
2508 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order>("NorthwindModel.FK_Orders_Employees", "Orders");
|
|
2509 }
|
|
2510 set
|
|
2511 {
|
|
2512 if ((value != null))
|
|
2513 {
|
|
2514 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order>("NorthwindModel.FK_Orders_Employees", "Orders", value);
|
|
2515 }
|
|
2516 }
|
|
2517 }
|
|
2518
|
|
2519 /// <summary>
|
|
2520 /// No Metadata Documentation available.
|
|
2521 /// </summary>
|
|
2522 [XmlIgnoreAttribute()]
|
|
2523 [SoapIgnoreAttribute()]
|
|
2524 [DataMemberAttribute()]
|
|
2525 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "EmployeeTerritories", "Territories")]
|
|
2526 public EntityCollection<Territory> Territories
|
|
2527 {
|
|
2528 get
|
|
2529 {
|
|
2530 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Territory>("NorthwindModel.EmployeeTerritories", "Territories");
|
|
2531 }
|
|
2532 set
|
|
2533 {
|
|
2534 if ((value != null))
|
|
2535 {
|
|
2536 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Territory>("NorthwindModel.EmployeeTerritories", "Territories", value);
|
|
2537 }
|
|
2538 }
|
|
2539 }
|
|
2540
|
|
2541 #endregion
|
|
2542
|
|
2543 }
|
|
2544
|
|
2545 /// <summary>
|
|
2546 /// No Metadata Documentation available.
|
|
2547 /// </summary>
|
|
2548 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Invoice")]
|
|
2549 [Serializable()]
|
|
2550 [DataContractAttribute(IsReference=true)]
|
|
2551 public partial class Invoice : EntityObject
|
|
2552 {
|
|
2553 #region Factory Method
|
|
2554
|
|
2555 /// <summary>
|
|
2556 /// Create a new Invoice object.
|
|
2557 /// </summary>
|
|
2558 /// <param name="customerName">Initial value of the CustomerName property.</param>
|
|
2559 /// <param name="salesperson">Initial value of the Salesperson property.</param>
|
|
2560 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
2561 /// <param name="shipperName">Initial value of the ShipperName property.</param>
|
|
2562 /// <param name="productID">Initial value of the ProductID property.</param>
|
|
2563 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
2564 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
|
|
2565 /// <param name="quantity">Initial value of the Quantity property.</param>
|
|
2566 /// <param name="discount">Initial value of the Discount property.</param>
|
|
2567 public static Invoice CreateInvoice(global::System.String customerName, global::System.String salesperson, global::System.Int32 orderID, global::System.String shipperName, global::System.Int32 productID, global::System.String productName, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount)
|
|
2568 {
|
|
2569 Invoice invoice = new Invoice();
|
|
2570 invoice.CustomerName = customerName;
|
|
2571 invoice.Salesperson = salesperson;
|
|
2572 invoice.OrderID = orderID;
|
|
2573 invoice.ShipperName = shipperName;
|
|
2574 invoice.ProductID = productID;
|
|
2575 invoice.ProductName = productName;
|
|
2576 invoice.UnitPrice = unitPrice;
|
|
2577 invoice.Quantity = quantity;
|
|
2578 invoice.Discount = discount;
|
|
2579 return invoice;
|
|
2580 }
|
|
2581
|
|
2582 #endregion
|
|
2583
|
|
2584 #region Primitive Properties
|
|
2585
|
|
2586 /// <summary>
|
|
2587 /// No Metadata Documentation available.
|
|
2588 /// </summary>
|
|
2589 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2590 [DataMemberAttribute()]
|
|
2591 public global::System.String ShipName
|
|
2592 {
|
|
2593 get
|
|
2594 {
|
|
2595 return _ShipName;
|
|
2596 }
|
|
2597 set
|
|
2598 {
|
|
2599 OnShipNameChanging(value);
|
|
2600 ReportPropertyChanging("ShipName");
|
|
2601 _ShipName = StructuralObject.SetValidValue(value, true);
|
|
2602 ReportPropertyChanged("ShipName");
|
|
2603 OnShipNameChanged();
|
|
2604 }
|
|
2605 }
|
|
2606 private global::System.String _ShipName;
|
|
2607 partial void OnShipNameChanging(global::System.String value);
|
|
2608 partial void OnShipNameChanged();
|
|
2609
|
|
2610 /// <summary>
|
|
2611 /// No Metadata Documentation available.
|
|
2612 /// </summary>
|
|
2613 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2614 [DataMemberAttribute()]
|
|
2615 public global::System.String ShipAddress
|
|
2616 {
|
|
2617 get
|
|
2618 {
|
|
2619 return _ShipAddress;
|
|
2620 }
|
|
2621 set
|
|
2622 {
|
|
2623 OnShipAddressChanging(value);
|
|
2624 ReportPropertyChanging("ShipAddress");
|
|
2625 _ShipAddress = StructuralObject.SetValidValue(value, true);
|
|
2626 ReportPropertyChanged("ShipAddress");
|
|
2627 OnShipAddressChanged();
|
|
2628 }
|
|
2629 }
|
|
2630 private global::System.String _ShipAddress;
|
|
2631 partial void OnShipAddressChanging(global::System.String value);
|
|
2632 partial void OnShipAddressChanged();
|
|
2633
|
|
2634 /// <summary>
|
|
2635 /// No Metadata Documentation available.
|
|
2636 /// </summary>
|
|
2637 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2638 [DataMemberAttribute()]
|
|
2639 public global::System.String ShipCity
|
|
2640 {
|
|
2641 get
|
|
2642 {
|
|
2643 return _ShipCity;
|
|
2644 }
|
|
2645 set
|
|
2646 {
|
|
2647 OnShipCityChanging(value);
|
|
2648 ReportPropertyChanging("ShipCity");
|
|
2649 _ShipCity = StructuralObject.SetValidValue(value, true);
|
|
2650 ReportPropertyChanged("ShipCity");
|
|
2651 OnShipCityChanged();
|
|
2652 }
|
|
2653 }
|
|
2654 private global::System.String _ShipCity;
|
|
2655 partial void OnShipCityChanging(global::System.String value);
|
|
2656 partial void OnShipCityChanged();
|
|
2657
|
|
2658 /// <summary>
|
|
2659 /// No Metadata Documentation available.
|
|
2660 /// </summary>
|
|
2661 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2662 [DataMemberAttribute()]
|
|
2663 public global::System.String ShipRegion
|
|
2664 {
|
|
2665 get
|
|
2666 {
|
|
2667 return _ShipRegion;
|
|
2668 }
|
|
2669 set
|
|
2670 {
|
|
2671 OnShipRegionChanging(value);
|
|
2672 ReportPropertyChanging("ShipRegion");
|
|
2673 _ShipRegion = StructuralObject.SetValidValue(value, true);
|
|
2674 ReportPropertyChanged("ShipRegion");
|
|
2675 OnShipRegionChanged();
|
|
2676 }
|
|
2677 }
|
|
2678 private global::System.String _ShipRegion;
|
|
2679 partial void OnShipRegionChanging(global::System.String value);
|
|
2680 partial void OnShipRegionChanged();
|
|
2681
|
|
2682 /// <summary>
|
|
2683 /// No Metadata Documentation available.
|
|
2684 /// </summary>
|
|
2685 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2686 [DataMemberAttribute()]
|
|
2687 public global::System.String ShipPostalCode
|
|
2688 {
|
|
2689 get
|
|
2690 {
|
|
2691 return _ShipPostalCode;
|
|
2692 }
|
|
2693 set
|
|
2694 {
|
|
2695 OnShipPostalCodeChanging(value);
|
|
2696 ReportPropertyChanging("ShipPostalCode");
|
|
2697 _ShipPostalCode = StructuralObject.SetValidValue(value, true);
|
|
2698 ReportPropertyChanged("ShipPostalCode");
|
|
2699 OnShipPostalCodeChanged();
|
|
2700 }
|
|
2701 }
|
|
2702 private global::System.String _ShipPostalCode;
|
|
2703 partial void OnShipPostalCodeChanging(global::System.String value);
|
|
2704 partial void OnShipPostalCodeChanged();
|
|
2705
|
|
2706 /// <summary>
|
|
2707 /// No Metadata Documentation available.
|
|
2708 /// </summary>
|
|
2709 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2710 [DataMemberAttribute()]
|
|
2711 public global::System.String ShipCountry
|
|
2712 {
|
|
2713 get
|
|
2714 {
|
|
2715 return _ShipCountry;
|
|
2716 }
|
|
2717 set
|
|
2718 {
|
|
2719 OnShipCountryChanging(value);
|
|
2720 ReportPropertyChanging("ShipCountry");
|
|
2721 _ShipCountry = StructuralObject.SetValidValue(value, true);
|
|
2722 ReportPropertyChanged("ShipCountry");
|
|
2723 OnShipCountryChanged();
|
|
2724 }
|
|
2725 }
|
|
2726 private global::System.String _ShipCountry;
|
|
2727 partial void OnShipCountryChanging(global::System.String value);
|
|
2728 partial void OnShipCountryChanged();
|
|
2729
|
|
2730 /// <summary>
|
|
2731 /// No Metadata Documentation available.
|
|
2732 /// </summary>
|
|
2733 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2734 [DataMemberAttribute()]
|
|
2735 public global::System.String CustomerID
|
|
2736 {
|
|
2737 get
|
|
2738 {
|
|
2739 return _CustomerID;
|
|
2740 }
|
|
2741 set
|
|
2742 {
|
|
2743 OnCustomerIDChanging(value);
|
|
2744 ReportPropertyChanging("CustomerID");
|
|
2745 _CustomerID = StructuralObject.SetValidValue(value, true);
|
|
2746 ReportPropertyChanged("CustomerID");
|
|
2747 OnCustomerIDChanged();
|
|
2748 }
|
|
2749 }
|
|
2750 private global::System.String _CustomerID;
|
|
2751 partial void OnCustomerIDChanging(global::System.String value);
|
|
2752 partial void OnCustomerIDChanged();
|
|
2753
|
|
2754 /// <summary>
|
|
2755 /// No Metadata Documentation available.
|
|
2756 /// </summary>
|
|
2757 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
2758 [DataMemberAttribute()]
|
|
2759 public global::System.String CustomerName
|
|
2760 {
|
|
2761 get
|
|
2762 {
|
|
2763 return _CustomerName;
|
|
2764 }
|
|
2765 set
|
|
2766 {
|
|
2767 if (_CustomerName != value)
|
|
2768 {
|
|
2769 OnCustomerNameChanging(value);
|
|
2770 ReportPropertyChanging("CustomerName");
|
|
2771 _CustomerName = StructuralObject.SetValidValue(value, false);
|
|
2772 ReportPropertyChanged("CustomerName");
|
|
2773 OnCustomerNameChanged();
|
|
2774 }
|
|
2775 }
|
|
2776 }
|
|
2777 private global::System.String _CustomerName;
|
|
2778 partial void OnCustomerNameChanging(global::System.String value);
|
|
2779 partial void OnCustomerNameChanged();
|
|
2780
|
|
2781 /// <summary>
|
|
2782 /// No Metadata Documentation available.
|
|
2783 /// </summary>
|
|
2784 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2785 [DataMemberAttribute()]
|
|
2786 public global::System.String Address
|
|
2787 {
|
|
2788 get
|
|
2789 {
|
|
2790 return _Address;
|
|
2791 }
|
|
2792 set
|
|
2793 {
|
|
2794 OnAddressChanging(value);
|
|
2795 ReportPropertyChanging("Address");
|
|
2796 _Address = StructuralObject.SetValidValue(value, true);
|
|
2797 ReportPropertyChanged("Address");
|
|
2798 OnAddressChanged();
|
|
2799 }
|
|
2800 }
|
|
2801 private global::System.String _Address;
|
|
2802 partial void OnAddressChanging(global::System.String value);
|
|
2803 partial void OnAddressChanged();
|
|
2804
|
|
2805 /// <summary>
|
|
2806 /// No Metadata Documentation available.
|
|
2807 /// </summary>
|
|
2808 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2809 [DataMemberAttribute()]
|
|
2810 public global::System.String City
|
|
2811 {
|
|
2812 get
|
|
2813 {
|
|
2814 return _City;
|
|
2815 }
|
|
2816 set
|
|
2817 {
|
|
2818 OnCityChanging(value);
|
|
2819 ReportPropertyChanging("City");
|
|
2820 _City = StructuralObject.SetValidValue(value, true);
|
|
2821 ReportPropertyChanged("City");
|
|
2822 OnCityChanged();
|
|
2823 }
|
|
2824 }
|
|
2825 private global::System.String _City;
|
|
2826 partial void OnCityChanging(global::System.String value);
|
|
2827 partial void OnCityChanged();
|
|
2828
|
|
2829 /// <summary>
|
|
2830 /// No Metadata Documentation available.
|
|
2831 /// </summary>
|
|
2832 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2833 [DataMemberAttribute()]
|
|
2834 public global::System.String Region
|
|
2835 {
|
|
2836 get
|
|
2837 {
|
|
2838 return _Region;
|
|
2839 }
|
|
2840 set
|
|
2841 {
|
|
2842 OnRegionChanging(value);
|
|
2843 ReportPropertyChanging("Region");
|
|
2844 _Region = StructuralObject.SetValidValue(value, true);
|
|
2845 ReportPropertyChanged("Region");
|
|
2846 OnRegionChanged();
|
|
2847 }
|
|
2848 }
|
|
2849 private global::System.String _Region;
|
|
2850 partial void OnRegionChanging(global::System.String value);
|
|
2851 partial void OnRegionChanged();
|
|
2852
|
|
2853 /// <summary>
|
|
2854 /// No Metadata Documentation available.
|
|
2855 /// </summary>
|
|
2856 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2857 [DataMemberAttribute()]
|
|
2858 public global::System.String PostalCode
|
|
2859 {
|
|
2860 get
|
|
2861 {
|
|
2862 return _PostalCode;
|
|
2863 }
|
|
2864 set
|
|
2865 {
|
|
2866 OnPostalCodeChanging(value);
|
|
2867 ReportPropertyChanging("PostalCode");
|
|
2868 _PostalCode = StructuralObject.SetValidValue(value, true);
|
|
2869 ReportPropertyChanged("PostalCode");
|
|
2870 OnPostalCodeChanged();
|
|
2871 }
|
|
2872 }
|
|
2873 private global::System.String _PostalCode;
|
|
2874 partial void OnPostalCodeChanging(global::System.String value);
|
|
2875 partial void OnPostalCodeChanged();
|
|
2876
|
|
2877 /// <summary>
|
|
2878 /// No Metadata Documentation available.
|
|
2879 /// </summary>
|
|
2880 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2881 [DataMemberAttribute()]
|
|
2882 public global::System.String Country
|
|
2883 {
|
|
2884 get
|
|
2885 {
|
|
2886 return _Country;
|
|
2887 }
|
|
2888 set
|
|
2889 {
|
|
2890 OnCountryChanging(value);
|
|
2891 ReportPropertyChanging("Country");
|
|
2892 _Country = StructuralObject.SetValidValue(value, true);
|
|
2893 ReportPropertyChanged("Country");
|
|
2894 OnCountryChanged();
|
|
2895 }
|
|
2896 }
|
|
2897 private global::System.String _Country;
|
|
2898 partial void OnCountryChanging(global::System.String value);
|
|
2899 partial void OnCountryChanged();
|
|
2900
|
|
2901 /// <summary>
|
|
2902 /// No Metadata Documentation available.
|
|
2903 /// </summary>
|
|
2904 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
2905 [DataMemberAttribute()]
|
|
2906 public global::System.String Salesperson
|
|
2907 {
|
|
2908 get
|
|
2909 {
|
|
2910 return _Salesperson;
|
|
2911 }
|
|
2912 set
|
|
2913 {
|
|
2914 if (_Salesperson != value)
|
|
2915 {
|
|
2916 OnSalespersonChanging(value);
|
|
2917 ReportPropertyChanging("Salesperson");
|
|
2918 _Salesperson = StructuralObject.SetValidValue(value, false);
|
|
2919 ReportPropertyChanged("Salesperson");
|
|
2920 OnSalespersonChanged();
|
|
2921 }
|
|
2922 }
|
|
2923 }
|
|
2924 private global::System.String _Salesperson;
|
|
2925 partial void OnSalespersonChanging(global::System.String value);
|
|
2926 partial void OnSalespersonChanged();
|
|
2927
|
|
2928 /// <summary>
|
|
2929 /// No Metadata Documentation available.
|
|
2930 /// </summary>
|
|
2931 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
2932 [DataMemberAttribute()]
|
|
2933 public global::System.Int32 OrderID
|
|
2934 {
|
|
2935 get
|
|
2936 {
|
|
2937 return _OrderID;
|
|
2938 }
|
|
2939 set
|
|
2940 {
|
|
2941 if (_OrderID != value)
|
|
2942 {
|
|
2943 OnOrderIDChanging(value);
|
|
2944 ReportPropertyChanging("OrderID");
|
|
2945 _OrderID = StructuralObject.SetValidValue(value);
|
|
2946 ReportPropertyChanged("OrderID");
|
|
2947 OnOrderIDChanged();
|
|
2948 }
|
|
2949 }
|
|
2950 }
|
|
2951 private global::System.Int32 _OrderID;
|
|
2952 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
2953 partial void OnOrderIDChanged();
|
|
2954
|
|
2955 /// <summary>
|
|
2956 /// No Metadata Documentation available.
|
|
2957 /// </summary>
|
|
2958 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2959 [DataMemberAttribute()]
|
|
2960 public Nullable<global::System.DateTime> OrderDate
|
|
2961 {
|
|
2962 get
|
|
2963 {
|
|
2964 return _OrderDate;
|
|
2965 }
|
|
2966 set
|
|
2967 {
|
|
2968 OnOrderDateChanging(value);
|
|
2969 ReportPropertyChanging("OrderDate");
|
|
2970 _OrderDate = StructuralObject.SetValidValue(value);
|
|
2971 ReportPropertyChanged("OrderDate");
|
|
2972 OnOrderDateChanged();
|
|
2973 }
|
|
2974 }
|
|
2975 private Nullable<global::System.DateTime> _OrderDate;
|
|
2976 partial void OnOrderDateChanging(Nullable<global::System.DateTime> value);
|
|
2977 partial void OnOrderDateChanged();
|
|
2978
|
|
2979 /// <summary>
|
|
2980 /// No Metadata Documentation available.
|
|
2981 /// </summary>
|
|
2982 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
2983 [DataMemberAttribute()]
|
|
2984 public Nullable<global::System.DateTime> RequiredDate
|
|
2985 {
|
|
2986 get
|
|
2987 {
|
|
2988 return _RequiredDate;
|
|
2989 }
|
|
2990 set
|
|
2991 {
|
|
2992 OnRequiredDateChanging(value);
|
|
2993 ReportPropertyChanging("RequiredDate");
|
|
2994 _RequiredDate = StructuralObject.SetValidValue(value);
|
|
2995 ReportPropertyChanged("RequiredDate");
|
|
2996 OnRequiredDateChanged();
|
|
2997 }
|
|
2998 }
|
|
2999 private Nullable<global::System.DateTime> _RequiredDate;
|
|
3000 partial void OnRequiredDateChanging(Nullable<global::System.DateTime> value);
|
|
3001 partial void OnRequiredDateChanged();
|
|
3002
|
|
3003 /// <summary>
|
|
3004 /// No Metadata Documentation available.
|
|
3005 /// </summary>
|
|
3006 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3007 [DataMemberAttribute()]
|
|
3008 public Nullable<global::System.DateTime> ShippedDate
|
|
3009 {
|
|
3010 get
|
|
3011 {
|
|
3012 return _ShippedDate;
|
|
3013 }
|
|
3014 set
|
|
3015 {
|
|
3016 OnShippedDateChanging(value);
|
|
3017 ReportPropertyChanging("ShippedDate");
|
|
3018 _ShippedDate = StructuralObject.SetValidValue(value);
|
|
3019 ReportPropertyChanged("ShippedDate");
|
|
3020 OnShippedDateChanged();
|
|
3021 }
|
|
3022 }
|
|
3023 private Nullable<global::System.DateTime> _ShippedDate;
|
|
3024 partial void OnShippedDateChanging(Nullable<global::System.DateTime> value);
|
|
3025 partial void OnShippedDateChanged();
|
|
3026
|
|
3027 /// <summary>
|
|
3028 /// No Metadata Documentation available.
|
|
3029 /// </summary>
|
|
3030 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3031 [DataMemberAttribute()]
|
|
3032 public global::System.String ShipperName
|
|
3033 {
|
|
3034 get
|
|
3035 {
|
|
3036 return _ShipperName;
|
|
3037 }
|
|
3038 set
|
|
3039 {
|
|
3040 if (_ShipperName != value)
|
|
3041 {
|
|
3042 OnShipperNameChanging(value);
|
|
3043 ReportPropertyChanging("ShipperName");
|
|
3044 _ShipperName = StructuralObject.SetValidValue(value, false);
|
|
3045 ReportPropertyChanged("ShipperName");
|
|
3046 OnShipperNameChanged();
|
|
3047 }
|
|
3048 }
|
|
3049 }
|
|
3050 private global::System.String _ShipperName;
|
|
3051 partial void OnShipperNameChanging(global::System.String value);
|
|
3052 partial void OnShipperNameChanged();
|
|
3053
|
|
3054 /// <summary>
|
|
3055 /// No Metadata Documentation available.
|
|
3056 /// </summary>
|
|
3057 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3058 [DataMemberAttribute()]
|
|
3059 public global::System.Int32 ProductID
|
|
3060 {
|
|
3061 get
|
|
3062 {
|
|
3063 return _ProductID;
|
|
3064 }
|
|
3065 set
|
|
3066 {
|
|
3067 if (_ProductID != value)
|
|
3068 {
|
|
3069 OnProductIDChanging(value);
|
|
3070 ReportPropertyChanging("ProductID");
|
|
3071 _ProductID = StructuralObject.SetValidValue(value);
|
|
3072 ReportPropertyChanged("ProductID");
|
|
3073 OnProductIDChanged();
|
|
3074 }
|
|
3075 }
|
|
3076 }
|
|
3077 private global::System.Int32 _ProductID;
|
|
3078 partial void OnProductIDChanging(global::System.Int32 value);
|
|
3079 partial void OnProductIDChanged();
|
|
3080
|
|
3081 /// <summary>
|
|
3082 /// No Metadata Documentation available.
|
|
3083 /// </summary>
|
|
3084 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3085 [DataMemberAttribute()]
|
|
3086 public global::System.String ProductName
|
|
3087 {
|
|
3088 get
|
|
3089 {
|
|
3090 return _ProductName;
|
|
3091 }
|
|
3092 set
|
|
3093 {
|
|
3094 if (_ProductName != value)
|
|
3095 {
|
|
3096 OnProductNameChanging(value);
|
|
3097 ReportPropertyChanging("ProductName");
|
|
3098 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
3099 ReportPropertyChanged("ProductName");
|
|
3100 OnProductNameChanged();
|
|
3101 }
|
|
3102 }
|
|
3103 }
|
|
3104 private global::System.String _ProductName;
|
|
3105 partial void OnProductNameChanging(global::System.String value);
|
|
3106 partial void OnProductNameChanged();
|
|
3107
|
|
3108 /// <summary>
|
|
3109 /// No Metadata Documentation available.
|
|
3110 /// </summary>
|
|
3111 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3112 [DataMemberAttribute()]
|
|
3113 public global::System.Decimal UnitPrice
|
|
3114 {
|
|
3115 get
|
|
3116 {
|
|
3117 return _UnitPrice;
|
|
3118 }
|
|
3119 set
|
|
3120 {
|
|
3121 if (_UnitPrice != value)
|
|
3122 {
|
|
3123 OnUnitPriceChanging(value);
|
|
3124 ReportPropertyChanging("UnitPrice");
|
|
3125 _UnitPrice = StructuralObject.SetValidValue(value);
|
|
3126 ReportPropertyChanged("UnitPrice");
|
|
3127 OnUnitPriceChanged();
|
|
3128 }
|
|
3129 }
|
|
3130 }
|
|
3131 private global::System.Decimal _UnitPrice;
|
|
3132 partial void OnUnitPriceChanging(global::System.Decimal value);
|
|
3133 partial void OnUnitPriceChanged();
|
|
3134
|
|
3135 /// <summary>
|
|
3136 /// No Metadata Documentation available.
|
|
3137 /// </summary>
|
|
3138 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3139 [DataMemberAttribute()]
|
|
3140 public global::System.Int16 Quantity
|
|
3141 {
|
|
3142 get
|
|
3143 {
|
|
3144 return _Quantity;
|
|
3145 }
|
|
3146 set
|
|
3147 {
|
|
3148 if (_Quantity != value)
|
|
3149 {
|
|
3150 OnQuantityChanging(value);
|
|
3151 ReportPropertyChanging("Quantity");
|
|
3152 _Quantity = StructuralObject.SetValidValue(value);
|
|
3153 ReportPropertyChanged("Quantity");
|
|
3154 OnQuantityChanged();
|
|
3155 }
|
|
3156 }
|
|
3157 }
|
|
3158 private global::System.Int16 _Quantity;
|
|
3159 partial void OnQuantityChanging(global::System.Int16 value);
|
|
3160 partial void OnQuantityChanged();
|
|
3161
|
|
3162 /// <summary>
|
|
3163 /// No Metadata Documentation available.
|
|
3164 /// </summary>
|
|
3165 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3166 [DataMemberAttribute()]
|
|
3167 public global::System.Single Discount
|
|
3168 {
|
|
3169 get
|
|
3170 {
|
|
3171 return _Discount;
|
|
3172 }
|
|
3173 set
|
|
3174 {
|
|
3175 if (_Discount != value)
|
|
3176 {
|
|
3177 OnDiscountChanging(value);
|
|
3178 ReportPropertyChanging("Discount");
|
|
3179 _Discount = StructuralObject.SetValidValue(value);
|
|
3180 ReportPropertyChanged("Discount");
|
|
3181 OnDiscountChanged();
|
|
3182 }
|
|
3183 }
|
|
3184 }
|
|
3185 private global::System.Single _Discount;
|
|
3186 partial void OnDiscountChanging(global::System.Single value);
|
|
3187 partial void OnDiscountChanged();
|
|
3188
|
|
3189 /// <summary>
|
|
3190 /// No Metadata Documentation available.
|
|
3191 /// </summary>
|
|
3192 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3193 [DataMemberAttribute()]
|
|
3194 public Nullable<global::System.Decimal> ExtendedPrice
|
|
3195 {
|
|
3196 get
|
|
3197 {
|
|
3198 return _ExtendedPrice;
|
|
3199 }
|
|
3200 set
|
|
3201 {
|
|
3202 OnExtendedPriceChanging(value);
|
|
3203 ReportPropertyChanging("ExtendedPrice");
|
|
3204 _ExtendedPrice = StructuralObject.SetValidValue(value);
|
|
3205 ReportPropertyChanged("ExtendedPrice");
|
|
3206 OnExtendedPriceChanged();
|
|
3207 }
|
|
3208 }
|
|
3209 private Nullable<global::System.Decimal> _ExtendedPrice;
|
|
3210 partial void OnExtendedPriceChanging(Nullable<global::System.Decimal> value);
|
|
3211 partial void OnExtendedPriceChanged();
|
|
3212
|
|
3213 /// <summary>
|
|
3214 /// No Metadata Documentation available.
|
|
3215 /// </summary>
|
|
3216 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3217 [DataMemberAttribute()]
|
|
3218 public Nullable<global::System.Decimal> Freight
|
|
3219 {
|
|
3220 get
|
|
3221 {
|
|
3222 return _Freight;
|
|
3223 }
|
|
3224 set
|
|
3225 {
|
|
3226 OnFreightChanging(value);
|
|
3227 ReportPropertyChanging("Freight");
|
|
3228 _Freight = StructuralObject.SetValidValue(value);
|
|
3229 ReportPropertyChanged("Freight");
|
|
3230 OnFreightChanged();
|
|
3231 }
|
|
3232 }
|
|
3233 private Nullable<global::System.Decimal> _Freight;
|
|
3234 partial void OnFreightChanging(Nullable<global::System.Decimal> value);
|
|
3235 partial void OnFreightChanged();
|
|
3236
|
|
3237 #endregion
|
|
3238
|
|
3239
|
|
3240 }
|
|
3241
|
|
3242 /// <summary>
|
|
3243 /// No Metadata Documentation available.
|
|
3244 /// </summary>
|
|
3245 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order")]
|
|
3246 [Serializable()]
|
|
3247 [DataContractAttribute(IsReference=true)]
|
|
3248 public partial class Order : EntityObject
|
|
3249 {
|
|
3250 #region Factory Method
|
|
3251
|
|
3252 /// <summary>
|
|
3253 /// Create a new Order object.
|
|
3254 /// </summary>
|
|
3255 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
3256 public static Order CreateOrder(global::System.Int32 orderID)
|
|
3257 {
|
|
3258 Order order = new Order();
|
|
3259 order.OrderID = orderID;
|
|
3260 return order;
|
|
3261 }
|
|
3262
|
|
3263 #endregion
|
|
3264
|
|
3265 #region Primitive Properties
|
|
3266
|
|
3267 /// <summary>
|
|
3268 /// No Metadata Documentation available.
|
|
3269 /// </summary>
|
|
3270 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3271 [DataMemberAttribute()]
|
|
3272 public global::System.Int32 OrderID
|
|
3273 {
|
|
3274 get
|
|
3275 {
|
|
3276 return _OrderID;
|
|
3277 }
|
|
3278 set
|
|
3279 {
|
|
3280 if (_OrderID != value)
|
|
3281 {
|
|
3282 OnOrderIDChanging(value);
|
|
3283 ReportPropertyChanging("OrderID");
|
|
3284 _OrderID = StructuralObject.SetValidValue(value);
|
|
3285 ReportPropertyChanged("OrderID");
|
|
3286 OnOrderIDChanged();
|
|
3287 }
|
|
3288 }
|
|
3289 }
|
|
3290 private global::System.Int32 _OrderID;
|
|
3291 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
3292 partial void OnOrderIDChanged();
|
|
3293
|
|
3294 /// <summary>
|
|
3295 /// No Metadata Documentation available.
|
|
3296 /// </summary>
|
|
3297 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3298 [DataMemberAttribute()]
|
|
3299 public global::System.String CustomerID
|
|
3300 {
|
|
3301 get
|
|
3302 {
|
|
3303 return _CustomerID;
|
|
3304 }
|
|
3305 set
|
|
3306 {
|
|
3307 OnCustomerIDChanging(value);
|
|
3308 ReportPropertyChanging("CustomerID");
|
|
3309 _CustomerID = StructuralObject.SetValidValue(value, true);
|
|
3310 ReportPropertyChanged("CustomerID");
|
|
3311 OnCustomerIDChanged();
|
|
3312 }
|
|
3313 }
|
|
3314 private global::System.String _CustomerID;
|
|
3315 partial void OnCustomerIDChanging(global::System.String value);
|
|
3316 partial void OnCustomerIDChanged();
|
|
3317
|
|
3318 /// <summary>
|
|
3319 /// No Metadata Documentation available.
|
|
3320 /// </summary>
|
|
3321 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3322 [DataMemberAttribute()]
|
|
3323 public Nullable<global::System.Int32> EmployeeID
|
|
3324 {
|
|
3325 get
|
|
3326 {
|
|
3327 return _EmployeeID;
|
|
3328 }
|
|
3329 set
|
|
3330 {
|
|
3331 OnEmployeeIDChanging(value);
|
|
3332 ReportPropertyChanging("EmployeeID");
|
|
3333 _EmployeeID = StructuralObject.SetValidValue(value);
|
|
3334 ReportPropertyChanged("EmployeeID");
|
|
3335 OnEmployeeIDChanged();
|
|
3336 }
|
|
3337 }
|
|
3338 private Nullable<global::System.Int32> _EmployeeID;
|
|
3339 partial void OnEmployeeIDChanging(Nullable<global::System.Int32> value);
|
|
3340 partial void OnEmployeeIDChanged();
|
|
3341
|
|
3342 /// <summary>
|
|
3343 /// No Metadata Documentation available.
|
|
3344 /// </summary>
|
|
3345 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3346 [DataMemberAttribute()]
|
|
3347 public Nullable<global::System.DateTime> OrderDate
|
|
3348 {
|
|
3349 get
|
|
3350 {
|
|
3351 return _OrderDate;
|
|
3352 }
|
|
3353 set
|
|
3354 {
|
|
3355 OnOrderDateChanging(value);
|
|
3356 ReportPropertyChanging("OrderDate");
|
|
3357 _OrderDate = StructuralObject.SetValidValue(value);
|
|
3358 ReportPropertyChanged("OrderDate");
|
|
3359 OnOrderDateChanged();
|
|
3360 }
|
|
3361 }
|
|
3362 private Nullable<global::System.DateTime> _OrderDate;
|
|
3363 partial void OnOrderDateChanging(Nullable<global::System.DateTime> value);
|
|
3364 partial void OnOrderDateChanged();
|
|
3365
|
|
3366 /// <summary>
|
|
3367 /// No Metadata Documentation available.
|
|
3368 /// </summary>
|
|
3369 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3370 [DataMemberAttribute()]
|
|
3371 public Nullable<global::System.DateTime> RequiredDate
|
|
3372 {
|
|
3373 get
|
|
3374 {
|
|
3375 return _RequiredDate;
|
|
3376 }
|
|
3377 set
|
|
3378 {
|
|
3379 OnRequiredDateChanging(value);
|
|
3380 ReportPropertyChanging("RequiredDate");
|
|
3381 _RequiredDate = StructuralObject.SetValidValue(value);
|
|
3382 ReportPropertyChanged("RequiredDate");
|
|
3383 OnRequiredDateChanged();
|
|
3384 }
|
|
3385 }
|
|
3386 private Nullable<global::System.DateTime> _RequiredDate;
|
|
3387 partial void OnRequiredDateChanging(Nullable<global::System.DateTime> value);
|
|
3388 partial void OnRequiredDateChanged();
|
|
3389
|
|
3390 /// <summary>
|
|
3391 /// No Metadata Documentation available.
|
|
3392 /// </summary>
|
|
3393 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3394 [DataMemberAttribute()]
|
|
3395 public Nullable<global::System.DateTime> ShippedDate
|
|
3396 {
|
|
3397 get
|
|
3398 {
|
|
3399 return _ShippedDate;
|
|
3400 }
|
|
3401 set
|
|
3402 {
|
|
3403 OnShippedDateChanging(value);
|
|
3404 ReportPropertyChanging("ShippedDate");
|
|
3405 _ShippedDate = StructuralObject.SetValidValue(value);
|
|
3406 ReportPropertyChanged("ShippedDate");
|
|
3407 OnShippedDateChanged();
|
|
3408 }
|
|
3409 }
|
|
3410 private Nullable<global::System.DateTime> _ShippedDate;
|
|
3411 partial void OnShippedDateChanging(Nullable<global::System.DateTime> value);
|
|
3412 partial void OnShippedDateChanged();
|
|
3413
|
|
3414 /// <summary>
|
|
3415 /// No Metadata Documentation available.
|
|
3416 /// </summary>
|
|
3417 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3418 [DataMemberAttribute()]
|
|
3419 public Nullable<global::System.Int32> ShipVia
|
|
3420 {
|
|
3421 get
|
|
3422 {
|
|
3423 return _ShipVia;
|
|
3424 }
|
|
3425 set
|
|
3426 {
|
|
3427 OnShipViaChanging(value);
|
|
3428 ReportPropertyChanging("ShipVia");
|
|
3429 _ShipVia = StructuralObject.SetValidValue(value);
|
|
3430 ReportPropertyChanged("ShipVia");
|
|
3431 OnShipViaChanged();
|
|
3432 }
|
|
3433 }
|
|
3434 private Nullable<global::System.Int32> _ShipVia;
|
|
3435 partial void OnShipViaChanging(Nullable<global::System.Int32> value);
|
|
3436 partial void OnShipViaChanged();
|
|
3437
|
|
3438 /// <summary>
|
|
3439 /// No Metadata Documentation available.
|
|
3440 /// </summary>
|
|
3441 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3442 [DataMemberAttribute()]
|
|
3443 public Nullable<global::System.Decimal> Freight
|
|
3444 {
|
|
3445 get
|
|
3446 {
|
|
3447 return _Freight;
|
|
3448 }
|
|
3449 set
|
|
3450 {
|
|
3451 OnFreightChanging(value);
|
|
3452 ReportPropertyChanging("Freight");
|
|
3453 _Freight = StructuralObject.SetValidValue(value);
|
|
3454 ReportPropertyChanged("Freight");
|
|
3455 OnFreightChanged();
|
|
3456 }
|
|
3457 }
|
|
3458 private Nullable<global::System.Decimal> _Freight;
|
|
3459 partial void OnFreightChanging(Nullable<global::System.Decimal> value);
|
|
3460 partial void OnFreightChanged();
|
|
3461
|
|
3462 /// <summary>
|
|
3463 /// No Metadata Documentation available.
|
|
3464 /// </summary>
|
|
3465 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3466 [DataMemberAttribute()]
|
|
3467 public global::System.String ShipName
|
|
3468 {
|
|
3469 get
|
|
3470 {
|
|
3471 return _ShipName;
|
|
3472 }
|
|
3473 set
|
|
3474 {
|
|
3475 OnShipNameChanging(value);
|
|
3476 ReportPropertyChanging("ShipName");
|
|
3477 _ShipName = StructuralObject.SetValidValue(value, true);
|
|
3478 ReportPropertyChanged("ShipName");
|
|
3479 OnShipNameChanged();
|
|
3480 }
|
|
3481 }
|
|
3482 private global::System.String _ShipName;
|
|
3483 partial void OnShipNameChanging(global::System.String value);
|
|
3484 partial void OnShipNameChanged();
|
|
3485
|
|
3486 /// <summary>
|
|
3487 /// No Metadata Documentation available.
|
|
3488 /// </summary>
|
|
3489 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3490 [DataMemberAttribute()]
|
|
3491 public global::System.String ShipAddress
|
|
3492 {
|
|
3493 get
|
|
3494 {
|
|
3495 return _ShipAddress;
|
|
3496 }
|
|
3497 set
|
|
3498 {
|
|
3499 OnShipAddressChanging(value);
|
|
3500 ReportPropertyChanging("ShipAddress");
|
|
3501 _ShipAddress = StructuralObject.SetValidValue(value, true);
|
|
3502 ReportPropertyChanged("ShipAddress");
|
|
3503 OnShipAddressChanged();
|
|
3504 }
|
|
3505 }
|
|
3506 private global::System.String _ShipAddress;
|
|
3507 partial void OnShipAddressChanging(global::System.String value);
|
|
3508 partial void OnShipAddressChanged();
|
|
3509
|
|
3510 /// <summary>
|
|
3511 /// No Metadata Documentation available.
|
|
3512 /// </summary>
|
|
3513 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3514 [DataMemberAttribute()]
|
|
3515 public global::System.String ShipCity
|
|
3516 {
|
|
3517 get
|
|
3518 {
|
|
3519 return _ShipCity;
|
|
3520 }
|
|
3521 set
|
|
3522 {
|
|
3523 OnShipCityChanging(value);
|
|
3524 ReportPropertyChanging("ShipCity");
|
|
3525 _ShipCity = StructuralObject.SetValidValue(value, true);
|
|
3526 ReportPropertyChanged("ShipCity");
|
|
3527 OnShipCityChanged();
|
|
3528 }
|
|
3529 }
|
|
3530 private global::System.String _ShipCity;
|
|
3531 partial void OnShipCityChanging(global::System.String value);
|
|
3532 partial void OnShipCityChanged();
|
|
3533
|
|
3534 /// <summary>
|
|
3535 /// No Metadata Documentation available.
|
|
3536 /// </summary>
|
|
3537 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3538 [DataMemberAttribute()]
|
|
3539 public global::System.String ShipRegion
|
|
3540 {
|
|
3541 get
|
|
3542 {
|
|
3543 return _ShipRegion;
|
|
3544 }
|
|
3545 set
|
|
3546 {
|
|
3547 OnShipRegionChanging(value);
|
|
3548 ReportPropertyChanging("ShipRegion");
|
|
3549 _ShipRegion = StructuralObject.SetValidValue(value, true);
|
|
3550 ReportPropertyChanged("ShipRegion");
|
|
3551 OnShipRegionChanged();
|
|
3552 }
|
|
3553 }
|
|
3554 private global::System.String _ShipRegion;
|
|
3555 partial void OnShipRegionChanging(global::System.String value);
|
|
3556 partial void OnShipRegionChanged();
|
|
3557
|
|
3558 /// <summary>
|
|
3559 /// No Metadata Documentation available.
|
|
3560 /// </summary>
|
|
3561 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3562 [DataMemberAttribute()]
|
|
3563 public global::System.String ShipPostalCode
|
|
3564 {
|
|
3565 get
|
|
3566 {
|
|
3567 return _ShipPostalCode;
|
|
3568 }
|
|
3569 set
|
|
3570 {
|
|
3571 OnShipPostalCodeChanging(value);
|
|
3572 ReportPropertyChanging("ShipPostalCode");
|
|
3573 _ShipPostalCode = StructuralObject.SetValidValue(value, true);
|
|
3574 ReportPropertyChanged("ShipPostalCode");
|
|
3575 OnShipPostalCodeChanged();
|
|
3576 }
|
|
3577 }
|
|
3578 private global::System.String _ShipPostalCode;
|
|
3579 partial void OnShipPostalCodeChanging(global::System.String value);
|
|
3580 partial void OnShipPostalCodeChanged();
|
|
3581
|
|
3582 /// <summary>
|
|
3583 /// No Metadata Documentation available.
|
|
3584 /// </summary>
|
|
3585 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
3586 [DataMemberAttribute()]
|
|
3587 public global::System.String ShipCountry
|
|
3588 {
|
|
3589 get
|
|
3590 {
|
|
3591 return _ShipCountry;
|
|
3592 }
|
|
3593 set
|
|
3594 {
|
|
3595 OnShipCountryChanging(value);
|
|
3596 ReportPropertyChanging("ShipCountry");
|
|
3597 _ShipCountry = StructuralObject.SetValidValue(value, true);
|
|
3598 ReportPropertyChanged("ShipCountry");
|
|
3599 OnShipCountryChanged();
|
|
3600 }
|
|
3601 }
|
|
3602 private global::System.String _ShipCountry;
|
|
3603 partial void OnShipCountryChanging(global::System.String value);
|
|
3604 partial void OnShipCountryChanged();
|
|
3605
|
|
3606 #endregion
|
|
3607
|
|
3608
|
|
3609 #region Navigation Properties
|
|
3610
|
|
3611 /// <summary>
|
|
3612 /// No Metadata Documentation available.
|
|
3613 /// </summary>
|
|
3614 [XmlIgnoreAttribute()]
|
|
3615 [SoapIgnoreAttribute()]
|
|
3616 [DataMemberAttribute()]
|
|
3617 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Customers", "Customers")]
|
|
3618 public Customer Customer
|
|
3619 {
|
|
3620 get
|
|
3621 {
|
|
3622 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Customer>("NorthwindModel.FK_Orders_Customers", "Customers").Value;
|
|
3623 }
|
|
3624 set
|
|
3625 {
|
|
3626 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Customer>("NorthwindModel.FK_Orders_Customers", "Customers").Value = value;
|
|
3627 }
|
|
3628 }
|
|
3629 /// <summary>
|
|
3630 /// No Metadata Documentation available.
|
|
3631 /// </summary>
|
|
3632 [BrowsableAttribute(false)]
|
|
3633 [DataMemberAttribute()]
|
|
3634 public EntityReference<Customer> CustomerReference
|
|
3635 {
|
|
3636 get
|
|
3637 {
|
|
3638 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Customer>("NorthwindModel.FK_Orders_Customers", "Customers");
|
|
3639 }
|
|
3640 set
|
|
3641 {
|
|
3642 if ((value != null))
|
|
3643 {
|
|
3644 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Customer>("NorthwindModel.FK_Orders_Customers", "Customers", value);
|
|
3645 }
|
|
3646 }
|
|
3647 }
|
|
3648
|
|
3649 /// <summary>
|
|
3650 /// No Metadata Documentation available.
|
|
3651 /// </summary>
|
|
3652 [XmlIgnoreAttribute()]
|
|
3653 [SoapIgnoreAttribute()]
|
|
3654 [DataMemberAttribute()]
|
|
3655 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Employees", "Employees")]
|
|
3656 public Employee Employee
|
|
3657 {
|
|
3658 get
|
|
3659 {
|
|
3660 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Orders_Employees", "Employees").Value;
|
|
3661 }
|
|
3662 set
|
|
3663 {
|
|
3664 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Orders_Employees", "Employees").Value = value;
|
|
3665 }
|
|
3666 }
|
|
3667 /// <summary>
|
|
3668 /// No Metadata Documentation available.
|
|
3669 /// </summary>
|
|
3670 [BrowsableAttribute(false)]
|
|
3671 [DataMemberAttribute()]
|
|
3672 public EntityReference<Employee> EmployeeReference
|
|
3673 {
|
|
3674 get
|
|
3675 {
|
|
3676 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Orders_Employees", "Employees");
|
|
3677 }
|
|
3678 set
|
|
3679 {
|
|
3680 if ((value != null))
|
|
3681 {
|
|
3682 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Employee>("NorthwindModel.FK_Orders_Employees", "Employees", value);
|
|
3683 }
|
|
3684 }
|
|
3685 }
|
|
3686
|
|
3687 /// <summary>
|
|
3688 /// No Metadata Documentation available.
|
|
3689 /// </summary>
|
|
3690 [XmlIgnoreAttribute()]
|
|
3691 [SoapIgnoreAttribute()]
|
|
3692 [DataMemberAttribute()]
|
|
3693 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Orders", "Order_Details")]
|
|
3694 public EntityCollection<Order_Detail> Order_Details
|
|
3695 {
|
|
3696 get
|
|
3697 {
|
|
3698 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order_Detail>("NorthwindModel.FK_Order_Details_Orders", "Order_Details");
|
|
3699 }
|
|
3700 set
|
|
3701 {
|
|
3702 if ((value != null))
|
|
3703 {
|
|
3704 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order_Detail>("NorthwindModel.FK_Order_Details_Orders", "Order_Details", value);
|
|
3705 }
|
|
3706 }
|
|
3707 }
|
|
3708
|
|
3709 /// <summary>
|
|
3710 /// No Metadata Documentation available.
|
|
3711 /// </summary>
|
|
3712 [XmlIgnoreAttribute()]
|
|
3713 [SoapIgnoreAttribute()]
|
|
3714 [DataMemberAttribute()]
|
|
3715 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Shippers", "Shippers")]
|
|
3716 public Shipper Shipper
|
|
3717 {
|
|
3718 get
|
|
3719 {
|
|
3720 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Shipper>("NorthwindModel.FK_Orders_Shippers", "Shippers").Value;
|
|
3721 }
|
|
3722 set
|
|
3723 {
|
|
3724 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Shipper>("NorthwindModel.FK_Orders_Shippers", "Shippers").Value = value;
|
|
3725 }
|
|
3726 }
|
|
3727 /// <summary>
|
|
3728 /// No Metadata Documentation available.
|
|
3729 /// </summary>
|
|
3730 [BrowsableAttribute(false)]
|
|
3731 [DataMemberAttribute()]
|
|
3732 public EntityReference<Shipper> ShipperReference
|
|
3733 {
|
|
3734 get
|
|
3735 {
|
|
3736 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Shipper>("NorthwindModel.FK_Orders_Shippers", "Shippers");
|
|
3737 }
|
|
3738 set
|
|
3739 {
|
|
3740 if ((value != null))
|
|
3741 {
|
|
3742 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Shipper>("NorthwindModel.FK_Orders_Shippers", "Shippers", value);
|
|
3743 }
|
|
3744 }
|
|
3745 }
|
|
3746
|
|
3747 #endregion
|
|
3748
|
|
3749 }
|
|
3750
|
|
3751 /// <summary>
|
|
3752 /// No Metadata Documentation available.
|
|
3753 /// </summary>
|
|
3754 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order_Detail")]
|
|
3755 [Serializable()]
|
|
3756 [DataContractAttribute(IsReference=true)]
|
|
3757 public partial class Order_Detail : EntityObject
|
|
3758 {
|
|
3759 #region Factory Method
|
|
3760
|
|
3761 /// <summary>
|
|
3762 /// Create a new Order_Detail object.
|
|
3763 /// </summary>
|
|
3764 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
3765 /// <param name="productID">Initial value of the ProductID property.</param>
|
|
3766 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
|
|
3767 /// <param name="quantity">Initial value of the Quantity property.</param>
|
|
3768 /// <param name="discount">Initial value of the Discount property.</param>
|
|
3769 public static Order_Detail CreateOrder_Detail(global::System.Int32 orderID, global::System.Int32 productID, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount)
|
|
3770 {
|
|
3771 Order_Detail order_Detail = new Order_Detail();
|
|
3772 order_Detail.OrderID = orderID;
|
|
3773 order_Detail.ProductID = productID;
|
|
3774 order_Detail.UnitPrice = unitPrice;
|
|
3775 order_Detail.Quantity = quantity;
|
|
3776 order_Detail.Discount = discount;
|
|
3777 return order_Detail;
|
|
3778 }
|
|
3779
|
|
3780 #endregion
|
|
3781
|
|
3782 #region Primitive Properties
|
|
3783
|
|
3784 /// <summary>
|
|
3785 /// No Metadata Documentation available.
|
|
3786 /// </summary>
|
|
3787 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3788 [DataMemberAttribute()]
|
|
3789 public global::System.Int32 OrderID
|
|
3790 {
|
|
3791 get
|
|
3792 {
|
|
3793 return _OrderID;
|
|
3794 }
|
|
3795 set
|
|
3796 {
|
|
3797 if (_OrderID != value)
|
|
3798 {
|
|
3799 OnOrderIDChanging(value);
|
|
3800 ReportPropertyChanging("OrderID");
|
|
3801 _OrderID = StructuralObject.SetValidValue(value);
|
|
3802 ReportPropertyChanged("OrderID");
|
|
3803 OnOrderIDChanged();
|
|
3804 }
|
|
3805 }
|
|
3806 }
|
|
3807 private global::System.Int32 _OrderID;
|
|
3808 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
3809 partial void OnOrderIDChanged();
|
|
3810
|
|
3811 /// <summary>
|
|
3812 /// No Metadata Documentation available.
|
|
3813 /// </summary>
|
|
3814 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
3815 [DataMemberAttribute()]
|
|
3816 public global::System.Int32 ProductID
|
|
3817 {
|
|
3818 get
|
|
3819 {
|
|
3820 return _ProductID;
|
|
3821 }
|
|
3822 set
|
|
3823 {
|
|
3824 if (_ProductID != value)
|
|
3825 {
|
|
3826 OnProductIDChanging(value);
|
|
3827 ReportPropertyChanging("ProductID");
|
|
3828 _ProductID = StructuralObject.SetValidValue(value);
|
|
3829 ReportPropertyChanged("ProductID");
|
|
3830 OnProductIDChanged();
|
|
3831 }
|
|
3832 }
|
|
3833 }
|
|
3834 private global::System.Int32 _ProductID;
|
|
3835 partial void OnProductIDChanging(global::System.Int32 value);
|
|
3836 partial void OnProductIDChanged();
|
|
3837
|
|
3838 /// <summary>
|
|
3839 /// No Metadata Documentation available.
|
|
3840 /// </summary>
|
|
3841 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
3842 [DataMemberAttribute()]
|
|
3843 public global::System.Decimal UnitPrice
|
|
3844 {
|
|
3845 get
|
|
3846 {
|
|
3847 return _UnitPrice;
|
|
3848 }
|
|
3849 set
|
|
3850 {
|
|
3851 OnUnitPriceChanging(value);
|
|
3852 ReportPropertyChanging("UnitPrice");
|
|
3853 _UnitPrice = StructuralObject.SetValidValue(value);
|
|
3854 ReportPropertyChanged("UnitPrice");
|
|
3855 OnUnitPriceChanged();
|
|
3856 }
|
|
3857 }
|
|
3858 private global::System.Decimal _UnitPrice;
|
|
3859 partial void OnUnitPriceChanging(global::System.Decimal value);
|
|
3860 partial void OnUnitPriceChanged();
|
|
3861
|
|
3862 /// <summary>
|
|
3863 /// No Metadata Documentation available.
|
|
3864 /// </summary>
|
|
3865 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
3866 [DataMemberAttribute()]
|
|
3867 public global::System.Int16 Quantity
|
|
3868 {
|
|
3869 get
|
|
3870 {
|
|
3871 return _Quantity;
|
|
3872 }
|
|
3873 set
|
|
3874 {
|
|
3875 OnQuantityChanging(value);
|
|
3876 ReportPropertyChanging("Quantity");
|
|
3877 _Quantity = StructuralObject.SetValidValue(value);
|
|
3878 ReportPropertyChanged("Quantity");
|
|
3879 OnQuantityChanged();
|
|
3880 }
|
|
3881 }
|
|
3882 private global::System.Int16 _Quantity;
|
|
3883 partial void OnQuantityChanging(global::System.Int16 value);
|
|
3884 partial void OnQuantityChanged();
|
|
3885
|
|
3886 /// <summary>
|
|
3887 /// No Metadata Documentation available.
|
|
3888 /// </summary>
|
|
3889 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
3890 [DataMemberAttribute()]
|
|
3891 public global::System.Single Discount
|
|
3892 {
|
|
3893 get
|
|
3894 {
|
|
3895 return _Discount;
|
|
3896 }
|
|
3897 set
|
|
3898 {
|
|
3899 OnDiscountChanging(value);
|
|
3900 ReportPropertyChanging("Discount");
|
|
3901 _Discount = StructuralObject.SetValidValue(value);
|
|
3902 ReportPropertyChanged("Discount");
|
|
3903 OnDiscountChanged();
|
|
3904 }
|
|
3905 }
|
|
3906 private global::System.Single _Discount;
|
|
3907 partial void OnDiscountChanging(global::System.Single value);
|
|
3908 partial void OnDiscountChanged();
|
|
3909
|
|
3910 #endregion
|
|
3911
|
|
3912
|
|
3913 #region Navigation Properties
|
|
3914
|
|
3915 /// <summary>
|
|
3916 /// No Metadata Documentation available.
|
|
3917 /// </summary>
|
|
3918 [XmlIgnoreAttribute()]
|
|
3919 [SoapIgnoreAttribute()]
|
|
3920 [DataMemberAttribute()]
|
|
3921 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Orders", "Orders")]
|
|
3922 public Order Order
|
|
3923 {
|
|
3924 get
|
|
3925 {
|
|
3926 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Order>("NorthwindModel.FK_Order_Details_Orders", "Orders").Value;
|
|
3927 }
|
|
3928 set
|
|
3929 {
|
|
3930 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Order>("NorthwindModel.FK_Order_Details_Orders", "Orders").Value = value;
|
|
3931 }
|
|
3932 }
|
|
3933 /// <summary>
|
|
3934 /// No Metadata Documentation available.
|
|
3935 /// </summary>
|
|
3936 [BrowsableAttribute(false)]
|
|
3937 [DataMemberAttribute()]
|
|
3938 public EntityReference<Order> OrderReference
|
|
3939 {
|
|
3940 get
|
|
3941 {
|
|
3942 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Order>("NorthwindModel.FK_Order_Details_Orders", "Orders");
|
|
3943 }
|
|
3944 set
|
|
3945 {
|
|
3946 if ((value != null))
|
|
3947 {
|
|
3948 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Order>("NorthwindModel.FK_Order_Details_Orders", "Orders", value);
|
|
3949 }
|
|
3950 }
|
|
3951 }
|
|
3952
|
|
3953 /// <summary>
|
|
3954 /// No Metadata Documentation available.
|
|
3955 /// </summary>
|
|
3956 [XmlIgnoreAttribute()]
|
|
3957 [SoapIgnoreAttribute()]
|
|
3958 [DataMemberAttribute()]
|
|
3959 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Products", "Products")]
|
|
3960 public Product Product
|
|
3961 {
|
|
3962 get
|
|
3963 {
|
|
3964 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Product>("NorthwindModel.FK_Order_Details_Products", "Products").Value;
|
|
3965 }
|
|
3966 set
|
|
3967 {
|
|
3968 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Product>("NorthwindModel.FK_Order_Details_Products", "Products").Value = value;
|
|
3969 }
|
|
3970 }
|
|
3971 /// <summary>
|
|
3972 /// No Metadata Documentation available.
|
|
3973 /// </summary>
|
|
3974 [BrowsableAttribute(false)]
|
|
3975 [DataMemberAttribute()]
|
|
3976 public EntityReference<Product> ProductReference
|
|
3977 {
|
|
3978 get
|
|
3979 {
|
|
3980 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Product>("NorthwindModel.FK_Order_Details_Products", "Products");
|
|
3981 }
|
|
3982 set
|
|
3983 {
|
|
3984 if ((value != null))
|
|
3985 {
|
|
3986 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Product>("NorthwindModel.FK_Order_Details_Products", "Products", value);
|
|
3987 }
|
|
3988 }
|
|
3989 }
|
|
3990
|
|
3991 #endregion
|
|
3992
|
|
3993 }
|
|
3994
|
|
3995 /// <summary>
|
|
3996 /// No Metadata Documentation available.
|
|
3997 /// </summary>
|
|
3998 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order_Details_Extended")]
|
|
3999 [Serializable()]
|
|
4000 [DataContractAttribute(IsReference=true)]
|
|
4001 public partial class Order_Details_Extended : EntityObject
|
|
4002 {
|
|
4003 #region Factory Method
|
|
4004
|
|
4005 /// <summary>
|
|
4006 /// Create a new Order_Details_Extended object.
|
|
4007 /// </summary>
|
|
4008 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
4009 /// <param name="productID">Initial value of the ProductID property.</param>
|
|
4010 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
4011 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
|
|
4012 /// <param name="quantity">Initial value of the Quantity property.</param>
|
|
4013 /// <param name="discount">Initial value of the Discount property.</param>
|
|
4014 public static Order_Details_Extended CreateOrder_Details_Extended(global::System.Int32 orderID, global::System.Int32 productID, global::System.String productName, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount)
|
|
4015 {
|
|
4016 Order_Details_Extended order_Details_Extended = new Order_Details_Extended();
|
|
4017 order_Details_Extended.OrderID = orderID;
|
|
4018 order_Details_Extended.ProductID = productID;
|
|
4019 order_Details_Extended.ProductName = productName;
|
|
4020 order_Details_Extended.UnitPrice = unitPrice;
|
|
4021 order_Details_Extended.Quantity = quantity;
|
|
4022 order_Details_Extended.Discount = discount;
|
|
4023 return order_Details_Extended;
|
|
4024 }
|
|
4025
|
|
4026 #endregion
|
|
4027
|
|
4028 #region Primitive Properties
|
|
4029
|
|
4030 /// <summary>
|
|
4031 /// No Metadata Documentation available.
|
|
4032 /// </summary>
|
|
4033 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4034 [DataMemberAttribute()]
|
|
4035 public global::System.Int32 OrderID
|
|
4036 {
|
|
4037 get
|
|
4038 {
|
|
4039 return _OrderID;
|
|
4040 }
|
|
4041 set
|
|
4042 {
|
|
4043 if (_OrderID != value)
|
|
4044 {
|
|
4045 OnOrderIDChanging(value);
|
|
4046 ReportPropertyChanging("OrderID");
|
|
4047 _OrderID = StructuralObject.SetValidValue(value);
|
|
4048 ReportPropertyChanged("OrderID");
|
|
4049 OnOrderIDChanged();
|
|
4050 }
|
|
4051 }
|
|
4052 }
|
|
4053 private global::System.Int32 _OrderID;
|
|
4054 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
4055 partial void OnOrderIDChanged();
|
|
4056
|
|
4057 /// <summary>
|
|
4058 /// No Metadata Documentation available.
|
|
4059 /// </summary>
|
|
4060 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4061 [DataMemberAttribute()]
|
|
4062 public global::System.Int32 ProductID
|
|
4063 {
|
|
4064 get
|
|
4065 {
|
|
4066 return _ProductID;
|
|
4067 }
|
|
4068 set
|
|
4069 {
|
|
4070 if (_ProductID != value)
|
|
4071 {
|
|
4072 OnProductIDChanging(value);
|
|
4073 ReportPropertyChanging("ProductID");
|
|
4074 _ProductID = StructuralObject.SetValidValue(value);
|
|
4075 ReportPropertyChanged("ProductID");
|
|
4076 OnProductIDChanged();
|
|
4077 }
|
|
4078 }
|
|
4079 }
|
|
4080 private global::System.Int32 _ProductID;
|
|
4081 partial void OnProductIDChanging(global::System.Int32 value);
|
|
4082 partial void OnProductIDChanged();
|
|
4083
|
|
4084 /// <summary>
|
|
4085 /// No Metadata Documentation available.
|
|
4086 /// </summary>
|
|
4087 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4088 [DataMemberAttribute()]
|
|
4089 public global::System.String ProductName
|
|
4090 {
|
|
4091 get
|
|
4092 {
|
|
4093 return _ProductName;
|
|
4094 }
|
|
4095 set
|
|
4096 {
|
|
4097 if (_ProductName != value)
|
|
4098 {
|
|
4099 OnProductNameChanging(value);
|
|
4100 ReportPropertyChanging("ProductName");
|
|
4101 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
4102 ReportPropertyChanged("ProductName");
|
|
4103 OnProductNameChanged();
|
|
4104 }
|
|
4105 }
|
|
4106 }
|
|
4107 private global::System.String _ProductName;
|
|
4108 partial void OnProductNameChanging(global::System.String value);
|
|
4109 partial void OnProductNameChanged();
|
|
4110
|
|
4111 /// <summary>
|
|
4112 /// No Metadata Documentation available.
|
|
4113 /// </summary>
|
|
4114 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4115 [DataMemberAttribute()]
|
|
4116 public global::System.Decimal UnitPrice
|
|
4117 {
|
|
4118 get
|
|
4119 {
|
|
4120 return _UnitPrice;
|
|
4121 }
|
|
4122 set
|
|
4123 {
|
|
4124 if (_UnitPrice != value)
|
|
4125 {
|
|
4126 OnUnitPriceChanging(value);
|
|
4127 ReportPropertyChanging("UnitPrice");
|
|
4128 _UnitPrice = StructuralObject.SetValidValue(value);
|
|
4129 ReportPropertyChanged("UnitPrice");
|
|
4130 OnUnitPriceChanged();
|
|
4131 }
|
|
4132 }
|
|
4133 }
|
|
4134 private global::System.Decimal _UnitPrice;
|
|
4135 partial void OnUnitPriceChanging(global::System.Decimal value);
|
|
4136 partial void OnUnitPriceChanged();
|
|
4137
|
|
4138 /// <summary>
|
|
4139 /// No Metadata Documentation available.
|
|
4140 /// </summary>
|
|
4141 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4142 [DataMemberAttribute()]
|
|
4143 public global::System.Int16 Quantity
|
|
4144 {
|
|
4145 get
|
|
4146 {
|
|
4147 return _Quantity;
|
|
4148 }
|
|
4149 set
|
|
4150 {
|
|
4151 if (_Quantity != value)
|
|
4152 {
|
|
4153 OnQuantityChanging(value);
|
|
4154 ReportPropertyChanging("Quantity");
|
|
4155 _Quantity = StructuralObject.SetValidValue(value);
|
|
4156 ReportPropertyChanged("Quantity");
|
|
4157 OnQuantityChanged();
|
|
4158 }
|
|
4159 }
|
|
4160 }
|
|
4161 private global::System.Int16 _Quantity;
|
|
4162 partial void OnQuantityChanging(global::System.Int16 value);
|
|
4163 partial void OnQuantityChanged();
|
|
4164
|
|
4165 /// <summary>
|
|
4166 /// No Metadata Documentation available.
|
|
4167 /// </summary>
|
|
4168 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4169 [DataMemberAttribute()]
|
|
4170 public global::System.Single Discount
|
|
4171 {
|
|
4172 get
|
|
4173 {
|
|
4174 return _Discount;
|
|
4175 }
|
|
4176 set
|
|
4177 {
|
|
4178 if (_Discount != value)
|
|
4179 {
|
|
4180 OnDiscountChanging(value);
|
|
4181 ReportPropertyChanging("Discount");
|
|
4182 _Discount = StructuralObject.SetValidValue(value);
|
|
4183 ReportPropertyChanged("Discount");
|
|
4184 OnDiscountChanged();
|
|
4185 }
|
|
4186 }
|
|
4187 }
|
|
4188 private global::System.Single _Discount;
|
|
4189 partial void OnDiscountChanging(global::System.Single value);
|
|
4190 partial void OnDiscountChanged();
|
|
4191
|
|
4192 /// <summary>
|
|
4193 /// No Metadata Documentation available.
|
|
4194 /// </summary>
|
|
4195 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4196 [DataMemberAttribute()]
|
|
4197 public Nullable<global::System.Decimal> ExtendedPrice
|
|
4198 {
|
|
4199 get
|
|
4200 {
|
|
4201 return _ExtendedPrice;
|
|
4202 }
|
|
4203 set
|
|
4204 {
|
|
4205 OnExtendedPriceChanging(value);
|
|
4206 ReportPropertyChanging("ExtendedPrice");
|
|
4207 _ExtendedPrice = StructuralObject.SetValidValue(value);
|
|
4208 ReportPropertyChanged("ExtendedPrice");
|
|
4209 OnExtendedPriceChanged();
|
|
4210 }
|
|
4211 }
|
|
4212 private Nullable<global::System.Decimal> _ExtendedPrice;
|
|
4213 partial void OnExtendedPriceChanging(Nullable<global::System.Decimal> value);
|
|
4214 partial void OnExtendedPriceChanged();
|
|
4215
|
|
4216 #endregion
|
|
4217
|
|
4218
|
|
4219 }
|
|
4220
|
|
4221 /// <summary>
|
|
4222 /// No Metadata Documentation available.
|
|
4223 /// </summary>
|
|
4224 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order_Subtotal")]
|
|
4225 [Serializable()]
|
|
4226 [DataContractAttribute(IsReference=true)]
|
|
4227 public partial class Order_Subtotal : EntityObject
|
|
4228 {
|
|
4229 #region Factory Method
|
|
4230
|
|
4231 /// <summary>
|
|
4232 /// Create a new Order_Subtotal object.
|
|
4233 /// </summary>
|
|
4234 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
4235 public static Order_Subtotal CreateOrder_Subtotal(global::System.Int32 orderID)
|
|
4236 {
|
|
4237 Order_Subtotal order_Subtotal = new Order_Subtotal();
|
|
4238 order_Subtotal.OrderID = orderID;
|
|
4239 return order_Subtotal;
|
|
4240 }
|
|
4241
|
|
4242 #endregion
|
|
4243
|
|
4244 #region Primitive Properties
|
|
4245
|
|
4246 /// <summary>
|
|
4247 /// No Metadata Documentation available.
|
|
4248 /// </summary>
|
|
4249 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4250 [DataMemberAttribute()]
|
|
4251 public global::System.Int32 OrderID
|
|
4252 {
|
|
4253 get
|
|
4254 {
|
|
4255 return _OrderID;
|
|
4256 }
|
|
4257 set
|
|
4258 {
|
|
4259 if (_OrderID != value)
|
|
4260 {
|
|
4261 OnOrderIDChanging(value);
|
|
4262 ReportPropertyChanging("OrderID");
|
|
4263 _OrderID = StructuralObject.SetValidValue(value);
|
|
4264 ReportPropertyChanged("OrderID");
|
|
4265 OnOrderIDChanged();
|
|
4266 }
|
|
4267 }
|
|
4268 }
|
|
4269 private global::System.Int32 _OrderID;
|
|
4270 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
4271 partial void OnOrderIDChanged();
|
|
4272
|
|
4273 /// <summary>
|
|
4274 /// No Metadata Documentation available.
|
|
4275 /// </summary>
|
|
4276 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4277 [DataMemberAttribute()]
|
|
4278 public Nullable<global::System.Decimal> Subtotal
|
|
4279 {
|
|
4280 get
|
|
4281 {
|
|
4282 return _Subtotal;
|
|
4283 }
|
|
4284 set
|
|
4285 {
|
|
4286 OnSubtotalChanging(value);
|
|
4287 ReportPropertyChanging("Subtotal");
|
|
4288 _Subtotal = StructuralObject.SetValidValue(value);
|
|
4289 ReportPropertyChanged("Subtotal");
|
|
4290 OnSubtotalChanged();
|
|
4291 }
|
|
4292 }
|
|
4293 private Nullable<global::System.Decimal> _Subtotal;
|
|
4294 partial void OnSubtotalChanging(Nullable<global::System.Decimal> value);
|
|
4295 partial void OnSubtotalChanged();
|
|
4296
|
|
4297 #endregion
|
|
4298
|
|
4299
|
|
4300 }
|
|
4301
|
|
4302 /// <summary>
|
|
4303 /// No Metadata Documentation available.
|
|
4304 /// </summary>
|
|
4305 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Orders_Qry")]
|
|
4306 [Serializable()]
|
|
4307 [DataContractAttribute(IsReference=true)]
|
|
4308 public partial class Orders_Qry : EntityObject
|
|
4309 {
|
|
4310 #region Factory Method
|
|
4311
|
|
4312 /// <summary>
|
|
4313 /// Create a new Orders_Qry object.
|
|
4314 /// </summary>
|
|
4315 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
4316 /// <param name="companyName">Initial value of the CompanyName property.</param>
|
|
4317 public static Orders_Qry CreateOrders_Qry(global::System.Int32 orderID, global::System.String companyName)
|
|
4318 {
|
|
4319 Orders_Qry orders_Qry = new Orders_Qry();
|
|
4320 orders_Qry.OrderID = orderID;
|
|
4321 orders_Qry.CompanyName = companyName;
|
|
4322 return orders_Qry;
|
|
4323 }
|
|
4324
|
|
4325 #endregion
|
|
4326
|
|
4327 #region Primitive Properties
|
|
4328
|
|
4329 /// <summary>
|
|
4330 /// No Metadata Documentation available.
|
|
4331 /// </summary>
|
|
4332 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4333 [DataMemberAttribute()]
|
|
4334 public global::System.Int32 OrderID
|
|
4335 {
|
|
4336 get
|
|
4337 {
|
|
4338 return _OrderID;
|
|
4339 }
|
|
4340 set
|
|
4341 {
|
|
4342 if (_OrderID != value)
|
|
4343 {
|
|
4344 OnOrderIDChanging(value);
|
|
4345 ReportPropertyChanging("OrderID");
|
|
4346 _OrderID = StructuralObject.SetValidValue(value);
|
|
4347 ReportPropertyChanged("OrderID");
|
|
4348 OnOrderIDChanged();
|
|
4349 }
|
|
4350 }
|
|
4351 }
|
|
4352 private global::System.Int32 _OrderID;
|
|
4353 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
4354 partial void OnOrderIDChanged();
|
|
4355
|
|
4356 /// <summary>
|
|
4357 /// No Metadata Documentation available.
|
|
4358 /// </summary>
|
|
4359 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4360 [DataMemberAttribute()]
|
|
4361 public global::System.String CustomerID
|
|
4362 {
|
|
4363 get
|
|
4364 {
|
|
4365 return _CustomerID;
|
|
4366 }
|
|
4367 set
|
|
4368 {
|
|
4369 OnCustomerIDChanging(value);
|
|
4370 ReportPropertyChanging("CustomerID");
|
|
4371 _CustomerID = StructuralObject.SetValidValue(value, true);
|
|
4372 ReportPropertyChanged("CustomerID");
|
|
4373 OnCustomerIDChanged();
|
|
4374 }
|
|
4375 }
|
|
4376 private global::System.String _CustomerID;
|
|
4377 partial void OnCustomerIDChanging(global::System.String value);
|
|
4378 partial void OnCustomerIDChanged();
|
|
4379
|
|
4380 /// <summary>
|
|
4381 /// No Metadata Documentation available.
|
|
4382 /// </summary>
|
|
4383 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4384 [DataMemberAttribute()]
|
|
4385 public Nullable<global::System.Int32> EmployeeID
|
|
4386 {
|
|
4387 get
|
|
4388 {
|
|
4389 return _EmployeeID;
|
|
4390 }
|
|
4391 set
|
|
4392 {
|
|
4393 OnEmployeeIDChanging(value);
|
|
4394 ReportPropertyChanging("EmployeeID");
|
|
4395 _EmployeeID = StructuralObject.SetValidValue(value);
|
|
4396 ReportPropertyChanged("EmployeeID");
|
|
4397 OnEmployeeIDChanged();
|
|
4398 }
|
|
4399 }
|
|
4400 private Nullable<global::System.Int32> _EmployeeID;
|
|
4401 partial void OnEmployeeIDChanging(Nullable<global::System.Int32> value);
|
|
4402 partial void OnEmployeeIDChanged();
|
|
4403
|
|
4404 /// <summary>
|
|
4405 /// No Metadata Documentation available.
|
|
4406 /// </summary>
|
|
4407 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4408 [DataMemberAttribute()]
|
|
4409 public Nullable<global::System.DateTime> OrderDate
|
|
4410 {
|
|
4411 get
|
|
4412 {
|
|
4413 return _OrderDate;
|
|
4414 }
|
|
4415 set
|
|
4416 {
|
|
4417 OnOrderDateChanging(value);
|
|
4418 ReportPropertyChanging("OrderDate");
|
|
4419 _OrderDate = StructuralObject.SetValidValue(value);
|
|
4420 ReportPropertyChanged("OrderDate");
|
|
4421 OnOrderDateChanged();
|
|
4422 }
|
|
4423 }
|
|
4424 private Nullable<global::System.DateTime> _OrderDate;
|
|
4425 partial void OnOrderDateChanging(Nullable<global::System.DateTime> value);
|
|
4426 partial void OnOrderDateChanged();
|
|
4427
|
|
4428 /// <summary>
|
|
4429 /// No Metadata Documentation available.
|
|
4430 /// </summary>
|
|
4431 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4432 [DataMemberAttribute()]
|
|
4433 public Nullable<global::System.DateTime> RequiredDate
|
|
4434 {
|
|
4435 get
|
|
4436 {
|
|
4437 return _RequiredDate;
|
|
4438 }
|
|
4439 set
|
|
4440 {
|
|
4441 OnRequiredDateChanging(value);
|
|
4442 ReportPropertyChanging("RequiredDate");
|
|
4443 _RequiredDate = StructuralObject.SetValidValue(value);
|
|
4444 ReportPropertyChanged("RequiredDate");
|
|
4445 OnRequiredDateChanged();
|
|
4446 }
|
|
4447 }
|
|
4448 private Nullable<global::System.DateTime> _RequiredDate;
|
|
4449 partial void OnRequiredDateChanging(Nullable<global::System.DateTime> value);
|
|
4450 partial void OnRequiredDateChanged();
|
|
4451
|
|
4452 /// <summary>
|
|
4453 /// No Metadata Documentation available.
|
|
4454 /// </summary>
|
|
4455 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4456 [DataMemberAttribute()]
|
|
4457 public Nullable<global::System.DateTime> ShippedDate
|
|
4458 {
|
|
4459 get
|
|
4460 {
|
|
4461 return _ShippedDate;
|
|
4462 }
|
|
4463 set
|
|
4464 {
|
|
4465 OnShippedDateChanging(value);
|
|
4466 ReportPropertyChanging("ShippedDate");
|
|
4467 _ShippedDate = StructuralObject.SetValidValue(value);
|
|
4468 ReportPropertyChanged("ShippedDate");
|
|
4469 OnShippedDateChanged();
|
|
4470 }
|
|
4471 }
|
|
4472 private Nullable<global::System.DateTime> _ShippedDate;
|
|
4473 partial void OnShippedDateChanging(Nullable<global::System.DateTime> value);
|
|
4474 partial void OnShippedDateChanged();
|
|
4475
|
|
4476 /// <summary>
|
|
4477 /// No Metadata Documentation available.
|
|
4478 /// </summary>
|
|
4479 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4480 [DataMemberAttribute()]
|
|
4481 public Nullable<global::System.Int32> ShipVia
|
|
4482 {
|
|
4483 get
|
|
4484 {
|
|
4485 return _ShipVia;
|
|
4486 }
|
|
4487 set
|
|
4488 {
|
|
4489 OnShipViaChanging(value);
|
|
4490 ReportPropertyChanging("ShipVia");
|
|
4491 _ShipVia = StructuralObject.SetValidValue(value);
|
|
4492 ReportPropertyChanged("ShipVia");
|
|
4493 OnShipViaChanged();
|
|
4494 }
|
|
4495 }
|
|
4496 private Nullable<global::System.Int32> _ShipVia;
|
|
4497 partial void OnShipViaChanging(Nullable<global::System.Int32> value);
|
|
4498 partial void OnShipViaChanged();
|
|
4499
|
|
4500 /// <summary>
|
|
4501 /// No Metadata Documentation available.
|
|
4502 /// </summary>
|
|
4503 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4504 [DataMemberAttribute()]
|
|
4505 public Nullable<global::System.Decimal> Freight
|
|
4506 {
|
|
4507 get
|
|
4508 {
|
|
4509 return _Freight;
|
|
4510 }
|
|
4511 set
|
|
4512 {
|
|
4513 OnFreightChanging(value);
|
|
4514 ReportPropertyChanging("Freight");
|
|
4515 _Freight = StructuralObject.SetValidValue(value);
|
|
4516 ReportPropertyChanged("Freight");
|
|
4517 OnFreightChanged();
|
|
4518 }
|
|
4519 }
|
|
4520 private Nullable<global::System.Decimal> _Freight;
|
|
4521 partial void OnFreightChanging(Nullable<global::System.Decimal> value);
|
|
4522 partial void OnFreightChanged();
|
|
4523
|
|
4524 /// <summary>
|
|
4525 /// No Metadata Documentation available.
|
|
4526 /// </summary>
|
|
4527 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4528 [DataMemberAttribute()]
|
|
4529 public global::System.String ShipName
|
|
4530 {
|
|
4531 get
|
|
4532 {
|
|
4533 return _ShipName;
|
|
4534 }
|
|
4535 set
|
|
4536 {
|
|
4537 OnShipNameChanging(value);
|
|
4538 ReportPropertyChanging("ShipName");
|
|
4539 _ShipName = StructuralObject.SetValidValue(value, true);
|
|
4540 ReportPropertyChanged("ShipName");
|
|
4541 OnShipNameChanged();
|
|
4542 }
|
|
4543 }
|
|
4544 private global::System.String _ShipName;
|
|
4545 partial void OnShipNameChanging(global::System.String value);
|
|
4546 partial void OnShipNameChanged();
|
|
4547
|
|
4548 /// <summary>
|
|
4549 /// No Metadata Documentation available.
|
|
4550 /// </summary>
|
|
4551 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4552 [DataMemberAttribute()]
|
|
4553 public global::System.String ShipAddress
|
|
4554 {
|
|
4555 get
|
|
4556 {
|
|
4557 return _ShipAddress;
|
|
4558 }
|
|
4559 set
|
|
4560 {
|
|
4561 OnShipAddressChanging(value);
|
|
4562 ReportPropertyChanging("ShipAddress");
|
|
4563 _ShipAddress = StructuralObject.SetValidValue(value, true);
|
|
4564 ReportPropertyChanged("ShipAddress");
|
|
4565 OnShipAddressChanged();
|
|
4566 }
|
|
4567 }
|
|
4568 private global::System.String _ShipAddress;
|
|
4569 partial void OnShipAddressChanging(global::System.String value);
|
|
4570 partial void OnShipAddressChanged();
|
|
4571
|
|
4572 /// <summary>
|
|
4573 /// No Metadata Documentation available.
|
|
4574 /// </summary>
|
|
4575 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4576 [DataMemberAttribute()]
|
|
4577 public global::System.String ShipCity
|
|
4578 {
|
|
4579 get
|
|
4580 {
|
|
4581 return _ShipCity;
|
|
4582 }
|
|
4583 set
|
|
4584 {
|
|
4585 OnShipCityChanging(value);
|
|
4586 ReportPropertyChanging("ShipCity");
|
|
4587 _ShipCity = StructuralObject.SetValidValue(value, true);
|
|
4588 ReportPropertyChanged("ShipCity");
|
|
4589 OnShipCityChanged();
|
|
4590 }
|
|
4591 }
|
|
4592 private global::System.String _ShipCity;
|
|
4593 partial void OnShipCityChanging(global::System.String value);
|
|
4594 partial void OnShipCityChanged();
|
|
4595
|
|
4596 /// <summary>
|
|
4597 /// No Metadata Documentation available.
|
|
4598 /// </summary>
|
|
4599 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4600 [DataMemberAttribute()]
|
|
4601 public global::System.String ShipRegion
|
|
4602 {
|
|
4603 get
|
|
4604 {
|
|
4605 return _ShipRegion;
|
|
4606 }
|
|
4607 set
|
|
4608 {
|
|
4609 OnShipRegionChanging(value);
|
|
4610 ReportPropertyChanging("ShipRegion");
|
|
4611 _ShipRegion = StructuralObject.SetValidValue(value, true);
|
|
4612 ReportPropertyChanged("ShipRegion");
|
|
4613 OnShipRegionChanged();
|
|
4614 }
|
|
4615 }
|
|
4616 private global::System.String _ShipRegion;
|
|
4617 partial void OnShipRegionChanging(global::System.String value);
|
|
4618 partial void OnShipRegionChanged();
|
|
4619
|
|
4620 /// <summary>
|
|
4621 /// No Metadata Documentation available.
|
|
4622 /// </summary>
|
|
4623 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4624 [DataMemberAttribute()]
|
|
4625 public global::System.String ShipPostalCode
|
|
4626 {
|
|
4627 get
|
|
4628 {
|
|
4629 return _ShipPostalCode;
|
|
4630 }
|
|
4631 set
|
|
4632 {
|
|
4633 OnShipPostalCodeChanging(value);
|
|
4634 ReportPropertyChanging("ShipPostalCode");
|
|
4635 _ShipPostalCode = StructuralObject.SetValidValue(value, true);
|
|
4636 ReportPropertyChanged("ShipPostalCode");
|
|
4637 OnShipPostalCodeChanged();
|
|
4638 }
|
|
4639 }
|
|
4640 private global::System.String _ShipPostalCode;
|
|
4641 partial void OnShipPostalCodeChanging(global::System.String value);
|
|
4642 partial void OnShipPostalCodeChanged();
|
|
4643
|
|
4644 /// <summary>
|
|
4645 /// No Metadata Documentation available.
|
|
4646 /// </summary>
|
|
4647 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4648 [DataMemberAttribute()]
|
|
4649 public global::System.String ShipCountry
|
|
4650 {
|
|
4651 get
|
|
4652 {
|
|
4653 return _ShipCountry;
|
|
4654 }
|
|
4655 set
|
|
4656 {
|
|
4657 OnShipCountryChanging(value);
|
|
4658 ReportPropertyChanging("ShipCountry");
|
|
4659 _ShipCountry = StructuralObject.SetValidValue(value, true);
|
|
4660 ReportPropertyChanged("ShipCountry");
|
|
4661 OnShipCountryChanged();
|
|
4662 }
|
|
4663 }
|
|
4664 private global::System.String _ShipCountry;
|
|
4665 partial void OnShipCountryChanging(global::System.String value);
|
|
4666 partial void OnShipCountryChanged();
|
|
4667
|
|
4668 /// <summary>
|
|
4669 /// No Metadata Documentation available.
|
|
4670 /// </summary>
|
|
4671 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4672 [DataMemberAttribute()]
|
|
4673 public global::System.String CompanyName
|
|
4674 {
|
|
4675 get
|
|
4676 {
|
|
4677 return _CompanyName;
|
|
4678 }
|
|
4679 set
|
|
4680 {
|
|
4681 if (_CompanyName != value)
|
|
4682 {
|
|
4683 OnCompanyNameChanging(value);
|
|
4684 ReportPropertyChanging("CompanyName");
|
|
4685 _CompanyName = StructuralObject.SetValidValue(value, false);
|
|
4686 ReportPropertyChanged("CompanyName");
|
|
4687 OnCompanyNameChanged();
|
|
4688 }
|
|
4689 }
|
|
4690 }
|
|
4691 private global::System.String _CompanyName;
|
|
4692 partial void OnCompanyNameChanging(global::System.String value);
|
|
4693 partial void OnCompanyNameChanged();
|
|
4694
|
|
4695 /// <summary>
|
|
4696 /// No Metadata Documentation available.
|
|
4697 /// </summary>
|
|
4698 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4699 [DataMemberAttribute()]
|
|
4700 public global::System.String Address
|
|
4701 {
|
|
4702 get
|
|
4703 {
|
|
4704 return _Address;
|
|
4705 }
|
|
4706 set
|
|
4707 {
|
|
4708 OnAddressChanging(value);
|
|
4709 ReportPropertyChanging("Address");
|
|
4710 _Address = StructuralObject.SetValidValue(value, true);
|
|
4711 ReportPropertyChanged("Address");
|
|
4712 OnAddressChanged();
|
|
4713 }
|
|
4714 }
|
|
4715 private global::System.String _Address;
|
|
4716 partial void OnAddressChanging(global::System.String value);
|
|
4717 partial void OnAddressChanged();
|
|
4718
|
|
4719 /// <summary>
|
|
4720 /// No Metadata Documentation available.
|
|
4721 /// </summary>
|
|
4722 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4723 [DataMemberAttribute()]
|
|
4724 public global::System.String City
|
|
4725 {
|
|
4726 get
|
|
4727 {
|
|
4728 return _City;
|
|
4729 }
|
|
4730 set
|
|
4731 {
|
|
4732 OnCityChanging(value);
|
|
4733 ReportPropertyChanging("City");
|
|
4734 _City = StructuralObject.SetValidValue(value, true);
|
|
4735 ReportPropertyChanged("City");
|
|
4736 OnCityChanged();
|
|
4737 }
|
|
4738 }
|
|
4739 private global::System.String _City;
|
|
4740 partial void OnCityChanging(global::System.String value);
|
|
4741 partial void OnCityChanged();
|
|
4742
|
|
4743 /// <summary>
|
|
4744 /// No Metadata Documentation available.
|
|
4745 /// </summary>
|
|
4746 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4747 [DataMemberAttribute()]
|
|
4748 public global::System.String Region
|
|
4749 {
|
|
4750 get
|
|
4751 {
|
|
4752 return _Region;
|
|
4753 }
|
|
4754 set
|
|
4755 {
|
|
4756 OnRegionChanging(value);
|
|
4757 ReportPropertyChanging("Region");
|
|
4758 _Region = StructuralObject.SetValidValue(value, true);
|
|
4759 ReportPropertyChanged("Region");
|
|
4760 OnRegionChanged();
|
|
4761 }
|
|
4762 }
|
|
4763 private global::System.String _Region;
|
|
4764 partial void OnRegionChanging(global::System.String value);
|
|
4765 partial void OnRegionChanged();
|
|
4766
|
|
4767 /// <summary>
|
|
4768 /// No Metadata Documentation available.
|
|
4769 /// </summary>
|
|
4770 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4771 [DataMemberAttribute()]
|
|
4772 public global::System.String PostalCode
|
|
4773 {
|
|
4774 get
|
|
4775 {
|
|
4776 return _PostalCode;
|
|
4777 }
|
|
4778 set
|
|
4779 {
|
|
4780 OnPostalCodeChanging(value);
|
|
4781 ReportPropertyChanging("PostalCode");
|
|
4782 _PostalCode = StructuralObject.SetValidValue(value, true);
|
|
4783 ReportPropertyChanged("PostalCode");
|
|
4784 OnPostalCodeChanged();
|
|
4785 }
|
|
4786 }
|
|
4787 private global::System.String _PostalCode;
|
|
4788 partial void OnPostalCodeChanging(global::System.String value);
|
|
4789 partial void OnPostalCodeChanged();
|
|
4790
|
|
4791 /// <summary>
|
|
4792 /// No Metadata Documentation available.
|
|
4793 /// </summary>
|
|
4794 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4795 [DataMemberAttribute()]
|
|
4796 public global::System.String Country
|
|
4797 {
|
|
4798 get
|
|
4799 {
|
|
4800 return _Country;
|
|
4801 }
|
|
4802 set
|
|
4803 {
|
|
4804 OnCountryChanging(value);
|
|
4805 ReportPropertyChanging("Country");
|
|
4806 _Country = StructuralObject.SetValidValue(value, true);
|
|
4807 ReportPropertyChanged("Country");
|
|
4808 OnCountryChanged();
|
|
4809 }
|
|
4810 }
|
|
4811 private global::System.String _Country;
|
|
4812 partial void OnCountryChanging(global::System.String value);
|
|
4813 partial void OnCountryChanged();
|
|
4814
|
|
4815 #endregion
|
|
4816
|
|
4817
|
|
4818 }
|
|
4819
|
|
4820 /// <summary>
|
|
4821 /// No Metadata Documentation available.
|
|
4822 /// </summary>
|
|
4823 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Product")]
|
|
4824 [Serializable()]
|
|
4825 [DataContractAttribute(IsReference=true)]
|
|
4826 public partial class Product : EntityObject
|
|
4827 {
|
|
4828 #region Factory Method
|
|
4829
|
|
4830 /// <summary>
|
|
4831 /// Create a new Product object.
|
|
4832 /// </summary>
|
|
4833 /// <param name="productID">Initial value of the ProductID property.</param>
|
|
4834 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
4835 /// <param name="discontinued">Initial value of the Discontinued property.</param>
|
|
4836 public static Product CreateProduct(global::System.Int32 productID, global::System.String productName, global::System.Boolean discontinued)
|
|
4837 {
|
|
4838 Product product = new Product();
|
|
4839 product.ProductID = productID;
|
|
4840 product.ProductName = productName;
|
|
4841 product.Discontinued = discontinued;
|
|
4842 return product;
|
|
4843 }
|
|
4844
|
|
4845 #endregion
|
|
4846
|
|
4847 #region Primitive Properties
|
|
4848
|
|
4849 /// <summary>
|
|
4850 /// No Metadata Documentation available.
|
|
4851 /// </summary>
|
|
4852 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
4853 [DataMemberAttribute()]
|
|
4854 public global::System.Int32 ProductID
|
|
4855 {
|
|
4856 get
|
|
4857 {
|
|
4858 return _ProductID;
|
|
4859 }
|
|
4860 set
|
|
4861 {
|
|
4862 if (_ProductID != value)
|
|
4863 {
|
|
4864 OnProductIDChanging(value);
|
|
4865 ReportPropertyChanging("ProductID");
|
|
4866 _ProductID = StructuralObject.SetValidValue(value);
|
|
4867 ReportPropertyChanged("ProductID");
|
|
4868 OnProductIDChanged();
|
|
4869 }
|
|
4870 }
|
|
4871 }
|
|
4872 private global::System.Int32 _ProductID;
|
|
4873 partial void OnProductIDChanging(global::System.Int32 value);
|
|
4874 partial void OnProductIDChanged();
|
|
4875
|
|
4876 /// <summary>
|
|
4877 /// No Metadata Documentation available.
|
|
4878 /// </summary>
|
|
4879 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
4880 [DataMemberAttribute()]
|
|
4881 public global::System.String ProductName
|
|
4882 {
|
|
4883 get
|
|
4884 {
|
|
4885 return _ProductName;
|
|
4886 }
|
|
4887 set
|
|
4888 {
|
|
4889 OnProductNameChanging(value);
|
|
4890 ReportPropertyChanging("ProductName");
|
|
4891 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
4892 ReportPropertyChanged("ProductName");
|
|
4893 OnProductNameChanged();
|
|
4894 }
|
|
4895 }
|
|
4896 private global::System.String _ProductName;
|
|
4897 partial void OnProductNameChanging(global::System.String value);
|
|
4898 partial void OnProductNameChanged();
|
|
4899
|
|
4900 /// <summary>
|
|
4901 /// No Metadata Documentation available.
|
|
4902 /// </summary>
|
|
4903 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4904 [DataMemberAttribute()]
|
|
4905 public Nullable<global::System.Int32> SupplierID
|
|
4906 {
|
|
4907 get
|
|
4908 {
|
|
4909 return _SupplierID;
|
|
4910 }
|
|
4911 set
|
|
4912 {
|
|
4913 OnSupplierIDChanging(value);
|
|
4914 ReportPropertyChanging("SupplierID");
|
|
4915 _SupplierID = StructuralObject.SetValidValue(value);
|
|
4916 ReportPropertyChanged("SupplierID");
|
|
4917 OnSupplierIDChanged();
|
|
4918 }
|
|
4919 }
|
|
4920 private Nullable<global::System.Int32> _SupplierID;
|
|
4921 partial void OnSupplierIDChanging(Nullable<global::System.Int32> value);
|
|
4922 partial void OnSupplierIDChanged();
|
|
4923
|
|
4924 /// <summary>
|
|
4925 /// No Metadata Documentation available.
|
|
4926 /// </summary>
|
|
4927 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4928 [DataMemberAttribute()]
|
|
4929 public Nullable<global::System.Int32> CategoryID
|
|
4930 {
|
|
4931 get
|
|
4932 {
|
|
4933 return _CategoryID;
|
|
4934 }
|
|
4935 set
|
|
4936 {
|
|
4937 OnCategoryIDChanging(value);
|
|
4938 ReportPropertyChanging("CategoryID");
|
|
4939 _CategoryID = StructuralObject.SetValidValue(value);
|
|
4940 ReportPropertyChanged("CategoryID");
|
|
4941 OnCategoryIDChanged();
|
|
4942 }
|
|
4943 }
|
|
4944 private Nullable<global::System.Int32> _CategoryID;
|
|
4945 partial void OnCategoryIDChanging(Nullable<global::System.Int32> value);
|
|
4946 partial void OnCategoryIDChanged();
|
|
4947
|
|
4948 /// <summary>
|
|
4949 /// No Metadata Documentation available.
|
|
4950 /// </summary>
|
|
4951 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4952 [DataMemberAttribute()]
|
|
4953 public global::System.String QuantityPerUnit
|
|
4954 {
|
|
4955 get
|
|
4956 {
|
|
4957 return _QuantityPerUnit;
|
|
4958 }
|
|
4959 set
|
|
4960 {
|
|
4961 OnQuantityPerUnitChanging(value);
|
|
4962 ReportPropertyChanging("QuantityPerUnit");
|
|
4963 _QuantityPerUnit = StructuralObject.SetValidValue(value, true);
|
|
4964 ReportPropertyChanged("QuantityPerUnit");
|
|
4965 OnQuantityPerUnitChanged();
|
|
4966 }
|
|
4967 }
|
|
4968 private global::System.String _QuantityPerUnit;
|
|
4969 partial void OnQuantityPerUnitChanging(global::System.String value);
|
|
4970 partial void OnQuantityPerUnitChanged();
|
|
4971
|
|
4972 /// <summary>
|
|
4973 /// No Metadata Documentation available.
|
|
4974 /// </summary>
|
|
4975 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
4976 [DataMemberAttribute()]
|
|
4977 public Nullable<global::System.Decimal> UnitPrice
|
|
4978 {
|
|
4979 get
|
|
4980 {
|
|
4981 return _UnitPrice;
|
|
4982 }
|
|
4983 set
|
|
4984 {
|
|
4985 OnUnitPriceChanging(value);
|
|
4986 ReportPropertyChanging("UnitPrice");
|
|
4987 _UnitPrice = StructuralObject.SetValidValue(value);
|
|
4988 ReportPropertyChanged("UnitPrice");
|
|
4989 OnUnitPriceChanged();
|
|
4990 }
|
|
4991 }
|
|
4992 private Nullable<global::System.Decimal> _UnitPrice;
|
|
4993 partial void OnUnitPriceChanging(Nullable<global::System.Decimal> value);
|
|
4994 partial void OnUnitPriceChanged();
|
|
4995
|
|
4996 /// <summary>
|
|
4997 /// No Metadata Documentation available.
|
|
4998 /// </summary>
|
|
4999 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5000 [DataMemberAttribute()]
|
|
5001 public Nullable<global::System.Int16> UnitsInStock
|
|
5002 {
|
|
5003 get
|
|
5004 {
|
|
5005 return _UnitsInStock;
|
|
5006 }
|
|
5007 set
|
|
5008 {
|
|
5009 OnUnitsInStockChanging(value);
|
|
5010 ReportPropertyChanging("UnitsInStock");
|
|
5011 _UnitsInStock = StructuralObject.SetValidValue(value);
|
|
5012 ReportPropertyChanged("UnitsInStock");
|
|
5013 OnUnitsInStockChanged();
|
|
5014 }
|
|
5015 }
|
|
5016 private Nullable<global::System.Int16> _UnitsInStock;
|
|
5017 partial void OnUnitsInStockChanging(Nullable<global::System.Int16> value);
|
|
5018 partial void OnUnitsInStockChanged();
|
|
5019
|
|
5020 /// <summary>
|
|
5021 /// No Metadata Documentation available.
|
|
5022 /// </summary>
|
|
5023 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5024 [DataMemberAttribute()]
|
|
5025 public Nullable<global::System.Int16> UnitsOnOrder
|
|
5026 {
|
|
5027 get
|
|
5028 {
|
|
5029 return _UnitsOnOrder;
|
|
5030 }
|
|
5031 set
|
|
5032 {
|
|
5033 OnUnitsOnOrderChanging(value);
|
|
5034 ReportPropertyChanging("UnitsOnOrder");
|
|
5035 _UnitsOnOrder = StructuralObject.SetValidValue(value);
|
|
5036 ReportPropertyChanged("UnitsOnOrder");
|
|
5037 OnUnitsOnOrderChanged();
|
|
5038 }
|
|
5039 }
|
|
5040 private Nullable<global::System.Int16> _UnitsOnOrder;
|
|
5041 partial void OnUnitsOnOrderChanging(Nullable<global::System.Int16> value);
|
|
5042 partial void OnUnitsOnOrderChanged();
|
|
5043
|
|
5044 /// <summary>
|
|
5045 /// No Metadata Documentation available.
|
|
5046 /// </summary>
|
|
5047 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5048 [DataMemberAttribute()]
|
|
5049 public Nullable<global::System.Int16> ReorderLevel
|
|
5050 {
|
|
5051 get
|
|
5052 {
|
|
5053 return _ReorderLevel;
|
|
5054 }
|
|
5055 set
|
|
5056 {
|
|
5057 OnReorderLevelChanging(value);
|
|
5058 ReportPropertyChanging("ReorderLevel");
|
|
5059 _ReorderLevel = StructuralObject.SetValidValue(value);
|
|
5060 ReportPropertyChanged("ReorderLevel");
|
|
5061 OnReorderLevelChanged();
|
|
5062 }
|
|
5063 }
|
|
5064 private Nullable<global::System.Int16> _ReorderLevel;
|
|
5065 partial void OnReorderLevelChanging(Nullable<global::System.Int16> value);
|
|
5066 partial void OnReorderLevelChanged();
|
|
5067
|
|
5068 /// <summary>
|
|
5069 /// No Metadata Documentation available.
|
|
5070 /// </summary>
|
|
5071 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
5072 [DataMemberAttribute()]
|
|
5073 public global::System.Boolean Discontinued
|
|
5074 {
|
|
5075 get
|
|
5076 {
|
|
5077 return _Discontinued;
|
|
5078 }
|
|
5079 set
|
|
5080 {
|
|
5081 OnDiscontinuedChanging(value);
|
|
5082 ReportPropertyChanging("Discontinued");
|
|
5083 _Discontinued = StructuralObject.SetValidValue(value);
|
|
5084 ReportPropertyChanged("Discontinued");
|
|
5085 OnDiscontinuedChanged();
|
|
5086 }
|
|
5087 }
|
|
5088 private global::System.Boolean _Discontinued;
|
|
5089 partial void OnDiscontinuedChanging(global::System.Boolean value);
|
|
5090 partial void OnDiscontinuedChanged();
|
|
5091
|
|
5092 #endregion
|
|
5093
|
|
5094
|
|
5095 #region Navigation Properties
|
|
5096
|
|
5097 /// <summary>
|
|
5098 /// No Metadata Documentation available.
|
|
5099 /// </summary>
|
|
5100 [XmlIgnoreAttribute()]
|
|
5101 [SoapIgnoreAttribute()]
|
|
5102 [DataMemberAttribute()]
|
|
5103 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Products_Categories", "Categories")]
|
|
5104 public Category Category
|
|
5105 {
|
|
5106 get
|
|
5107 {
|
|
5108 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("NorthwindModel.FK_Products_Categories", "Categories").Value;
|
|
5109 }
|
|
5110 set
|
|
5111 {
|
|
5112 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("NorthwindModel.FK_Products_Categories", "Categories").Value = value;
|
|
5113 }
|
|
5114 }
|
|
5115 /// <summary>
|
|
5116 /// No Metadata Documentation available.
|
|
5117 /// </summary>
|
|
5118 [BrowsableAttribute(false)]
|
|
5119 [DataMemberAttribute()]
|
|
5120 public EntityReference<Category> CategoryReference
|
|
5121 {
|
|
5122 get
|
|
5123 {
|
|
5124 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("NorthwindModel.FK_Products_Categories", "Categories");
|
|
5125 }
|
|
5126 set
|
|
5127 {
|
|
5128 if ((value != null))
|
|
5129 {
|
|
5130 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Category>("NorthwindModel.FK_Products_Categories", "Categories", value);
|
|
5131 }
|
|
5132 }
|
|
5133 }
|
|
5134
|
|
5135 /// <summary>
|
|
5136 /// No Metadata Documentation available.
|
|
5137 /// </summary>
|
|
5138 [XmlIgnoreAttribute()]
|
|
5139 [SoapIgnoreAttribute()]
|
|
5140 [DataMemberAttribute()]
|
|
5141 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Products", "Order_Details")]
|
|
5142 public EntityCollection<Order_Detail> Order_Details
|
|
5143 {
|
|
5144 get
|
|
5145 {
|
|
5146 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order_Detail>("NorthwindModel.FK_Order_Details_Products", "Order_Details");
|
|
5147 }
|
|
5148 set
|
|
5149 {
|
|
5150 if ((value != null))
|
|
5151 {
|
|
5152 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order_Detail>("NorthwindModel.FK_Order_Details_Products", "Order_Details", value);
|
|
5153 }
|
|
5154 }
|
|
5155 }
|
|
5156
|
|
5157 /// <summary>
|
|
5158 /// No Metadata Documentation available.
|
|
5159 /// </summary>
|
|
5160 [XmlIgnoreAttribute()]
|
|
5161 [SoapIgnoreAttribute()]
|
|
5162 [DataMemberAttribute()]
|
|
5163 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Products_Suppliers", "Suppliers")]
|
|
5164 public Supplier Supplier
|
|
5165 {
|
|
5166 get
|
|
5167 {
|
|
5168 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Supplier>("NorthwindModel.FK_Products_Suppliers", "Suppliers").Value;
|
|
5169 }
|
|
5170 set
|
|
5171 {
|
|
5172 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Supplier>("NorthwindModel.FK_Products_Suppliers", "Suppliers").Value = value;
|
|
5173 }
|
|
5174 }
|
|
5175 /// <summary>
|
|
5176 /// No Metadata Documentation available.
|
|
5177 /// </summary>
|
|
5178 [BrowsableAttribute(false)]
|
|
5179 [DataMemberAttribute()]
|
|
5180 public EntityReference<Supplier> SupplierReference
|
|
5181 {
|
|
5182 get
|
|
5183 {
|
|
5184 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Supplier>("NorthwindModel.FK_Products_Suppliers", "Suppliers");
|
|
5185 }
|
|
5186 set
|
|
5187 {
|
|
5188 if ((value != null))
|
|
5189 {
|
|
5190 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Supplier>("NorthwindModel.FK_Products_Suppliers", "Suppliers", value);
|
|
5191 }
|
|
5192 }
|
|
5193 }
|
|
5194
|
|
5195 #endregion
|
|
5196
|
|
5197 }
|
|
5198
|
|
5199 /// <summary>
|
|
5200 /// No Metadata Documentation available.
|
|
5201 /// </summary>
|
|
5202 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Product_Sales_for_1997")]
|
|
5203 [Serializable()]
|
|
5204 [DataContractAttribute(IsReference=true)]
|
|
5205 public partial class Product_Sales_for_1997 : EntityObject
|
|
5206 {
|
|
5207 #region Factory Method
|
|
5208
|
|
5209 /// <summary>
|
|
5210 /// Create a new Product_Sales_for_1997 object.
|
|
5211 /// </summary>
|
|
5212 /// <param name="categoryName">Initial value of the CategoryName property.</param>
|
|
5213 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
5214 public static Product_Sales_for_1997 CreateProduct_Sales_for_1997(global::System.String categoryName, global::System.String productName)
|
|
5215 {
|
|
5216 Product_Sales_for_1997 product_Sales_for_1997 = new Product_Sales_for_1997();
|
|
5217 product_Sales_for_1997.CategoryName = categoryName;
|
|
5218 product_Sales_for_1997.ProductName = productName;
|
|
5219 return product_Sales_for_1997;
|
|
5220 }
|
|
5221
|
|
5222 #endregion
|
|
5223
|
|
5224 #region Primitive Properties
|
|
5225
|
|
5226 /// <summary>
|
|
5227 /// No Metadata Documentation available.
|
|
5228 /// </summary>
|
|
5229 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5230 [DataMemberAttribute()]
|
|
5231 public global::System.String CategoryName
|
|
5232 {
|
|
5233 get
|
|
5234 {
|
|
5235 return _CategoryName;
|
|
5236 }
|
|
5237 set
|
|
5238 {
|
|
5239 if (_CategoryName != value)
|
|
5240 {
|
|
5241 OnCategoryNameChanging(value);
|
|
5242 ReportPropertyChanging("CategoryName");
|
|
5243 _CategoryName = StructuralObject.SetValidValue(value, false);
|
|
5244 ReportPropertyChanged("CategoryName");
|
|
5245 OnCategoryNameChanged();
|
|
5246 }
|
|
5247 }
|
|
5248 }
|
|
5249 private global::System.String _CategoryName;
|
|
5250 partial void OnCategoryNameChanging(global::System.String value);
|
|
5251 partial void OnCategoryNameChanged();
|
|
5252
|
|
5253 /// <summary>
|
|
5254 /// No Metadata Documentation available.
|
|
5255 /// </summary>
|
|
5256 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5257 [DataMemberAttribute()]
|
|
5258 public global::System.String ProductName
|
|
5259 {
|
|
5260 get
|
|
5261 {
|
|
5262 return _ProductName;
|
|
5263 }
|
|
5264 set
|
|
5265 {
|
|
5266 if (_ProductName != value)
|
|
5267 {
|
|
5268 OnProductNameChanging(value);
|
|
5269 ReportPropertyChanging("ProductName");
|
|
5270 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
5271 ReportPropertyChanged("ProductName");
|
|
5272 OnProductNameChanged();
|
|
5273 }
|
|
5274 }
|
|
5275 }
|
|
5276 private global::System.String _ProductName;
|
|
5277 partial void OnProductNameChanging(global::System.String value);
|
|
5278 partial void OnProductNameChanged();
|
|
5279
|
|
5280 /// <summary>
|
|
5281 /// No Metadata Documentation available.
|
|
5282 /// </summary>
|
|
5283 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5284 [DataMemberAttribute()]
|
|
5285 public Nullable<global::System.Decimal> ProductSales
|
|
5286 {
|
|
5287 get
|
|
5288 {
|
|
5289 return _ProductSales;
|
|
5290 }
|
|
5291 set
|
|
5292 {
|
|
5293 OnProductSalesChanging(value);
|
|
5294 ReportPropertyChanging("ProductSales");
|
|
5295 _ProductSales = StructuralObject.SetValidValue(value);
|
|
5296 ReportPropertyChanged("ProductSales");
|
|
5297 OnProductSalesChanged();
|
|
5298 }
|
|
5299 }
|
|
5300 private Nullable<global::System.Decimal> _ProductSales;
|
|
5301 partial void OnProductSalesChanging(Nullable<global::System.Decimal> value);
|
|
5302 partial void OnProductSalesChanged();
|
|
5303
|
|
5304 #endregion
|
|
5305
|
|
5306
|
|
5307 }
|
|
5308
|
|
5309 /// <summary>
|
|
5310 /// No Metadata Documentation available.
|
|
5311 /// </summary>
|
|
5312 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Products_Above_Average_Price")]
|
|
5313 [Serializable()]
|
|
5314 [DataContractAttribute(IsReference=true)]
|
|
5315 public partial class Products_Above_Average_Price : EntityObject
|
|
5316 {
|
|
5317 #region Factory Method
|
|
5318
|
|
5319 /// <summary>
|
|
5320 /// Create a new Products_Above_Average_Price object.
|
|
5321 /// </summary>
|
|
5322 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
5323 public static Products_Above_Average_Price CreateProducts_Above_Average_Price(global::System.String productName)
|
|
5324 {
|
|
5325 Products_Above_Average_Price products_Above_Average_Price = new Products_Above_Average_Price();
|
|
5326 products_Above_Average_Price.ProductName = productName;
|
|
5327 return products_Above_Average_Price;
|
|
5328 }
|
|
5329
|
|
5330 #endregion
|
|
5331
|
|
5332 #region Primitive Properties
|
|
5333
|
|
5334 /// <summary>
|
|
5335 /// No Metadata Documentation available.
|
|
5336 /// </summary>
|
|
5337 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5338 [DataMemberAttribute()]
|
|
5339 public global::System.String ProductName
|
|
5340 {
|
|
5341 get
|
|
5342 {
|
|
5343 return _ProductName;
|
|
5344 }
|
|
5345 set
|
|
5346 {
|
|
5347 if (_ProductName != value)
|
|
5348 {
|
|
5349 OnProductNameChanging(value);
|
|
5350 ReportPropertyChanging("ProductName");
|
|
5351 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
5352 ReportPropertyChanged("ProductName");
|
|
5353 OnProductNameChanged();
|
|
5354 }
|
|
5355 }
|
|
5356 }
|
|
5357 private global::System.String _ProductName;
|
|
5358 partial void OnProductNameChanging(global::System.String value);
|
|
5359 partial void OnProductNameChanged();
|
|
5360
|
|
5361 /// <summary>
|
|
5362 /// No Metadata Documentation available.
|
|
5363 /// </summary>
|
|
5364 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5365 [DataMemberAttribute()]
|
|
5366 public Nullable<global::System.Decimal> UnitPrice
|
|
5367 {
|
|
5368 get
|
|
5369 {
|
|
5370 return _UnitPrice;
|
|
5371 }
|
|
5372 set
|
|
5373 {
|
|
5374 OnUnitPriceChanging(value);
|
|
5375 ReportPropertyChanging("UnitPrice");
|
|
5376 _UnitPrice = StructuralObject.SetValidValue(value);
|
|
5377 ReportPropertyChanged("UnitPrice");
|
|
5378 OnUnitPriceChanged();
|
|
5379 }
|
|
5380 }
|
|
5381 private Nullable<global::System.Decimal> _UnitPrice;
|
|
5382 partial void OnUnitPriceChanging(Nullable<global::System.Decimal> value);
|
|
5383 partial void OnUnitPriceChanged();
|
|
5384
|
|
5385 #endregion
|
|
5386
|
|
5387
|
|
5388 }
|
|
5389
|
|
5390 /// <summary>
|
|
5391 /// No Metadata Documentation available.
|
|
5392 /// </summary>
|
|
5393 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Products_by_Category")]
|
|
5394 [Serializable()]
|
|
5395 [DataContractAttribute(IsReference=true)]
|
|
5396 public partial class Products_by_Category : EntityObject
|
|
5397 {
|
|
5398 #region Factory Method
|
|
5399
|
|
5400 /// <summary>
|
|
5401 /// Create a new Products_by_Category object.
|
|
5402 /// </summary>
|
|
5403 /// <param name="categoryName">Initial value of the CategoryName property.</param>
|
|
5404 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
5405 /// <param name="discontinued">Initial value of the Discontinued property.</param>
|
|
5406 public static Products_by_Category CreateProducts_by_Category(global::System.String categoryName, global::System.String productName, global::System.Boolean discontinued)
|
|
5407 {
|
|
5408 Products_by_Category products_by_Category = new Products_by_Category();
|
|
5409 products_by_Category.CategoryName = categoryName;
|
|
5410 products_by_Category.ProductName = productName;
|
|
5411 products_by_Category.Discontinued = discontinued;
|
|
5412 return products_by_Category;
|
|
5413 }
|
|
5414
|
|
5415 #endregion
|
|
5416
|
|
5417 #region Primitive Properties
|
|
5418
|
|
5419 /// <summary>
|
|
5420 /// No Metadata Documentation available.
|
|
5421 /// </summary>
|
|
5422 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5423 [DataMemberAttribute()]
|
|
5424 public global::System.String CategoryName
|
|
5425 {
|
|
5426 get
|
|
5427 {
|
|
5428 return _CategoryName;
|
|
5429 }
|
|
5430 set
|
|
5431 {
|
|
5432 if (_CategoryName != value)
|
|
5433 {
|
|
5434 OnCategoryNameChanging(value);
|
|
5435 ReportPropertyChanging("CategoryName");
|
|
5436 _CategoryName = StructuralObject.SetValidValue(value, false);
|
|
5437 ReportPropertyChanged("CategoryName");
|
|
5438 OnCategoryNameChanged();
|
|
5439 }
|
|
5440 }
|
|
5441 }
|
|
5442 private global::System.String _CategoryName;
|
|
5443 partial void OnCategoryNameChanging(global::System.String value);
|
|
5444 partial void OnCategoryNameChanged();
|
|
5445
|
|
5446 /// <summary>
|
|
5447 /// No Metadata Documentation available.
|
|
5448 /// </summary>
|
|
5449 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5450 [DataMemberAttribute()]
|
|
5451 public global::System.String ProductName
|
|
5452 {
|
|
5453 get
|
|
5454 {
|
|
5455 return _ProductName;
|
|
5456 }
|
|
5457 set
|
|
5458 {
|
|
5459 if (_ProductName != value)
|
|
5460 {
|
|
5461 OnProductNameChanging(value);
|
|
5462 ReportPropertyChanging("ProductName");
|
|
5463 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
5464 ReportPropertyChanged("ProductName");
|
|
5465 OnProductNameChanged();
|
|
5466 }
|
|
5467 }
|
|
5468 }
|
|
5469 private global::System.String _ProductName;
|
|
5470 partial void OnProductNameChanging(global::System.String value);
|
|
5471 partial void OnProductNameChanged();
|
|
5472
|
|
5473 /// <summary>
|
|
5474 /// No Metadata Documentation available.
|
|
5475 /// </summary>
|
|
5476 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5477 [DataMemberAttribute()]
|
|
5478 public global::System.String QuantityPerUnit
|
|
5479 {
|
|
5480 get
|
|
5481 {
|
|
5482 return _QuantityPerUnit;
|
|
5483 }
|
|
5484 set
|
|
5485 {
|
|
5486 OnQuantityPerUnitChanging(value);
|
|
5487 ReportPropertyChanging("QuantityPerUnit");
|
|
5488 _QuantityPerUnit = StructuralObject.SetValidValue(value, true);
|
|
5489 ReportPropertyChanged("QuantityPerUnit");
|
|
5490 OnQuantityPerUnitChanged();
|
|
5491 }
|
|
5492 }
|
|
5493 private global::System.String _QuantityPerUnit;
|
|
5494 partial void OnQuantityPerUnitChanging(global::System.String value);
|
|
5495 partial void OnQuantityPerUnitChanged();
|
|
5496
|
|
5497 /// <summary>
|
|
5498 /// No Metadata Documentation available.
|
|
5499 /// </summary>
|
|
5500 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5501 [DataMemberAttribute()]
|
|
5502 public Nullable<global::System.Int16> UnitsInStock
|
|
5503 {
|
|
5504 get
|
|
5505 {
|
|
5506 return _UnitsInStock;
|
|
5507 }
|
|
5508 set
|
|
5509 {
|
|
5510 OnUnitsInStockChanging(value);
|
|
5511 ReportPropertyChanging("UnitsInStock");
|
|
5512 _UnitsInStock = StructuralObject.SetValidValue(value);
|
|
5513 ReportPropertyChanged("UnitsInStock");
|
|
5514 OnUnitsInStockChanged();
|
|
5515 }
|
|
5516 }
|
|
5517 private Nullable<global::System.Int16> _UnitsInStock;
|
|
5518 partial void OnUnitsInStockChanging(Nullable<global::System.Int16> value);
|
|
5519 partial void OnUnitsInStockChanged();
|
|
5520
|
|
5521 /// <summary>
|
|
5522 /// No Metadata Documentation available.
|
|
5523 /// </summary>
|
|
5524 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5525 [DataMemberAttribute()]
|
|
5526 public global::System.Boolean Discontinued
|
|
5527 {
|
|
5528 get
|
|
5529 {
|
|
5530 return _Discontinued;
|
|
5531 }
|
|
5532 set
|
|
5533 {
|
|
5534 if (_Discontinued != value)
|
|
5535 {
|
|
5536 OnDiscontinuedChanging(value);
|
|
5537 ReportPropertyChanging("Discontinued");
|
|
5538 _Discontinued = StructuralObject.SetValidValue(value);
|
|
5539 ReportPropertyChanged("Discontinued");
|
|
5540 OnDiscontinuedChanged();
|
|
5541 }
|
|
5542 }
|
|
5543 }
|
|
5544 private global::System.Boolean _Discontinued;
|
|
5545 partial void OnDiscontinuedChanging(global::System.Boolean value);
|
|
5546 partial void OnDiscontinuedChanged();
|
|
5547
|
|
5548 #endregion
|
|
5549
|
|
5550
|
|
5551 }
|
|
5552
|
|
5553 /// <summary>
|
|
5554 /// No Metadata Documentation available.
|
|
5555 /// </summary>
|
|
5556 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Region")]
|
|
5557 [Serializable()]
|
|
5558 [DataContractAttribute(IsReference=true)]
|
|
5559 public partial class Region : EntityObject
|
|
5560 {
|
|
5561 #region Factory Method
|
|
5562
|
|
5563 /// <summary>
|
|
5564 /// Create a new Region object.
|
|
5565 /// </summary>
|
|
5566 /// <param name="regionID">Initial value of the RegionID property.</param>
|
|
5567 /// <param name="regionDescription">Initial value of the RegionDescription property.</param>
|
|
5568 public static Region CreateRegion(global::System.Int32 regionID, global::System.String regionDescription)
|
|
5569 {
|
|
5570 Region region = new Region();
|
|
5571 region.RegionID = regionID;
|
|
5572 region.RegionDescription = regionDescription;
|
|
5573 return region;
|
|
5574 }
|
|
5575
|
|
5576 #endregion
|
|
5577
|
|
5578 #region Primitive Properties
|
|
5579
|
|
5580 /// <summary>
|
|
5581 /// No Metadata Documentation available.
|
|
5582 /// </summary>
|
|
5583 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5584 [DataMemberAttribute()]
|
|
5585 public global::System.Int32 RegionID
|
|
5586 {
|
|
5587 get
|
|
5588 {
|
|
5589 return _RegionID;
|
|
5590 }
|
|
5591 set
|
|
5592 {
|
|
5593 if (_RegionID != value)
|
|
5594 {
|
|
5595 OnRegionIDChanging(value);
|
|
5596 ReportPropertyChanging("RegionID");
|
|
5597 _RegionID = StructuralObject.SetValidValue(value);
|
|
5598 ReportPropertyChanged("RegionID");
|
|
5599 OnRegionIDChanged();
|
|
5600 }
|
|
5601 }
|
|
5602 }
|
|
5603 private global::System.Int32 _RegionID;
|
|
5604 partial void OnRegionIDChanging(global::System.Int32 value);
|
|
5605 partial void OnRegionIDChanged();
|
|
5606
|
|
5607 /// <summary>
|
|
5608 /// No Metadata Documentation available.
|
|
5609 /// </summary>
|
|
5610 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
5611 [DataMemberAttribute()]
|
|
5612 public global::System.String RegionDescription
|
|
5613 {
|
|
5614 get
|
|
5615 {
|
|
5616 return _RegionDescription;
|
|
5617 }
|
|
5618 set
|
|
5619 {
|
|
5620 OnRegionDescriptionChanging(value);
|
|
5621 ReportPropertyChanging("RegionDescription");
|
|
5622 _RegionDescription = StructuralObject.SetValidValue(value, false);
|
|
5623 ReportPropertyChanged("RegionDescription");
|
|
5624 OnRegionDescriptionChanged();
|
|
5625 }
|
|
5626 }
|
|
5627 private global::System.String _RegionDescription;
|
|
5628 partial void OnRegionDescriptionChanging(global::System.String value);
|
|
5629 partial void OnRegionDescriptionChanged();
|
|
5630
|
|
5631 #endregion
|
|
5632
|
|
5633
|
|
5634 #region Navigation Properties
|
|
5635
|
|
5636 /// <summary>
|
|
5637 /// No Metadata Documentation available.
|
|
5638 /// </summary>
|
|
5639 [XmlIgnoreAttribute()]
|
|
5640 [SoapIgnoreAttribute()]
|
|
5641 [DataMemberAttribute()]
|
|
5642 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Territories_Region", "Territories")]
|
|
5643 public EntityCollection<Territory> Territories
|
|
5644 {
|
|
5645 get
|
|
5646 {
|
|
5647 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Territory>("NorthwindModel.FK_Territories_Region", "Territories");
|
|
5648 }
|
|
5649 set
|
|
5650 {
|
|
5651 if ((value != null))
|
|
5652 {
|
|
5653 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Territory>("NorthwindModel.FK_Territories_Region", "Territories", value);
|
|
5654 }
|
|
5655 }
|
|
5656 }
|
|
5657
|
|
5658 #endregion
|
|
5659
|
|
5660 }
|
|
5661
|
|
5662 /// <summary>
|
|
5663 /// No Metadata Documentation available.
|
|
5664 /// </summary>
|
|
5665 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Sales_by_Category")]
|
|
5666 [Serializable()]
|
|
5667 [DataContractAttribute(IsReference=true)]
|
|
5668 public partial class Sales_by_Category : EntityObject
|
|
5669 {
|
|
5670 #region Factory Method
|
|
5671
|
|
5672 /// <summary>
|
|
5673 /// Create a new Sales_by_Category object.
|
|
5674 /// </summary>
|
|
5675 /// <param name="categoryID">Initial value of the CategoryID property.</param>
|
|
5676 /// <param name="categoryName">Initial value of the CategoryName property.</param>
|
|
5677 /// <param name="productName">Initial value of the ProductName property.</param>
|
|
5678 public static Sales_by_Category CreateSales_by_Category(global::System.Int32 categoryID, global::System.String categoryName, global::System.String productName)
|
|
5679 {
|
|
5680 Sales_by_Category sales_by_Category = new Sales_by_Category();
|
|
5681 sales_by_Category.CategoryID = categoryID;
|
|
5682 sales_by_Category.CategoryName = categoryName;
|
|
5683 sales_by_Category.ProductName = productName;
|
|
5684 return sales_by_Category;
|
|
5685 }
|
|
5686
|
|
5687 #endregion
|
|
5688
|
|
5689 #region Primitive Properties
|
|
5690
|
|
5691 /// <summary>
|
|
5692 /// No Metadata Documentation available.
|
|
5693 /// </summary>
|
|
5694 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5695 [DataMemberAttribute()]
|
|
5696 public global::System.Int32 CategoryID
|
|
5697 {
|
|
5698 get
|
|
5699 {
|
|
5700 return _CategoryID;
|
|
5701 }
|
|
5702 set
|
|
5703 {
|
|
5704 if (_CategoryID != value)
|
|
5705 {
|
|
5706 OnCategoryIDChanging(value);
|
|
5707 ReportPropertyChanging("CategoryID");
|
|
5708 _CategoryID = StructuralObject.SetValidValue(value);
|
|
5709 ReportPropertyChanged("CategoryID");
|
|
5710 OnCategoryIDChanged();
|
|
5711 }
|
|
5712 }
|
|
5713 }
|
|
5714 private global::System.Int32 _CategoryID;
|
|
5715 partial void OnCategoryIDChanging(global::System.Int32 value);
|
|
5716 partial void OnCategoryIDChanged();
|
|
5717
|
|
5718 /// <summary>
|
|
5719 /// No Metadata Documentation available.
|
|
5720 /// </summary>
|
|
5721 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5722 [DataMemberAttribute()]
|
|
5723 public global::System.String CategoryName
|
|
5724 {
|
|
5725 get
|
|
5726 {
|
|
5727 return _CategoryName;
|
|
5728 }
|
|
5729 set
|
|
5730 {
|
|
5731 if (_CategoryName != value)
|
|
5732 {
|
|
5733 OnCategoryNameChanging(value);
|
|
5734 ReportPropertyChanging("CategoryName");
|
|
5735 _CategoryName = StructuralObject.SetValidValue(value, false);
|
|
5736 ReportPropertyChanged("CategoryName");
|
|
5737 OnCategoryNameChanged();
|
|
5738 }
|
|
5739 }
|
|
5740 }
|
|
5741 private global::System.String _CategoryName;
|
|
5742 partial void OnCategoryNameChanging(global::System.String value);
|
|
5743 partial void OnCategoryNameChanged();
|
|
5744
|
|
5745 /// <summary>
|
|
5746 /// No Metadata Documentation available.
|
|
5747 /// </summary>
|
|
5748 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5749 [DataMemberAttribute()]
|
|
5750 public global::System.String ProductName
|
|
5751 {
|
|
5752 get
|
|
5753 {
|
|
5754 return _ProductName;
|
|
5755 }
|
|
5756 set
|
|
5757 {
|
|
5758 if (_ProductName != value)
|
|
5759 {
|
|
5760 OnProductNameChanging(value);
|
|
5761 ReportPropertyChanging("ProductName");
|
|
5762 _ProductName = StructuralObject.SetValidValue(value, false);
|
|
5763 ReportPropertyChanged("ProductName");
|
|
5764 OnProductNameChanged();
|
|
5765 }
|
|
5766 }
|
|
5767 }
|
|
5768 private global::System.String _ProductName;
|
|
5769 partial void OnProductNameChanging(global::System.String value);
|
|
5770 partial void OnProductNameChanged();
|
|
5771
|
|
5772 /// <summary>
|
|
5773 /// No Metadata Documentation available.
|
|
5774 /// </summary>
|
|
5775 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5776 [DataMemberAttribute()]
|
|
5777 public Nullable<global::System.Decimal> ProductSales
|
|
5778 {
|
|
5779 get
|
|
5780 {
|
|
5781 return _ProductSales;
|
|
5782 }
|
|
5783 set
|
|
5784 {
|
|
5785 OnProductSalesChanging(value);
|
|
5786 ReportPropertyChanging("ProductSales");
|
|
5787 _ProductSales = StructuralObject.SetValidValue(value);
|
|
5788 ReportPropertyChanged("ProductSales");
|
|
5789 OnProductSalesChanged();
|
|
5790 }
|
|
5791 }
|
|
5792 private Nullable<global::System.Decimal> _ProductSales;
|
|
5793 partial void OnProductSalesChanging(Nullable<global::System.Decimal> value);
|
|
5794 partial void OnProductSalesChanged();
|
|
5795
|
|
5796 #endregion
|
|
5797
|
|
5798
|
|
5799 }
|
|
5800
|
|
5801 /// <summary>
|
|
5802 /// No Metadata Documentation available.
|
|
5803 /// </summary>
|
|
5804 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Sales_Totals_by_Amount")]
|
|
5805 [Serializable()]
|
|
5806 [DataContractAttribute(IsReference=true)]
|
|
5807 public partial class Sales_Totals_by_Amount : EntityObject
|
|
5808 {
|
|
5809 #region Factory Method
|
|
5810
|
|
5811 /// <summary>
|
|
5812 /// Create a new Sales_Totals_by_Amount object.
|
|
5813 /// </summary>
|
|
5814 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
5815 /// <param name="companyName">Initial value of the CompanyName property.</param>
|
|
5816 public static Sales_Totals_by_Amount CreateSales_Totals_by_Amount(global::System.Int32 orderID, global::System.String companyName)
|
|
5817 {
|
|
5818 Sales_Totals_by_Amount sales_Totals_by_Amount = new Sales_Totals_by_Amount();
|
|
5819 sales_Totals_by_Amount.OrderID = orderID;
|
|
5820 sales_Totals_by_Amount.CompanyName = companyName;
|
|
5821 return sales_Totals_by_Amount;
|
|
5822 }
|
|
5823
|
|
5824 #endregion
|
|
5825
|
|
5826 #region Primitive Properties
|
|
5827
|
|
5828 /// <summary>
|
|
5829 /// No Metadata Documentation available.
|
|
5830 /// </summary>
|
|
5831 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5832 [DataMemberAttribute()]
|
|
5833 public Nullable<global::System.Decimal> SaleAmount
|
|
5834 {
|
|
5835 get
|
|
5836 {
|
|
5837 return _SaleAmount;
|
|
5838 }
|
|
5839 set
|
|
5840 {
|
|
5841 OnSaleAmountChanging(value);
|
|
5842 ReportPropertyChanging("SaleAmount");
|
|
5843 _SaleAmount = StructuralObject.SetValidValue(value);
|
|
5844 ReportPropertyChanged("SaleAmount");
|
|
5845 OnSaleAmountChanged();
|
|
5846 }
|
|
5847 }
|
|
5848 private Nullable<global::System.Decimal> _SaleAmount;
|
|
5849 partial void OnSaleAmountChanging(Nullable<global::System.Decimal> value);
|
|
5850 partial void OnSaleAmountChanged();
|
|
5851
|
|
5852 /// <summary>
|
|
5853 /// No Metadata Documentation available.
|
|
5854 /// </summary>
|
|
5855 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5856 [DataMemberAttribute()]
|
|
5857 public global::System.Int32 OrderID
|
|
5858 {
|
|
5859 get
|
|
5860 {
|
|
5861 return _OrderID;
|
|
5862 }
|
|
5863 set
|
|
5864 {
|
|
5865 if (_OrderID != value)
|
|
5866 {
|
|
5867 OnOrderIDChanging(value);
|
|
5868 ReportPropertyChanging("OrderID");
|
|
5869 _OrderID = StructuralObject.SetValidValue(value);
|
|
5870 ReportPropertyChanged("OrderID");
|
|
5871 OnOrderIDChanged();
|
|
5872 }
|
|
5873 }
|
|
5874 }
|
|
5875 private global::System.Int32 _OrderID;
|
|
5876 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
5877 partial void OnOrderIDChanged();
|
|
5878
|
|
5879 /// <summary>
|
|
5880 /// No Metadata Documentation available.
|
|
5881 /// </summary>
|
|
5882 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5883 [DataMemberAttribute()]
|
|
5884 public global::System.String CompanyName
|
|
5885 {
|
|
5886 get
|
|
5887 {
|
|
5888 return _CompanyName;
|
|
5889 }
|
|
5890 set
|
|
5891 {
|
|
5892 if (_CompanyName != value)
|
|
5893 {
|
|
5894 OnCompanyNameChanging(value);
|
|
5895 ReportPropertyChanging("CompanyName");
|
|
5896 _CompanyName = StructuralObject.SetValidValue(value, false);
|
|
5897 ReportPropertyChanged("CompanyName");
|
|
5898 OnCompanyNameChanged();
|
|
5899 }
|
|
5900 }
|
|
5901 }
|
|
5902 private global::System.String _CompanyName;
|
|
5903 partial void OnCompanyNameChanging(global::System.String value);
|
|
5904 partial void OnCompanyNameChanged();
|
|
5905
|
|
5906 /// <summary>
|
|
5907 /// No Metadata Documentation available.
|
|
5908 /// </summary>
|
|
5909 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
5910 [DataMemberAttribute()]
|
|
5911 public Nullable<global::System.DateTime> ShippedDate
|
|
5912 {
|
|
5913 get
|
|
5914 {
|
|
5915 return _ShippedDate;
|
|
5916 }
|
|
5917 set
|
|
5918 {
|
|
5919 OnShippedDateChanging(value);
|
|
5920 ReportPropertyChanging("ShippedDate");
|
|
5921 _ShippedDate = StructuralObject.SetValidValue(value);
|
|
5922 ReportPropertyChanged("ShippedDate");
|
|
5923 OnShippedDateChanged();
|
|
5924 }
|
|
5925 }
|
|
5926 private Nullable<global::System.DateTime> _ShippedDate;
|
|
5927 partial void OnShippedDateChanging(Nullable<global::System.DateTime> value);
|
|
5928 partial void OnShippedDateChanged();
|
|
5929
|
|
5930 #endregion
|
|
5931
|
|
5932
|
|
5933 }
|
|
5934
|
|
5935 /// <summary>
|
|
5936 /// No Metadata Documentation available.
|
|
5937 /// </summary>
|
|
5938 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Shipper")]
|
|
5939 [Serializable()]
|
|
5940 [DataContractAttribute(IsReference=true)]
|
|
5941 public partial class Shipper : EntityObject
|
|
5942 {
|
|
5943 #region Factory Method
|
|
5944
|
|
5945 /// <summary>
|
|
5946 /// Create a new Shipper object.
|
|
5947 /// </summary>
|
|
5948 /// <param name="shipperID">Initial value of the ShipperID property.</param>
|
|
5949 /// <param name="companyName">Initial value of the CompanyName property.</param>
|
|
5950 public static Shipper CreateShipper(global::System.Int32 shipperID, global::System.String companyName)
|
|
5951 {
|
|
5952 Shipper shipper = new Shipper();
|
|
5953 shipper.ShipperID = shipperID;
|
|
5954 shipper.CompanyName = companyName;
|
|
5955 return shipper;
|
|
5956 }
|
|
5957
|
|
5958 #endregion
|
|
5959
|
|
5960 #region Primitive Properties
|
|
5961
|
|
5962 /// <summary>
|
|
5963 /// No Metadata Documentation available.
|
|
5964 /// </summary>
|
|
5965 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
5966 [DataMemberAttribute()]
|
|
5967 public global::System.Int32 ShipperID
|
|
5968 {
|
|
5969 get
|
|
5970 {
|
|
5971 return _ShipperID;
|
|
5972 }
|
|
5973 set
|
|
5974 {
|
|
5975 if (_ShipperID != value)
|
|
5976 {
|
|
5977 OnShipperIDChanging(value);
|
|
5978 ReportPropertyChanging("ShipperID");
|
|
5979 _ShipperID = StructuralObject.SetValidValue(value);
|
|
5980 ReportPropertyChanged("ShipperID");
|
|
5981 OnShipperIDChanged();
|
|
5982 }
|
|
5983 }
|
|
5984 }
|
|
5985 private global::System.Int32 _ShipperID;
|
|
5986 partial void OnShipperIDChanging(global::System.Int32 value);
|
|
5987 partial void OnShipperIDChanged();
|
|
5988
|
|
5989 /// <summary>
|
|
5990 /// No Metadata Documentation available.
|
|
5991 /// </summary>
|
|
5992 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
5993 [DataMemberAttribute()]
|
|
5994 public global::System.String CompanyName
|
|
5995 {
|
|
5996 get
|
|
5997 {
|
|
5998 return _CompanyName;
|
|
5999 }
|
|
6000 set
|
|
6001 {
|
|
6002 OnCompanyNameChanging(value);
|
|
6003 ReportPropertyChanging("CompanyName");
|
|
6004 _CompanyName = StructuralObject.SetValidValue(value, false);
|
|
6005 ReportPropertyChanged("CompanyName");
|
|
6006 OnCompanyNameChanged();
|
|
6007 }
|
|
6008 }
|
|
6009 private global::System.String _CompanyName;
|
|
6010 partial void OnCompanyNameChanging(global::System.String value);
|
|
6011 partial void OnCompanyNameChanged();
|
|
6012
|
|
6013 /// <summary>
|
|
6014 /// No Metadata Documentation available.
|
|
6015 /// </summary>
|
|
6016 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6017 [DataMemberAttribute()]
|
|
6018 public global::System.String Phone
|
|
6019 {
|
|
6020 get
|
|
6021 {
|
|
6022 return _Phone;
|
|
6023 }
|
|
6024 set
|
|
6025 {
|
|
6026 OnPhoneChanging(value);
|
|
6027 ReportPropertyChanging("Phone");
|
|
6028 _Phone = StructuralObject.SetValidValue(value, true);
|
|
6029 ReportPropertyChanged("Phone");
|
|
6030 OnPhoneChanged();
|
|
6031 }
|
|
6032 }
|
|
6033 private global::System.String _Phone;
|
|
6034 partial void OnPhoneChanging(global::System.String value);
|
|
6035 partial void OnPhoneChanged();
|
|
6036
|
|
6037 #endregion
|
|
6038
|
|
6039
|
|
6040 #region Navigation Properties
|
|
6041
|
|
6042 /// <summary>
|
|
6043 /// No Metadata Documentation available.
|
|
6044 /// </summary>
|
|
6045 [XmlIgnoreAttribute()]
|
|
6046 [SoapIgnoreAttribute()]
|
|
6047 [DataMemberAttribute()]
|
|
6048 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Shippers", "Orders")]
|
|
6049 public EntityCollection<Order> Orders
|
|
6050 {
|
|
6051 get
|
|
6052 {
|
|
6053 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order>("NorthwindModel.FK_Orders_Shippers", "Orders");
|
|
6054 }
|
|
6055 set
|
|
6056 {
|
|
6057 if ((value != null))
|
|
6058 {
|
|
6059 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order>("NorthwindModel.FK_Orders_Shippers", "Orders", value);
|
|
6060 }
|
|
6061 }
|
|
6062 }
|
|
6063
|
|
6064 #endregion
|
|
6065
|
|
6066 }
|
|
6067
|
|
6068 /// <summary>
|
|
6069 /// No Metadata Documentation available.
|
|
6070 /// </summary>
|
|
6071 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Summary_of_Sales_by_Quarter")]
|
|
6072 [Serializable()]
|
|
6073 [DataContractAttribute(IsReference=true)]
|
|
6074 public partial class Summary_of_Sales_by_Quarter : EntityObject
|
|
6075 {
|
|
6076 #region Factory Method
|
|
6077
|
|
6078 /// <summary>
|
|
6079 /// Create a new Summary_of_Sales_by_Quarter object.
|
|
6080 /// </summary>
|
|
6081 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
6082 public static Summary_of_Sales_by_Quarter CreateSummary_of_Sales_by_Quarter(global::System.Int32 orderID)
|
|
6083 {
|
|
6084 Summary_of_Sales_by_Quarter summary_of_Sales_by_Quarter = new Summary_of_Sales_by_Quarter();
|
|
6085 summary_of_Sales_by_Quarter.OrderID = orderID;
|
|
6086 return summary_of_Sales_by_Quarter;
|
|
6087 }
|
|
6088
|
|
6089 #endregion
|
|
6090
|
|
6091 #region Primitive Properties
|
|
6092
|
|
6093 /// <summary>
|
|
6094 /// No Metadata Documentation available.
|
|
6095 /// </summary>
|
|
6096 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6097 [DataMemberAttribute()]
|
|
6098 public Nullable<global::System.DateTime> ShippedDate
|
|
6099 {
|
|
6100 get
|
|
6101 {
|
|
6102 return _ShippedDate;
|
|
6103 }
|
|
6104 set
|
|
6105 {
|
|
6106 OnShippedDateChanging(value);
|
|
6107 ReportPropertyChanging("ShippedDate");
|
|
6108 _ShippedDate = StructuralObject.SetValidValue(value);
|
|
6109 ReportPropertyChanged("ShippedDate");
|
|
6110 OnShippedDateChanged();
|
|
6111 }
|
|
6112 }
|
|
6113 private Nullable<global::System.DateTime> _ShippedDate;
|
|
6114 partial void OnShippedDateChanging(Nullable<global::System.DateTime> value);
|
|
6115 partial void OnShippedDateChanged();
|
|
6116
|
|
6117 /// <summary>
|
|
6118 /// No Metadata Documentation available.
|
|
6119 /// </summary>
|
|
6120 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
6121 [DataMemberAttribute()]
|
|
6122 public global::System.Int32 OrderID
|
|
6123 {
|
|
6124 get
|
|
6125 {
|
|
6126 return _OrderID;
|
|
6127 }
|
|
6128 set
|
|
6129 {
|
|
6130 if (_OrderID != value)
|
|
6131 {
|
|
6132 OnOrderIDChanging(value);
|
|
6133 ReportPropertyChanging("OrderID");
|
|
6134 _OrderID = StructuralObject.SetValidValue(value);
|
|
6135 ReportPropertyChanged("OrderID");
|
|
6136 OnOrderIDChanged();
|
|
6137 }
|
|
6138 }
|
|
6139 }
|
|
6140 private global::System.Int32 _OrderID;
|
|
6141 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
6142 partial void OnOrderIDChanged();
|
|
6143
|
|
6144 /// <summary>
|
|
6145 /// No Metadata Documentation available.
|
|
6146 /// </summary>
|
|
6147 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6148 [DataMemberAttribute()]
|
|
6149 public Nullable<global::System.Decimal> Subtotal
|
|
6150 {
|
|
6151 get
|
|
6152 {
|
|
6153 return _Subtotal;
|
|
6154 }
|
|
6155 set
|
|
6156 {
|
|
6157 OnSubtotalChanging(value);
|
|
6158 ReportPropertyChanging("Subtotal");
|
|
6159 _Subtotal = StructuralObject.SetValidValue(value);
|
|
6160 ReportPropertyChanged("Subtotal");
|
|
6161 OnSubtotalChanged();
|
|
6162 }
|
|
6163 }
|
|
6164 private Nullable<global::System.Decimal> _Subtotal;
|
|
6165 partial void OnSubtotalChanging(Nullable<global::System.Decimal> value);
|
|
6166 partial void OnSubtotalChanged();
|
|
6167
|
|
6168 #endregion
|
|
6169
|
|
6170
|
|
6171 }
|
|
6172
|
|
6173 /// <summary>
|
|
6174 /// No Metadata Documentation available.
|
|
6175 /// </summary>
|
|
6176 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Summary_of_Sales_by_Year")]
|
|
6177 [Serializable()]
|
|
6178 [DataContractAttribute(IsReference=true)]
|
|
6179 public partial class Summary_of_Sales_by_Year : EntityObject
|
|
6180 {
|
|
6181 #region Factory Method
|
|
6182
|
|
6183 /// <summary>
|
|
6184 /// Create a new Summary_of_Sales_by_Year object.
|
|
6185 /// </summary>
|
|
6186 /// <param name="orderID">Initial value of the OrderID property.</param>
|
|
6187 public static Summary_of_Sales_by_Year CreateSummary_of_Sales_by_Year(global::System.Int32 orderID)
|
|
6188 {
|
|
6189 Summary_of_Sales_by_Year summary_of_Sales_by_Year = new Summary_of_Sales_by_Year();
|
|
6190 summary_of_Sales_by_Year.OrderID = orderID;
|
|
6191 return summary_of_Sales_by_Year;
|
|
6192 }
|
|
6193
|
|
6194 #endregion
|
|
6195
|
|
6196 #region Primitive Properties
|
|
6197
|
|
6198 /// <summary>
|
|
6199 /// No Metadata Documentation available.
|
|
6200 /// </summary>
|
|
6201 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6202 [DataMemberAttribute()]
|
|
6203 public Nullable<global::System.DateTime> ShippedDate
|
|
6204 {
|
|
6205 get
|
|
6206 {
|
|
6207 return _ShippedDate;
|
|
6208 }
|
|
6209 set
|
|
6210 {
|
|
6211 OnShippedDateChanging(value);
|
|
6212 ReportPropertyChanging("ShippedDate");
|
|
6213 _ShippedDate = StructuralObject.SetValidValue(value);
|
|
6214 ReportPropertyChanged("ShippedDate");
|
|
6215 OnShippedDateChanged();
|
|
6216 }
|
|
6217 }
|
|
6218 private Nullable<global::System.DateTime> _ShippedDate;
|
|
6219 partial void OnShippedDateChanging(Nullable<global::System.DateTime> value);
|
|
6220 partial void OnShippedDateChanged();
|
|
6221
|
|
6222 /// <summary>
|
|
6223 /// No Metadata Documentation available.
|
|
6224 /// </summary>
|
|
6225 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
6226 [DataMemberAttribute()]
|
|
6227 public global::System.Int32 OrderID
|
|
6228 {
|
|
6229 get
|
|
6230 {
|
|
6231 return _OrderID;
|
|
6232 }
|
|
6233 set
|
|
6234 {
|
|
6235 if (_OrderID != value)
|
|
6236 {
|
|
6237 OnOrderIDChanging(value);
|
|
6238 ReportPropertyChanging("OrderID");
|
|
6239 _OrderID = StructuralObject.SetValidValue(value);
|
|
6240 ReportPropertyChanged("OrderID");
|
|
6241 OnOrderIDChanged();
|
|
6242 }
|
|
6243 }
|
|
6244 }
|
|
6245 private global::System.Int32 _OrderID;
|
|
6246 partial void OnOrderIDChanging(global::System.Int32 value);
|
|
6247 partial void OnOrderIDChanged();
|
|
6248
|
|
6249 /// <summary>
|
|
6250 /// No Metadata Documentation available.
|
|
6251 /// </summary>
|
|
6252 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6253 [DataMemberAttribute()]
|
|
6254 public Nullable<global::System.Decimal> Subtotal
|
|
6255 {
|
|
6256 get
|
|
6257 {
|
|
6258 return _Subtotal;
|
|
6259 }
|
|
6260 set
|
|
6261 {
|
|
6262 OnSubtotalChanging(value);
|
|
6263 ReportPropertyChanging("Subtotal");
|
|
6264 _Subtotal = StructuralObject.SetValidValue(value);
|
|
6265 ReportPropertyChanged("Subtotal");
|
|
6266 OnSubtotalChanged();
|
|
6267 }
|
|
6268 }
|
|
6269 private Nullable<global::System.Decimal> _Subtotal;
|
|
6270 partial void OnSubtotalChanging(Nullable<global::System.Decimal> value);
|
|
6271 partial void OnSubtotalChanged();
|
|
6272
|
|
6273 #endregion
|
|
6274
|
|
6275
|
|
6276 }
|
|
6277
|
|
6278 /// <summary>
|
|
6279 /// No Metadata Documentation available.
|
|
6280 /// </summary>
|
|
6281 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Supplier")]
|
|
6282 [Serializable()]
|
|
6283 [DataContractAttribute(IsReference=true)]
|
|
6284 public partial class Supplier : EntityObject
|
|
6285 {
|
|
6286 #region Factory Method
|
|
6287
|
|
6288 /// <summary>
|
|
6289 /// Create a new Supplier object.
|
|
6290 /// </summary>
|
|
6291 /// <param name="supplierID">Initial value of the SupplierID property.</param>
|
|
6292 /// <param name="companyName">Initial value of the CompanyName property.</param>
|
|
6293 public static Supplier CreateSupplier(global::System.Int32 supplierID, global::System.String companyName)
|
|
6294 {
|
|
6295 Supplier supplier = new Supplier();
|
|
6296 supplier.SupplierID = supplierID;
|
|
6297 supplier.CompanyName = companyName;
|
|
6298 return supplier;
|
|
6299 }
|
|
6300
|
|
6301 #endregion
|
|
6302
|
|
6303 #region Primitive Properties
|
|
6304
|
|
6305 /// <summary>
|
|
6306 /// No Metadata Documentation available.
|
|
6307 /// </summary>
|
|
6308 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
6309 [DataMemberAttribute()]
|
|
6310 public global::System.Int32 SupplierID
|
|
6311 {
|
|
6312 get
|
|
6313 {
|
|
6314 return _SupplierID;
|
|
6315 }
|
|
6316 set
|
|
6317 {
|
|
6318 if (_SupplierID != value)
|
|
6319 {
|
|
6320 OnSupplierIDChanging(value);
|
|
6321 ReportPropertyChanging("SupplierID");
|
|
6322 _SupplierID = StructuralObject.SetValidValue(value);
|
|
6323 ReportPropertyChanged("SupplierID");
|
|
6324 OnSupplierIDChanged();
|
|
6325 }
|
|
6326 }
|
|
6327 }
|
|
6328 private global::System.Int32 _SupplierID;
|
|
6329 partial void OnSupplierIDChanging(global::System.Int32 value);
|
|
6330 partial void OnSupplierIDChanged();
|
|
6331
|
|
6332 /// <summary>
|
|
6333 /// No Metadata Documentation available.
|
|
6334 /// </summary>
|
|
6335 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
6336 [DataMemberAttribute()]
|
|
6337 public global::System.String CompanyName
|
|
6338 {
|
|
6339 get
|
|
6340 {
|
|
6341 return _CompanyName;
|
|
6342 }
|
|
6343 set
|
|
6344 {
|
|
6345 OnCompanyNameChanging(value);
|
|
6346 ReportPropertyChanging("CompanyName");
|
|
6347 _CompanyName = StructuralObject.SetValidValue(value, false);
|
|
6348 ReportPropertyChanged("CompanyName");
|
|
6349 OnCompanyNameChanged();
|
|
6350 }
|
|
6351 }
|
|
6352 private global::System.String _CompanyName;
|
|
6353 partial void OnCompanyNameChanging(global::System.String value);
|
|
6354 partial void OnCompanyNameChanged();
|
|
6355
|
|
6356 /// <summary>
|
|
6357 /// No Metadata Documentation available.
|
|
6358 /// </summary>
|
|
6359 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6360 [DataMemberAttribute()]
|
|
6361 public global::System.String ContactName
|
|
6362 {
|
|
6363 get
|
|
6364 {
|
|
6365 return _ContactName;
|
|
6366 }
|
|
6367 set
|
|
6368 {
|
|
6369 OnContactNameChanging(value);
|
|
6370 ReportPropertyChanging("ContactName");
|
|
6371 _ContactName = StructuralObject.SetValidValue(value, true);
|
|
6372 ReportPropertyChanged("ContactName");
|
|
6373 OnContactNameChanged();
|
|
6374 }
|
|
6375 }
|
|
6376 private global::System.String _ContactName;
|
|
6377 partial void OnContactNameChanging(global::System.String value);
|
|
6378 partial void OnContactNameChanged();
|
|
6379
|
|
6380 /// <summary>
|
|
6381 /// No Metadata Documentation available.
|
|
6382 /// </summary>
|
|
6383 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6384 [DataMemberAttribute()]
|
|
6385 public global::System.String ContactTitle
|
|
6386 {
|
|
6387 get
|
|
6388 {
|
|
6389 return _ContactTitle;
|
|
6390 }
|
|
6391 set
|
|
6392 {
|
|
6393 OnContactTitleChanging(value);
|
|
6394 ReportPropertyChanging("ContactTitle");
|
|
6395 _ContactTitle = StructuralObject.SetValidValue(value, true);
|
|
6396 ReportPropertyChanged("ContactTitle");
|
|
6397 OnContactTitleChanged();
|
|
6398 }
|
|
6399 }
|
|
6400 private global::System.String _ContactTitle;
|
|
6401 partial void OnContactTitleChanging(global::System.String value);
|
|
6402 partial void OnContactTitleChanged();
|
|
6403
|
|
6404 /// <summary>
|
|
6405 /// No Metadata Documentation available.
|
|
6406 /// </summary>
|
|
6407 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6408 [DataMemberAttribute()]
|
|
6409 public global::System.String Address
|
|
6410 {
|
|
6411 get
|
|
6412 {
|
|
6413 return _Address;
|
|
6414 }
|
|
6415 set
|
|
6416 {
|
|
6417 OnAddressChanging(value);
|
|
6418 ReportPropertyChanging("Address");
|
|
6419 _Address = StructuralObject.SetValidValue(value, true);
|
|
6420 ReportPropertyChanged("Address");
|
|
6421 OnAddressChanged();
|
|
6422 }
|
|
6423 }
|
|
6424 private global::System.String _Address;
|
|
6425 partial void OnAddressChanging(global::System.String value);
|
|
6426 partial void OnAddressChanged();
|
|
6427
|
|
6428 /// <summary>
|
|
6429 /// No Metadata Documentation available.
|
|
6430 /// </summary>
|
|
6431 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6432 [DataMemberAttribute()]
|
|
6433 public global::System.String City
|
|
6434 {
|
|
6435 get
|
|
6436 {
|
|
6437 return _City;
|
|
6438 }
|
|
6439 set
|
|
6440 {
|
|
6441 OnCityChanging(value);
|
|
6442 ReportPropertyChanging("City");
|
|
6443 _City = StructuralObject.SetValidValue(value, true);
|
|
6444 ReportPropertyChanged("City");
|
|
6445 OnCityChanged();
|
|
6446 }
|
|
6447 }
|
|
6448 private global::System.String _City;
|
|
6449 partial void OnCityChanging(global::System.String value);
|
|
6450 partial void OnCityChanged();
|
|
6451
|
|
6452 /// <summary>
|
|
6453 /// No Metadata Documentation available.
|
|
6454 /// </summary>
|
|
6455 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6456 [DataMemberAttribute()]
|
|
6457 public global::System.String Region
|
|
6458 {
|
|
6459 get
|
|
6460 {
|
|
6461 return _Region;
|
|
6462 }
|
|
6463 set
|
|
6464 {
|
|
6465 OnRegionChanging(value);
|
|
6466 ReportPropertyChanging("Region");
|
|
6467 _Region = StructuralObject.SetValidValue(value, true);
|
|
6468 ReportPropertyChanged("Region");
|
|
6469 OnRegionChanged();
|
|
6470 }
|
|
6471 }
|
|
6472 private global::System.String _Region;
|
|
6473 partial void OnRegionChanging(global::System.String value);
|
|
6474 partial void OnRegionChanged();
|
|
6475
|
|
6476 /// <summary>
|
|
6477 /// No Metadata Documentation available.
|
|
6478 /// </summary>
|
|
6479 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6480 [DataMemberAttribute()]
|
|
6481 public global::System.String PostalCode
|
|
6482 {
|
|
6483 get
|
|
6484 {
|
|
6485 return _PostalCode;
|
|
6486 }
|
|
6487 set
|
|
6488 {
|
|
6489 OnPostalCodeChanging(value);
|
|
6490 ReportPropertyChanging("PostalCode");
|
|
6491 _PostalCode = StructuralObject.SetValidValue(value, true);
|
|
6492 ReportPropertyChanged("PostalCode");
|
|
6493 OnPostalCodeChanged();
|
|
6494 }
|
|
6495 }
|
|
6496 private global::System.String _PostalCode;
|
|
6497 partial void OnPostalCodeChanging(global::System.String value);
|
|
6498 partial void OnPostalCodeChanged();
|
|
6499
|
|
6500 /// <summary>
|
|
6501 /// No Metadata Documentation available.
|
|
6502 /// </summary>
|
|
6503 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6504 [DataMemberAttribute()]
|
|
6505 public global::System.String Country
|
|
6506 {
|
|
6507 get
|
|
6508 {
|
|
6509 return _Country;
|
|
6510 }
|
|
6511 set
|
|
6512 {
|
|
6513 OnCountryChanging(value);
|
|
6514 ReportPropertyChanging("Country");
|
|
6515 _Country = StructuralObject.SetValidValue(value, true);
|
|
6516 ReportPropertyChanged("Country");
|
|
6517 OnCountryChanged();
|
|
6518 }
|
|
6519 }
|
|
6520 private global::System.String _Country;
|
|
6521 partial void OnCountryChanging(global::System.String value);
|
|
6522 partial void OnCountryChanged();
|
|
6523
|
|
6524 /// <summary>
|
|
6525 /// No Metadata Documentation available.
|
|
6526 /// </summary>
|
|
6527 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6528 [DataMemberAttribute()]
|
|
6529 public global::System.String Phone
|
|
6530 {
|
|
6531 get
|
|
6532 {
|
|
6533 return _Phone;
|
|
6534 }
|
|
6535 set
|
|
6536 {
|
|
6537 OnPhoneChanging(value);
|
|
6538 ReportPropertyChanging("Phone");
|
|
6539 _Phone = StructuralObject.SetValidValue(value, true);
|
|
6540 ReportPropertyChanged("Phone");
|
|
6541 OnPhoneChanged();
|
|
6542 }
|
|
6543 }
|
|
6544 private global::System.String _Phone;
|
|
6545 partial void OnPhoneChanging(global::System.String value);
|
|
6546 partial void OnPhoneChanged();
|
|
6547
|
|
6548 /// <summary>
|
|
6549 /// No Metadata Documentation available.
|
|
6550 /// </summary>
|
|
6551 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6552 [DataMemberAttribute()]
|
|
6553 public global::System.String Fax
|
|
6554 {
|
|
6555 get
|
|
6556 {
|
|
6557 return _Fax;
|
|
6558 }
|
|
6559 set
|
|
6560 {
|
|
6561 OnFaxChanging(value);
|
|
6562 ReportPropertyChanging("Fax");
|
|
6563 _Fax = StructuralObject.SetValidValue(value, true);
|
|
6564 ReportPropertyChanged("Fax");
|
|
6565 OnFaxChanged();
|
|
6566 }
|
|
6567 }
|
|
6568 private global::System.String _Fax;
|
|
6569 partial void OnFaxChanging(global::System.String value);
|
|
6570 partial void OnFaxChanged();
|
|
6571
|
|
6572 /// <summary>
|
|
6573 /// No Metadata Documentation available.
|
|
6574 /// </summary>
|
|
6575 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6576 [DataMemberAttribute()]
|
|
6577 public global::System.String HomePage
|
|
6578 {
|
|
6579 get
|
|
6580 {
|
|
6581 return _HomePage;
|
|
6582 }
|
|
6583 set
|
|
6584 {
|
|
6585 OnHomePageChanging(value);
|
|
6586 ReportPropertyChanging("HomePage");
|
|
6587 _HomePage = StructuralObject.SetValidValue(value, true);
|
|
6588 ReportPropertyChanged("HomePage");
|
|
6589 OnHomePageChanged();
|
|
6590 }
|
|
6591 }
|
|
6592 private global::System.String _HomePage;
|
|
6593 partial void OnHomePageChanging(global::System.String value);
|
|
6594 partial void OnHomePageChanged();
|
|
6595
|
|
6596 #endregion
|
|
6597
|
|
6598
|
|
6599 #region Navigation Properties
|
|
6600
|
|
6601 /// <summary>
|
|
6602 /// No Metadata Documentation available.
|
|
6603 /// </summary>
|
|
6604 [XmlIgnoreAttribute()]
|
|
6605 [SoapIgnoreAttribute()]
|
|
6606 [DataMemberAttribute()]
|
|
6607 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Products_Suppliers", "Products")]
|
|
6608 public EntityCollection<Product> Products
|
|
6609 {
|
|
6610 get
|
|
6611 {
|
|
6612 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Product>("NorthwindModel.FK_Products_Suppliers", "Products");
|
|
6613 }
|
|
6614 set
|
|
6615 {
|
|
6616 if ((value != null))
|
|
6617 {
|
|
6618 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Product>("NorthwindModel.FK_Products_Suppliers", "Products", value);
|
|
6619 }
|
|
6620 }
|
|
6621 }
|
|
6622
|
|
6623 #endregion
|
|
6624
|
|
6625 }
|
|
6626
|
|
6627 /// <summary>
|
|
6628 /// No Metadata Documentation available.
|
|
6629 /// </summary>
|
|
6630 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="sysdiagram")]
|
|
6631 [Serializable()]
|
|
6632 [DataContractAttribute(IsReference=true)]
|
|
6633 public partial class sysdiagram : EntityObject
|
|
6634 {
|
|
6635 #region Factory Method
|
|
6636
|
|
6637 /// <summary>
|
|
6638 /// Create a new sysdiagram object.
|
|
6639 /// </summary>
|
|
6640 /// <param name="name">Initial value of the name property.</param>
|
|
6641 /// <param name="principal_id">Initial value of the principal_id property.</param>
|
|
6642 /// <param name="diagram_id">Initial value of the diagram_id property.</param>
|
|
6643 public static sysdiagram Createsysdiagram(global::System.String name, global::System.Int32 principal_id, global::System.Int32 diagram_id)
|
|
6644 {
|
|
6645 sysdiagram sysdiagram = new sysdiagram();
|
|
6646 sysdiagram.name = name;
|
|
6647 sysdiagram.principal_id = principal_id;
|
|
6648 sysdiagram.diagram_id = diagram_id;
|
|
6649 return sysdiagram;
|
|
6650 }
|
|
6651
|
|
6652 #endregion
|
|
6653
|
|
6654 #region Primitive Properties
|
|
6655
|
|
6656 /// <summary>
|
|
6657 /// No Metadata Documentation available.
|
|
6658 /// </summary>
|
|
6659 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
6660 [DataMemberAttribute()]
|
|
6661 public global::System.String name
|
|
6662 {
|
|
6663 get
|
|
6664 {
|
|
6665 return _name;
|
|
6666 }
|
|
6667 set
|
|
6668 {
|
|
6669 OnnameChanging(value);
|
|
6670 ReportPropertyChanging("name");
|
|
6671 _name = StructuralObject.SetValidValue(value, false);
|
|
6672 ReportPropertyChanged("name");
|
|
6673 OnnameChanged();
|
|
6674 }
|
|
6675 }
|
|
6676 private global::System.String _name;
|
|
6677 partial void OnnameChanging(global::System.String value);
|
|
6678 partial void OnnameChanged();
|
|
6679
|
|
6680 /// <summary>
|
|
6681 /// No Metadata Documentation available.
|
|
6682 /// </summary>
|
|
6683 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
6684 [DataMemberAttribute()]
|
|
6685 public global::System.Int32 principal_id
|
|
6686 {
|
|
6687 get
|
|
6688 {
|
|
6689 return _principal_id;
|
|
6690 }
|
|
6691 set
|
|
6692 {
|
|
6693 Onprincipal_idChanging(value);
|
|
6694 ReportPropertyChanging("principal_id");
|
|
6695 _principal_id = StructuralObject.SetValidValue(value);
|
|
6696 ReportPropertyChanged("principal_id");
|
|
6697 Onprincipal_idChanged();
|
|
6698 }
|
|
6699 }
|
|
6700 private global::System.Int32 _principal_id;
|
|
6701 partial void Onprincipal_idChanging(global::System.Int32 value);
|
|
6702 partial void Onprincipal_idChanged();
|
|
6703
|
|
6704 /// <summary>
|
|
6705 /// No Metadata Documentation available.
|
|
6706 /// </summary>
|
|
6707 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
6708 [DataMemberAttribute()]
|
|
6709 public global::System.Int32 diagram_id
|
|
6710 {
|
|
6711 get
|
|
6712 {
|
|
6713 return _diagram_id;
|
|
6714 }
|
|
6715 set
|
|
6716 {
|
|
6717 if (_diagram_id != value)
|
|
6718 {
|
|
6719 Ondiagram_idChanging(value);
|
|
6720 ReportPropertyChanging("diagram_id");
|
|
6721 _diagram_id = StructuralObject.SetValidValue(value);
|
|
6722 ReportPropertyChanged("diagram_id");
|
|
6723 Ondiagram_idChanged();
|
|
6724 }
|
|
6725 }
|
|
6726 }
|
|
6727 private global::System.Int32 _diagram_id;
|
|
6728 partial void Ondiagram_idChanging(global::System.Int32 value);
|
|
6729 partial void Ondiagram_idChanged();
|
|
6730
|
|
6731 /// <summary>
|
|
6732 /// No Metadata Documentation available.
|
|
6733 /// </summary>
|
|
6734 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6735 [DataMemberAttribute()]
|
|
6736 public Nullable<global::System.Int32> version
|
|
6737 {
|
|
6738 get
|
|
6739 {
|
|
6740 return _version;
|
|
6741 }
|
|
6742 set
|
|
6743 {
|
|
6744 OnversionChanging(value);
|
|
6745 ReportPropertyChanging("version");
|
|
6746 _version = StructuralObject.SetValidValue(value);
|
|
6747 ReportPropertyChanged("version");
|
|
6748 OnversionChanged();
|
|
6749 }
|
|
6750 }
|
|
6751 private Nullable<global::System.Int32> _version;
|
|
6752 partial void OnversionChanging(Nullable<global::System.Int32> value);
|
|
6753 partial void OnversionChanged();
|
|
6754
|
|
6755 /// <summary>
|
|
6756 /// No Metadata Documentation available.
|
|
6757 /// </summary>
|
|
6758 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
|
|
6759 [DataMemberAttribute()]
|
|
6760 public global::System.Byte[] definition
|
|
6761 {
|
|
6762 get
|
|
6763 {
|
|
6764 return StructuralObject.GetValidValue(_definition);
|
|
6765 }
|
|
6766 set
|
|
6767 {
|
|
6768 OndefinitionChanging(value);
|
|
6769 ReportPropertyChanging("definition");
|
|
6770 _definition = StructuralObject.SetValidValue(value, true);
|
|
6771 ReportPropertyChanged("definition");
|
|
6772 OndefinitionChanged();
|
|
6773 }
|
|
6774 }
|
|
6775 private global::System.Byte[] _definition;
|
|
6776 partial void OndefinitionChanging(global::System.Byte[] value);
|
|
6777 partial void OndefinitionChanged();
|
|
6778
|
|
6779 #endregion
|
|
6780
|
|
6781
|
|
6782 }
|
|
6783
|
|
6784 /// <summary>
|
|
6785 /// No Metadata Documentation available.
|
|
6786 /// </summary>
|
|
6787 [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Territory")]
|
|
6788 [Serializable()]
|
|
6789 [DataContractAttribute(IsReference=true)]
|
|
6790 public partial class Territory : EntityObject
|
|
6791 {
|
|
6792 #region Factory Method
|
|
6793
|
|
6794 /// <summary>
|
|
6795 /// Create a new Territory object.
|
|
6796 /// </summary>
|
|
6797 /// <param name="territoryID">Initial value of the TerritoryID property.</param>
|
|
6798 /// <param name="territoryDescription">Initial value of the TerritoryDescription property.</param>
|
|
6799 /// <param name="regionID">Initial value of the RegionID property.</param>
|
|
6800 public static Territory CreateTerritory(global::System.String territoryID, global::System.String territoryDescription, global::System.Int32 regionID)
|
|
6801 {
|
|
6802 Territory territory = new Territory();
|
|
6803 territory.TerritoryID = territoryID;
|
|
6804 territory.TerritoryDescription = territoryDescription;
|
|
6805 territory.RegionID = regionID;
|
|
6806 return territory;
|
|
6807 }
|
|
6808
|
|
6809 #endregion
|
|
6810
|
|
6811 #region Primitive Properties
|
|
6812
|
|
6813 /// <summary>
|
|
6814 /// No Metadata Documentation available.
|
|
6815 /// </summary>
|
|
6816 [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
|
|
6817 [DataMemberAttribute()]
|
|
6818 public global::System.String TerritoryID
|
|
6819 {
|
|
6820 get
|
|
6821 {
|
|
6822 return _TerritoryID;
|
|
6823 }
|
|
6824 set
|
|
6825 {
|
|
6826 if (_TerritoryID != value)
|
|
6827 {
|
|
6828 OnTerritoryIDChanging(value);
|
|
6829 ReportPropertyChanging("TerritoryID");
|
|
6830 _TerritoryID = StructuralObject.SetValidValue(value, false);
|
|
6831 ReportPropertyChanged("TerritoryID");
|
|
6832 OnTerritoryIDChanged();
|
|
6833 }
|
|
6834 }
|
|
6835 }
|
|
6836 private global::System.String _TerritoryID;
|
|
6837 partial void OnTerritoryIDChanging(global::System.String value);
|
|
6838 partial void OnTerritoryIDChanged();
|
|
6839
|
|
6840 /// <summary>
|
|
6841 /// No Metadata Documentation available.
|
|
6842 /// </summary>
|
|
6843 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
6844 [DataMemberAttribute()]
|
|
6845 public global::System.String TerritoryDescription
|
|
6846 {
|
|
6847 get
|
|
6848 {
|
|
6849 return _TerritoryDescription;
|
|
6850 }
|
|
6851 set
|
|
6852 {
|
|
6853 OnTerritoryDescriptionChanging(value);
|
|
6854 ReportPropertyChanging("TerritoryDescription");
|
|
6855 _TerritoryDescription = StructuralObject.SetValidValue(value, false);
|
|
6856 ReportPropertyChanged("TerritoryDescription");
|
|
6857 OnTerritoryDescriptionChanged();
|
|
6858 }
|
|
6859 }
|
|
6860 private global::System.String _TerritoryDescription;
|
|
6861 partial void OnTerritoryDescriptionChanging(global::System.String value);
|
|
6862 partial void OnTerritoryDescriptionChanged();
|
|
6863
|
|
6864 /// <summary>
|
|
6865 /// No Metadata Documentation available.
|
|
6866 /// </summary>
|
|
6867 [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
|
|
6868 [DataMemberAttribute()]
|
|
6869 public global::System.Int32 RegionID
|
|
6870 {
|
|
6871 get
|
|
6872 {
|
|
6873 return _RegionID;
|
|
6874 }
|
|
6875 set
|
|
6876 {
|
|
6877 OnRegionIDChanging(value);
|
|
6878 ReportPropertyChanging("RegionID");
|
|
6879 _RegionID = StructuralObject.SetValidValue(value);
|
|
6880 ReportPropertyChanged("RegionID");
|
|
6881 OnRegionIDChanged();
|
|
6882 }
|
|
6883 }
|
|
6884 private global::System.Int32 _RegionID;
|
|
6885 partial void OnRegionIDChanging(global::System.Int32 value);
|
|
6886 partial void OnRegionIDChanged();
|
|
6887
|
|
6888 #endregion
|
|
6889
|
|
6890
|
|
6891 #region Navigation Properties
|
|
6892
|
|
6893 /// <summary>
|
|
6894 /// No Metadata Documentation available.
|
|
6895 /// </summary>
|
|
6896 [XmlIgnoreAttribute()]
|
|
6897 [SoapIgnoreAttribute()]
|
|
6898 [DataMemberAttribute()]
|
|
6899 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Territories_Region", "Region")]
|
|
6900 public Region Region
|
|
6901 {
|
|
6902 get
|
|
6903 {
|
|
6904 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Region>("NorthwindModel.FK_Territories_Region", "Region").Value;
|
|
6905 }
|
|
6906 set
|
|
6907 {
|
|
6908 ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Region>("NorthwindModel.FK_Territories_Region", "Region").Value = value;
|
|
6909 }
|
|
6910 }
|
|
6911 /// <summary>
|
|
6912 /// No Metadata Documentation available.
|
|
6913 /// </summary>
|
|
6914 [BrowsableAttribute(false)]
|
|
6915 [DataMemberAttribute()]
|
|
6916 public EntityReference<Region> RegionReference
|
|
6917 {
|
|
6918 get
|
|
6919 {
|
|
6920 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Region>("NorthwindModel.FK_Territories_Region", "Region");
|
|
6921 }
|
|
6922 set
|
|
6923 {
|
|
6924 if ((value != null))
|
|
6925 {
|
|
6926 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Region>("NorthwindModel.FK_Territories_Region", "Region", value);
|
|
6927 }
|
|
6928 }
|
|
6929 }
|
|
6930
|
|
6931 /// <summary>
|
|
6932 /// No Metadata Documentation available.
|
|
6933 /// </summary>
|
|
6934 [XmlIgnoreAttribute()]
|
|
6935 [SoapIgnoreAttribute()]
|
|
6936 [DataMemberAttribute()]
|
|
6937 [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "EmployeeTerritories", "Employees")]
|
|
6938 public EntityCollection<Employee> Employees
|
|
6939 {
|
|
6940 get
|
|
6941 {
|
|
6942 return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Employee>("NorthwindModel.EmployeeTerritories", "Employees");
|
|
6943 }
|
|
6944 set
|
|
6945 {
|
|
6946 if ((value != null))
|
|
6947 {
|
|
6948 ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Employee>("NorthwindModel.EmployeeTerritories", "Employees", value);
|
|
6949 }
|
|
6950 }
|
|
6951 }
|
|
6952
|
|
6953 #endregion
|
|
6954
|
|
6955 }
|
|
6956
|
|
6957 #endregion
|
|
6958
|
|
6959
|
|
6960 }
|