2

I Would like to do update child entities when updating parent entity.

Most solutions, like "How to add/update child entities when updating a parent entity in EF", handle this issue manually writing a lot of code for each case.

I know that there is some tools like "Trackable Entities" that track changes and updates child entities based on the parent entity. but it is not compatible with "Core" version. (I don't want to use entire .net framework)

Is there any tool or easier way to do this task?

Daniel Santos
  • 11,626
  • 18
  • 77
  • 158
  • 1
    You can take a look at [Detached.EntityFramework](https://docs.microsoft.com/en-us/ef/core/extensions/entityframeworkcore-detached). I personally haven't tried it, so can't share opinion about its usefulness. – Ivan Stoev Dec 13 '17 at 11:47
  • I'm facing a similar issue, need to add or update child entity while inserting parent entity – MiDaa Mar 20 '18 at 10:24
  • There is no news about this.. I'm still writing code manually – Daniel Santos Mar 20 '18 at 10:50

0 Answers0