-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathNorthwindModels.cs
124 lines (111 loc) · 3.55 KB
/
NorthwindModels.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
using System;
using System.Collections.Generic;
namespace NorthwindModels
{
public class Company
{
public string Id { get; set; }
public string ExternalId { get; set; }
public string Name { get; set; }
public Contact Contact { get; set; }
public Address Address { get; set; }
public string Phone { get; set; }
public string Fax { get; set; }
}
public class Address
{
public string Line1 { get; set; }
public string Line2 { get; set; }
public string City { get; set; }
public string Region { get; set; }
public string PostalCode { get; set; }
public string Country { get; set; }
}
public class Contact
{
public string Name { get; set; }
public string Title { get; set; }
}
public class Category
{
public string Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
}
public class Order
{
public string Id { get; set; }
public string Company { get; set; }
public string Employee { get; set; }
public DateTime OrderedAt { get; set; }
public DateTime RequireAt { get; set; }
public DateTime? ShippedAt { get; set; }
public Address ShipTo { get; set; }
public string ShipVia { get; set; }
public decimal Freight { get; set; }
public List<OrderLine> Lines { get; set; }
}
public class OrderLine
{
public string Product { get; set; }
public string ProductName { get; set; }
public decimal PricePerUnit { get; set; }
public int Quantity { get; set; }
public decimal Discount { get; set; }
}
public class Product
{
public string Id { get; set; }
public string Name { get; set; }
public string Supplier { get; set; }
public string Category { get; set; }
public string QuantityPerUnit { get; set; }
public decimal PricePerUnit { get; set; }
public int UnitsInStock { get; set; }
public int UnitsOnOrder { get; set; }
public bool Discontinued { get; set; }
public int ReorderLevel { get; set; }
}
public class Supplier
{
public string Id { get; set; }
public Contact Contact { get; set; }
public string Name { get; set; }
public Address Address { get; set; }
public string Phone { get; set; }
public string Fax { get; set; }
public string HomePage { get; set; }
}
public class Employee
{
public string Id { get; set; }
public string LastName { get; set; }
public string FirstName { get; set; }
public string Title { get; set; }
public Address Address { get; set; }
public DateTime HiredAt { get; set; }
public DateTime Birthday { get; set; }
public string HomePhone { get; set; }
public string Extension { get; set; }
public string ReportsTo { get; set; }
public List<string> Notes { get; set; }
public List<string> Territories { get; set; }
}
public class Region
{
public string Id { get; set; }
public string Name { get; set; }
public List<Territory> Territories { get; set; }
}
public class Territory
{
public string Code { get; set; }
public string Name { get; set; }
}
public class Shipper
{
public string Id { get; set; }
public string Name { get; set; }
public string Phone { get; set; }
}
}