-
Notifications
You must be signed in to change notification settings - Fork 6
/
LargeItem.cs
79 lines (58 loc) · 1.69 KB
/
LargeItem.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
using System;
using System.Collections.Generic;
using MessagePack;
namespace WcfVsWebApiVsAspNetCoreBenchmark
{
[MessagePackObject]
public class LargeItem
{
[Key(0)]
public Guid OrderId { get; set; }
[Key(1)]
public ulong OrderNumber { get; set; }
[Key(2)]
public string EmailAddress { get; set; }
[Key(3)]
public Address ShippingAddress { get; set; } = new Address();
[Key(4)]
public Address InvoiceAddress { get; set; } = new Address();
[Key(5)]
public DateTimeOffset RequestedDeliveryDate { get; set; }
[Key(6)]
public decimal ShippingCosts { get; set; }
[Key(7)]
public DateTimeOffset LastModified { get; set; }
[Key(8)]
public Guid CreateNonce { get; set; }
[Key(9)]
public List<OrderLine> OrderLines { get; set; }
}
[MessagePackObject]
public class OrderLine
{
[Key(0)]
public string Sku { get; set; }
[Key(1)]
public int Quantity { get; set; }
[Key(2)]
public string Product { get; set; }
[Key(3)]
public decimal Price { get; set; }
}
[MessagePackObject]
public class Address
{
[Key(0)]
public string Name { get; set; }
[Key(1)]
public string Street { get; set; }
[Key(2)]
public string HouseNumber { get; set; }
[Key(3)]
public string PostalCode { get; set; }
[Key(4)]
public string City { get; set; }
[Key(5)]
public string Country { get; set; }
}
}