You can add the [NotMapped] attribute to the property that you want to exclude from the database:
public string Address { get; set; } [StringLength(40)] public string City { get; set; } [StringLength(30)] public string State { get; set; } [StringLength(10)] [NotMapped] public string Zip { get; set; }
source share