1
+ using System ;
2
+ using ServiceStack . DataAnnotations ;
3
+
4
+ namespace ServiceStack . OrmLite . SqliteTests
5
+ {
6
+ public class Category
7
+ {
8
+ public int Id { get ; set ; }
9
+ public string CategoryName { get ; set ; }
10
+ public string Description { get ; set ; }
11
+ }
12
+
13
+ public class Customer
14
+ {
15
+ public string Id { get ; set ; }
16
+ public string CompanyName { get ; set ; }
17
+ public string ContactName { get ; set ; }
18
+ public string ContactTitle { get ; set ; }
19
+ public string Address { get ; set ; }
20
+ public string City { get ; set ; }
21
+ public string Region { get ; set ; }
22
+ public string PostalCode { get ; set ; }
23
+ public string Country { get ; set ; }
24
+ public string Phone { get ; set ; }
25
+ public string Fax { get ; set ; }
26
+ }
27
+
28
+ public class Employee
29
+ {
30
+ public int Id { get ; set ; }
31
+ public string LastName { get ; set ; }
32
+ public string FirstName { get ; set ; }
33
+ public string Title { get ; set ; }
34
+ public string TitleOfCourtesy { get ; set ; }
35
+ public DateTime ? BirthDate { get ; set ; }
36
+ public DateTime ? HireDate { get ; set ; }
37
+ public string Address { get ; set ; }
38
+ public string City { get ; set ; }
39
+ public string Region { get ; set ; }
40
+ public string PostalCode { get ; set ; }
41
+ public string Country { get ; set ; }
42
+ public string HomePhone { get ; set ; }
43
+ public string Extension { get ; set ; }
44
+ public byte [ ] Photo { get ; set ; }
45
+
46
+ [ StringLength ( StringLengthAttribute . MaxText ) ]
47
+ public string Notes { get ; set ; }
48
+
49
+ public int ? ReportsTo { get ; set ; }
50
+ public string PhotoPath { get ; set ; }
51
+ }
52
+
53
+ public class EmployeeTerritory
54
+ {
55
+ public string Id => $ "{ EmployeeId } /{ TerritoryId } ";
56
+ public int EmployeeId { get ; set ; }
57
+ public string TerritoryId { get ; set ; }
58
+ }
59
+
60
+ public class Order
61
+ {
62
+ public int Id { get ; set ; }
63
+ public string CustomerId { get ; set ; }
64
+ public int EmployeeId { get ; set ; }
65
+ public DateTime ? OrderDate { get ; set ; }
66
+ public DateTime ? RequiredDate { get ; set ; }
67
+ public DateTime ? ShippedDate { get ; set ; }
68
+ public int ? ShipVia { get ; set ; }
69
+ public decimal Freight { get ; set ; }
70
+ public string ShipName { get ; set ; }
71
+ public string ShipAddress { get ; set ; }
72
+ public string ShipCity { get ; set ; }
73
+ public string ShipRegion { get ; set ; }
74
+ public string ShipPostalCode { get ; set ; }
75
+ public string ShipCountry { get ; set ; }
76
+ }
77
+
78
+ public class OrderDetail
79
+ {
80
+ public string Id => $ "{ OrderId } /{ ProductId } ";
81
+ public int OrderId { get ; set ; }
82
+ public int ProductId { get ; set ; }
83
+ public decimal UnitPrice { get ; set ; }
84
+ public short Quantity { get ; set ; }
85
+ public double Discount { get ; set ; }
86
+ }
87
+
88
+ public class Product
89
+ {
90
+ public int Id { get ; set ; }
91
+ public string ProductName { get ; set ; }
92
+ public int SupplierId { get ; set ; }
93
+ public int CategoryId { get ; set ; }
94
+ public string QuantityPerUnit { get ; set ; }
95
+ public decimal UnitPrice { get ; set ; }
96
+ public short UnitsInStock { get ; set ; }
97
+ public short UnitsOnOrder { get ; set ; }
98
+ public short ReorderLevel { get ; set ; }
99
+ public bool Discontinued { get ; set ; }
100
+ }
101
+
102
+ public class Region
103
+ {
104
+ public int Id { get ; set ; }
105
+ public string RegionDescription { get ; set ; }
106
+ }
107
+
108
+ public class Shipper
109
+ {
110
+ public int Id { get ; set ; }
111
+ public string CompanyName { get ; set ; }
112
+ public string Phone { get ; set ; }
113
+ }
114
+
115
+ public class Supplier
116
+ {
117
+ public int Id { get ; set ; }
118
+ public string CompanyName { get ; set ; }
119
+ public string ContactName { get ; set ; }
120
+ public string ContactTitle { get ; set ; }
121
+ public string Address { get ; set ; }
122
+ public string City { get ; set ; }
123
+ public string Region { get ; set ; }
124
+ public string PostalCode { get ; set ; }
125
+ public string Country { get ; set ; }
126
+ public string Phone { get ; set ; }
127
+ public string Fax { get ; set ; }
128
+ public string HomePage { get ; set ; }
129
+ }
130
+
131
+ public class Territory
132
+ {
133
+ public string Id { get ; set ; }
134
+ public string TerritoryDescription { get ; set ; }
135
+ public int RegionId { get ; set ; }
136
+ }
137
+ }
0 commit comments