Using adapter, 2.5.7.1119
I have an Order table, and several derived tables such as OrderTypeA, OrderTypeB, etc.
They are setup with a 1:1 relationship between OrderID, which is defined of course on Order.
I have an OrderID that I want to delete. I expected to be able to do:
DeleteEntitiesDirectly(typeof(OrderEntity), new RelationPredicateBucket(OrderFields.OrderID == orderID))
It doesn't work though. It only issues the DELETE against the Order table. There are so many other parts of LLBLGen that detects the relationship and does the appropriate joins. I really expected this to work that way as well.
I understand you can't make deletes on hierarchies work generically if your deleting using some type of filter. But in this case, with the PK, shouldn't you just be able to issue a DELETE on all derived tables on that PK value?
I also tried:
adapter.Delete(new OrderEntity(id)), but that had the same problem as DeleteEntitiesDirectly.
Thanks,
Brian