URF.Core icon indicating copy to clipboard operation
URF.Core copied to clipboard

Remove sub entity not working

Open prasanna32 opened this issue 6 years ago • 3 comments

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?

prasanna32 avatar Jun 15 '18 09:06 prasanna32

@tonysneed could you be so kind to advise here so we can close this issue out?

lelong37 avatar May 30 '19 18:05 lelong37

@prasanna32 have you tried await ordersRepo.DeleteAsync(orderDetail)?

lelong37 avatar May 30 '19 18:05 lelong37

It should work as is. I’ll have a look at the test.

tonysneed avatar May 30 '19 20:05 tonysneed