using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace Packt.Shared { public partial class CustomerDemographic { public CustomerDemographic() { Customers = new HashSet(); } [Key] [Column("CustomerTypeID")] [StringLength(10)] public string CustomerTypeId { get; set; } = null!; [Column(TypeName = "ntext")] public string? CustomerDesc { get; set; } [ForeignKey("CustomerTypeId")] [InverseProperty("CustomerTypes")] public virtual ICollection Customers { get; set; } } }