Created
July 3, 2018 22:00
-
-
Save xuzhg/871e540a3f7e9634c374398b68655523 to your computer and use it in GitHub Desktop.
bookstoremodelclass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment