EntitySet onAdd action not working

EntitySet onAdd action not working

Postby 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 ?
sitek
 
Posts: 3
Joined: Thu 01 Oct 2009 09:35

Postby 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

Postby AndreyR » Mon 26 Oct 2009 15:44

We have fixed the problem. The fix will be available in the nearest build.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to LinqConnect (LINQ to SQL support)