i have this scenario when creating a new record it also recreates it's association.
User newUser = new User();
newUser.UserGroupID = 1;
newUser.UserGroup = UserGroup.Find(1);
using (InventorySystemEntities context = new InventorySystemEntities(new ConfigurationManager().ConnectionString))
{
context.Users.Add(newUser);
context.SaveChanges();
}
when i save it, it creates a new User record, and so is a new UserGroup record.