I\'m new to Entity Framework and this behavior confuses me:
[Table(\"ClinicProfile\")] public class ClinicProfile { [Key] [Databa
You just need to set ContactDataId, when updating
ContactDataId
clinicProfile.ContactData = contactData; clinicProfile.ContactDataId = contactData.Id; SharedContext.Current.Entry(clinicProfile).State = EntityState.Modified; SharedContext.Current.SaveChanges();