I've a database with the following tables:
I can get Roles out of a Person and vice versa. Works okay.
Now I have to add a function that can add a Person into a Role (as needed bij the MembershipProvider).
So, how can I do this within LINQ?
Since the OpenAccess Model doesn't show the intermediate table, which I believe it the right approach, I still don't get how to do this.
I came up with this code, but I doubt if that is the right way:
Person p = GetPerson(username);
Role r = GetRole(rolename);
How should I deal with this intermediate thing? (m:m)