C
Craig Buchanan
I am trying to model a logical many-to-many relationship, defined as a two
'entity' tables and an intersection table, in LINQ-to-SQL. Thus far, this
has been represented as a User class, an Group class, and a UserGroup class
(the intersection). I would prefer to have the relationship modeled as:
User.Groups (a collection of Group instances) and Group.Users (a collection
of User instances)
How would I approach this? Suggestions are appreciated.
Thanks,
Craig Buchanan
'entity' tables and an intersection table, in LINQ-to-SQL. Thus far, this
has been represented as a User class, an Group class, and a UserGroup class
(the intersection). I would prefer to have the relationship modeled as:
User.Groups (a collection of Group instances) and Group.Users (a collection
of User instances)
How would I approach this? Suggestions are appreciated.
Thanks,
Craig Buchanan