Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sub entity not working #43

Open
prasanna32 opened this issue Jun 15, 2018 · 3 comments
Open

Remove sub entity not working #43

prasanna32 opened this issue Jun 15, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@prasanna32
Copy link

prasanna32 commented Jun 15, 2018

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?

@lelong37
Copy link
Member

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

@lelong37
Copy link
Member

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

@tonysneed
Copy link
Contributor

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

@tonysneed tonysneed added the bug Something isn't working label Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants