EntitySet onAdd action not working
Posted: Thu 08 Oct 2009 07:48
In this code
the onAdd action for entityset Testchilds works right. But when I change last 2 rows order
the onAdd action doesn't work. Why ?
Code: Select all
Testdatacontext dc = new Testdatacontext();
Testchild tc = new Testchild();
Test t = new Test();
t.Testchilds.Add(tc);
dc.Tests.InsertOnSubmit(t);
Code: Select all
Testdatacontext dc = new Testdatacontext();
Testchild tc = new Testchild();
Test t = new Test();
dc.Tests.InsertOnSubmit(t);
t.Testchilds.Add(tc);