summaryrefslogtreecommitdiff
path: root/Models/Book.cs
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-09-15 18:41:11 -0500
committerHombreLaser <sebastian-440@live.com>2022-09-15 18:41:11 -0500
commit8901a18b0e26cf9ad0aa929e2f656a80cd2f4b09 (patch)
tree2455ac759f1eb0953854d177005086b5d995a9ec /Models/Book.cs
parent68b94929d44e1f4ffbee4cadc4c54cc438f6634c (diff)
Cambiar URL del controlador
Diffstat (limited to 'Models/Book.cs')
-rw-r--r--Models/Book.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Models/Book.cs b/Models/Book.cs
index 998a3ee..d648c12 100644
--- a/Models/Book.cs
+++ b/Models/Book.cs
@@ -1,5 +1,10 @@
+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 DateTime PublicationDate { get; set; }