This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, |
|
|
Hi Henning, Yes - you can define a couple of ThroughAssociations on the Word class for this. If you are using the Designer to generate your model then I would add them in to a partial, otherwise you can add them directly in to your existing class definition . e.g. private readonly ThroughAssociation<WordToWord, Word> _linkedWords; private readonly ThroughAssocation<WordToWord, Word> _reverseLinkedWords;
public Word() { _linkedWords = new ThroughAssociation<WordToWord, Word>(_WordLinks); _reverseLinkedWords = new ThroughAssociation<WordToWord, Word(_WordLinksReverse); }
public ThroughAssociation<WordToWord, Word> LinkedWords { get { return _linkedWords; } }
public ThroughAssociation<WordToWord, Word> ReverseLinkedWords { get { return _reverseLinkedWords; } }
Note that you will want to eager load those two collections to have the ThroughAssociations correctly initialized when the constructor fires.
Jeremy |
|