For EF5 and older:
In the DbContext.OnModelCreating
override for your context:
modelBuilder.Entity<Product>().Ignore(p => p.AddressDetails.Country);
For EF6: You’re out of luck. See Mrchief’s answer.
For EF5 and older:
In the DbContext.OnModelCreating
override for your context:
modelBuilder.Entity<Product>().Ignore(p => p.AddressDetails.Country);
For EF6: You’re out of luck. See Mrchief’s answer.