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

        [Key]
        public int IdCiudad { get; set; }
        public int? IdPais { get; set; }
        [StringLength(30)]
        public string Nombre { get; set; }
        [StringLength(30)]
        public string CodigoDane { get; set; }

        [ForeignKey(nameof(IdPais))]
        [InverseProperty(nameof(Paises.Ciudades))]
        public virtual Paises IdPaisNavigation { get; set; }
        [InverseProperty("IdCiudadNavigation")]
        public virtual ICollection<Editoriales> Editoriales { get; set; }
    }
}