-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntities.cs
More file actions
38 lines (35 loc) · 819 Bytes
/
Entities.cs
File metadata and controls
38 lines (35 loc) · 819 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
32
33
34
35
36
37
38
namespace ODataWebAPI
{
// Book
public class Book
{
public int Id { get; set; }
public string ISBN { get; set; }
public string Title { get; set; }
public string Author { get; set; }
public decimal Price { get; set; }
public Address Location { get; set; }
public Press Press { get; set; }
}
// Press
public class Press
{
public int Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public Category Category { get; set; }
}
// Category
public enum Category
{
Book,
Magazine,
EBook
}
// Address
public class Address
{
public string City { get; set; }
public string Street { get; set; }
}
}