// <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 Editoriales
    {
        public Editoriales()
        {
            Libros = new HashSet<Libros>();
        }

        [Key]
        public int IdEditorial { get; set; }
        public int? IdCiudad { get; set; }
        [StringLength(30)]
        public string Nombre { get; set; }
        [StringLength(30)]
        public string Dirección { get; set; }
        public int? Telefono { get; set; }

        [ForeignKey(nameof(IdCiudad))]
        [InverseProperty(nameof(Ciudades.Editoriales))]
        public virtual Ciudades IdCiudadNavigation { get; set; }
        [InverseProperty("IdEditorialNavigation")]
        public virtual ICollection<Libros> Libros { get; set; }
    }
}