From 8901a18b0e26cf9ad0aa929e2f656a80cd2f4b09 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 15 Sep 2022 18:41:11 -0500 Subject: Cambiar URL del controlador --- Models/Book.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Models/Book.cs') 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; } -- cgit v1.2.3