BuecherwurmAPI/Models/Book.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2020-05-28 11:47:02 +00:00
using System.ComponentModel.DataAnnotations;
namespace BuecherwurmAPI.Models
{
public class Book
{
public string Name {get; set;}
public string Author {get; set;}
public string Country {get; set;}
public string Link {get; set;}
public string Language {get; set;}
2020-06-02 10:55:17 +00:00
public long Pages {get; set;}
public long Year {get; set;}
2020-06-03 10:43:03 +00:00
[Key, Required]
2020-06-02 10:55:17 +00:00
public long ProductId { get; set; }
2020-06-04 07:34:31 +00:00
public long Category { get; set; }
2020-05-28 11:47:02 +00:00
public string ImageLink { get; set; }
2020-06-02 10:55:17 +00:00
public long LendTime {get; set;}
2020-06-04 07:34:31 +00:00
public long LendType {get; set;}
2020-05-28 11:47:02 +00:00
}
2020-06-03 10:43:03 +00:00
public class BookPost
{
public string Name {get; set;}
public string Author {get; set;}
public string Country {get; set;}
public string Link {get; set;}
public string Language {get; set;}
public long Pages {get; set;}
public long Year {get; set;}
2020-06-04 07:34:31 +00:00
public long Category { get; set; }
2020-06-03 10:43:03 +00:00
public string ImageLink { get; set; }
public long LendTime {get; set;}
2020-06-04 07:34:31 +00:00
public long LendType {get; set;}
2020-06-03 10:43:03 +00:00
}
2020-05-28 11:47:02 +00:00
}