URF.Core
URF.Core copied to clipboard
Remove sub entity not working
Hello Anthony,
In your TrackableRepositoryTest, you have a method Task ApplyChanges_Should_Set_Graph_States which adds orderdetails to order with order.OrderDetails.Add(addedDetail). I am trying a similar operation with .Remove. However the sub entity is not getting removed/deleted.
Do you have an example for the same?
@tonysneed could you be so kind to advise here so we can close this issue out?
@prasanna32 have you tried await ordersRepo.DeleteAsync(orderDetail)?
It should work as is. I’ll have a look at the test.