Class model for a many-to-many relationship, where relationship has attributes
Posted
by Greg
on Stack Overflow
See other posts from Stack Overflow
or by Greg
Published on 2010-05-06T18:03:23Z
Indexed on
2010/05/06
18:08 UTC
Read the original article
Hit count: 460
Hi,
What would the basic C# code look like to model a many-to-many relationship, where the relationship itself has attributes? And also in this case the many-to-many was referential. So a possible database model for this might look like the following (just to give an example of what I'm talking about)
- Nodes
- ID
- Name
- Description
- Relationships
- Parent_ID
- Child_ID
- Relationships_Type
© Stack Overflow or respective owner