Page 1 of 1

EntitySet onAdd action not working

Posted: Thu 08 Oct 2009 07:48
by sitek
In this code

Code: Select all

    Testdatacontext dc = new Testdatacontext();
    Testchild tc = new Testchild();
    Test t = new Test();
    t.Testchilds.Add(tc);
    dc.Tests.InsertOnSubmit(t);
the onAdd action for entityset Testchilds works right. But when I change last 2 rows order

Code: Select all

    Testdatacontext dc = new Testdatacontext();
    Testchild tc = new Testchild();
    Test t = new Test();
    dc.Tests.InsertOnSubmit(t);
    t.Testchilds.Add(tc);
the onAdd action doesn't work. Why ?

Posted: Mon 12 Oct 2009 08:28
by AndreyR
Thank you for the report, we have reproduced the situation.
I will let you know about the results of our investigation.

Posted: Mon 26 Oct 2009 15:44
by AndreyR
We have fixed the problem. The fix will be available in the nearest build.