19 lines
556 B
C#
19 lines
556 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BibliotecaAPI.Models
|
|
{
|
|
public class Libro
|
|
{
|
|
[Key]
|
|
public int Id_Libro { get; set; }
|
|
public string Titulo { get; set; } = string.Empty;
|
|
public string Autor { get; set; } = string.Empty;
|
|
public string ISBN { get; set; } = string.Empty;
|
|
public int Ano { get; set; }
|
|
public string Categoria { get; set; } = string.Empty;
|
|
public int Copias_Disponibles { get; set; }
|
|
|
|
public ICollection<Prestamo> Prestamos {get;set;}
|
|
}
|
|
}
|