EntitySet onAdd action not working

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
sitek
Posts: 3
Joined: Thu 01 Oct 2009 09:35

EntitySet onAdd action not working

Post by sitek » Thu 08 Oct 2009 07:48

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 ?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 12 Oct 2009 08:28

Thank you for the report, we have reproduced the situation.
I will let you know about the results of our investigation.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 26 Oct 2009 15:44

We have fixed the problem. The fix will be available in the nearest build.

Post Reply