// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace Biblioteca.Datos.Contexto.Repositorio
{
    public partial class Libros
    {
        public Libros()
        {
            PrestamosUsuarios = new HashSet<PrestamosUsuarios>();
        }

        [Key]
        public int IdLibro { get; set; }
        public int? IdEditorial { get; set; }
        public int? IdIsbn { get; set; }
        public int? IdAutor { get; set; }
        [StringLength(50)]
        public string Nombre { get; set; }

        [ForeignKey(nameof(IdAutor))]
        [InverseProperty(nameof(Autores.Libros))]
        public virtual Autores IdAutorNavigation { get; set; }
        [ForeignKey(nameof(IdEditorial))]
        [InverseProperty(nameof(Editoriales.Libros))]
        public virtual Editoriales IdEditorialNavigation { get; set; }
        [ForeignKey(nameof(IdIsbn))]
        [InverseProperty(nameof(Isbn.Libros))]
        public virtual Isbn IdIsbnNavigation { get; set; }
        [InverseProperty("IdLibroNavigation")]
        public virtual ICollection<PrestamosUsuarios> PrestamosUsuarios { get; set; }
    }
}