Entity Framework - not updating referenced model
问题 I have a model, 'Person', that references another model, 'Salutation'. public class Person { public int Id { get; set; } public Boolean Active { get; set; } // fk public virtual Salutation Salutation { get; set; } public virtual PersonName Name { get; set; } } public class Salutation { public int Id { get; set; } public string Name { get; set; } } when I try and UPDATE the 'Person' with a different 'Salutation' it doesn't update. Though if I change the actual data within the 'salutation' it