Final
This commit is contained in:
@@ -21,13 +21,19 @@ namespace BibliotecaAPI.Models
|
||||
public DateTime FechaPrestamo { get; set; } = DateTime.Now;
|
||||
public DateTime? FechaDevolucion { get; set; }
|
||||
public bool Devuelto { get; set; } = false;*/
|
||||
public int IdPrestamo { get; set; }
|
||||
public int IdUsuario { get; set; }
|
||||
public int IdLibro { get; set; }
|
||||
public DateTime FechaPrestamo { get; set; }
|
||||
public bool Devuelto {get;set;}
|
||||
[Key]
|
||||
public int Id_Prestamo { get; set; }
|
||||
[ForeignKey(nameof(Libro))]
|
||||
public int Id_Libro { get; set; } // FK
|
||||
//public Libro Libro { get; set; } // Propiedad de navegación
|
||||
|
||||
[ForeignKey(nameof(Usuario))]
|
||||
public int Id_Usuario { get; set; } // FK
|
||||
//public Usuario Usuario { get; set; } // Propiedad de navegación
|
||||
|
||||
public DateTime Fecha_Prestamo { get; set; }
|
||||
public bool Devuelto { get; set; }
|
||||
|
||||
|
||||
public Usuario Usuario { get; set; }
|
||||
public Libro Libro { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user