Do you mean when loading a bidirectional ref? No, you don't need to "tie" them 
together. You need to map both ends though - search for "bidirectional" in the 
docs.

Do you mean when adding/removing items in a bidirectional ref in your 
domain/RAM? Yes, luckily. IMO POCO/PI is a good thing. You can help yourself 
writing something like someNewUser.Add(prospect) though and set both ends there.

Do you mean when having a unidirectional ref? No, not at all.




-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Vladan Strigo
Sent: den 23 april 2010 14:02
To: nhusers
Subject: [nhusers] Re: why do we need to connect relation on both side of 
related entites?

anyone?

On Apr 23, 11:04 am, Vladan Strigo <[email protected]> wrote:
> So I have a typical one to may:
>
> Prospect...has *one* User
>
> User...has *many* Prospects
>
> I do a load of Prospect, load of an "User"...then tie them together:
>
> Prospect.User = someNewUser
> someNewUser.Prospects.Add(Prospect)
>
> My question is...why is this second part needed? I've seen it in books
> over the years as a textbook example, but also seen that it works
> without it sometimes.
>
> So I am confused, do I need to connect the relation on both sides, and
> if so...why?!
>
> Thanks!
> Vladan
>
> --
> 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 
> athttp://groups.google.com/group/nhusers?hl=en.

-- 
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.


-- 
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.

Reply via email to