-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathNWindData.cs
More file actions
31 lines (28 loc) · 787 Bytes
/
NWindData.cs
File metadata and controls
31 lines (28 loc) · 787 Bytes
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
namespace MasterDetailExample
{
public class NWindData
{
public List<Customer> Customers { get; set; } = new();
public record Customer(
string CustomerId,
string CompanyName,
string ContactName,
string Country,
string Address,
string City,
string Phone,
List<Order> Orders);
public record Order(
string OrderID,
DateTime? OrderDate,
string ShipCountry,
double Freight,
List<OrderDetails> OrderDetails);
public record OrderDetails(
int ProductId,
string ProductName,
int Quantity,
decimal UnitPrice,
double Discount);
}
}