Here's a simplified model :
public class Term : Entity
{
public virtual int Id {get; set;}
public virtual Vocabulary Vocabulary {get; set;}
public virtual String Name {get; set;}
public virtual ISet<Term> RelatedTerms {get; set;}
}
The point of interest is the RelatedTerms property. By nature, this
property is bidirectional (the term "cat" is related to "feline", as
"feline" is related to cat.)
i'm having a problem figuring out how to map this as a bidirectional
collection. Its definitely not parent-child, and someone needs to
decide how its persisted (where to put the inverse).
The only other solution is to remove this as a property and handle
this relationship explicitly in the repository.
Any thoughts ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---