bilal-fazlani / tracker-enabled-dbcontext

Tracker-enabled DbContext offers you to implement full auditing in your database
https://tracker-enabled-dbcontext.bilal-fazlani.com/
Other
217 stars 110 forks source link

1:n Adding an item via the collection doesn't mark its counterpart-property as modified #188

Open bergerb-com opened 1 month ago

bergerb-com commented 1 month ago

If I have eg. Order n : 1 Transport, so Transport has a collection of Orders and Order has a property (FK) of one Transport.

When I add a new Transport, with a collection of pre-existing Orders (already known to the context), this FK-Change in Order is not recognized.

I assume this has something to do with the new Transport not yet being known to the Tracker. Is there a workaround for this?