I try to delete into a transaction and nothing seems to happen.
Is anybody hjave an idea what I do wrong ???
I try 2 differents approaches:
1-
trans.Add(loc.EvenementLocLocRes);
foreach (EvenementLocLocResEntity existingLocLocRes in loc.EvenementLocLocRes)
{
trans.Add(existingLocLocRes);
existingLocLocRes.Delete();
}
trans.Commit();
2-
trans.Add(loc);
trans.Add(loc.EvenementLocLocRes);
loc.EvenementLocLocRes.DeleteMulti();
trans.Commit();
In either case, if I do a select in the database after the commit, I get the exact same count of EvenementLocLocRes for the loc object(entity). It looks like the delete never happen ????