Hajo,
I've been trying to save m:n for last 2 hours but I can't find out how to do this?
I have simple User and Role situation. User can be in many roles and one role can be assigned to many user. At the moment my code looks like that (SelfServicing):
Role role = new Role();
role.Name = textBoxRoleName.Text;
User user = DAL.DataClasses.User.FindByName("user1");
user.Roles.Add(role);
user.Save(true);
It saves role object but junction table (UserRoles) is empty. It seems that I can't store anything about relation between User and Role object?
thanks