blob: bcf9ef70a08fda08c0222c1d98b6483c7560de97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace LibraryAPI.Models {
public class Book {
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public int PublicationYear { get; set; }
public string[] Genres { get; set; }
public int Edition { get; set; }
public string ISBN { get; set; }
public string Title { get; set; }
}
}
|