using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; using System.Web.Mvc; using System.ComponentModel.DataAnnotations.Schema; namespace HealthchoiceMVC.Models { public class PersonAddress { [Key] public int PersonAddressId { get; set; } [Required] [Display(Name = "Person")] public int PersonId { get; set; } [Required] [Display(Name = "Address Type")] public int PersonAddressTypeId { get; set; } [Required] [MaxLength(250)] [Display(Name = "Address Line 1")] public string AddressLineOne { get; set; } [Required] [MaxLength(250)] [Display(Name = "Address Line 2")] public string AddressLineTwo { get; set; } [Display(Name = "Area or Suburb")] [MaxLength(150)] public string AreaSuburb { get; set; } [Required] [Display(Name = "City or Town")] [MaxLength(150)] public string CityTown { get; set; } [Required] [Display(Name = "Postal Code")] [MaxLength(20)] public string PostalCode { get; set; } [Display(Name = "Active")] public short ActiveIndic { get; set; } } }