Hi Support,
Let me just bother you for a while.
I'm using MS SQL 2005, generated code with LLBLGen Pro 2.0.0.0 from 28 june, adapter logic, UnitOfWork2.
So straight to the point, here I lay out my problem:
Say i have a tree like structure - parent with nodes which have subnodes ...etc. This is done in the db by having a parentNode table, childNode table and a relation table, with all the needed relationships set.
And my question is - what shall I do if I want to delete whole branch of nodes - deleting the parent should result in deleting of its children too (and children's children etc) but its not. I tried out different variants - added for deletion (in the UOW2) the main relation entity from which I want deletion to begin and the parent node - did not work - raises exception and says -
"An exception was caught during the execution of an action query: The DELETE statement conflicted with the REFERENCE constraint "FK_.....". The conflict occurred in database blah-blah..."
What am I supposed to do? Add the whole chain of relations and entities in the proper order? (first the relations and then the entities?) Or should I design this chain deletion in the sql - cascade delete?
Regards,
Chaos.