I have the following situation:
role.Permissions.Add(permission);
objectContext.SaveChanges();
When I look at the Roles_Permissions relationship table now, there is no new added permission for the role. It only retains a new relationship when I have the context of the object. Am I doing something wrong or does the SaveChanges call not save the changes in the relationship sets?
source
share