using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations.Schema; namespace Elwig.Models { [Table("postal_dest"), PrimaryKey("CountryCode", "Id")] public class PostalDest { [Column("country")] public string CountryCode { get; private set; } [Column("id")] public string Id { get; private set; } [ForeignKey("CountryCode")] public virtual Country Country { get; private set; } [ForeignKey("Id")] public virtual AT_PlzDest? AtPlz { get; private set; } } }