Hi,

I don't know if this is 'by design' but when I add a parent to the foreign key I assumed that in fact the child would be added to the EntitySet (that defines a 'pairto' attribute parameter) in the parent and thus fire the CollectionChanged event. This however is not the case. When I do it other way round (Add() the child to the collection) the event is fired.

Regards Paul

asked Feb 17 '13 at 04:02

Paul%20Sinnema's gravatar image

Paul Sinnema
261888896

Here's an example:

When I add like this:

parent.ObjectList.Add(newPand);

The CollectionChanged on the ObjectList is fired correctly

When I add like this:

newPand.Folder = parent;

The CollectionChanged is NOT fired.

Regards Paul

(Feb 17 '13 at 04:33) Paul Sinnema Paul%20Sinnema's gravatar image

Hello Paul, we were unable to reproduce you problem. Are you sure you have PairTo definition for these associations?

(Feb 18 '13 at 03:04) Denis Krjuchkov Denis%20Krjuchkov's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA