When Entity Framework Core bulk saves all your changes, it uses an internal priority computed by all your foreign keys to make sure everything is saved in the right order to prevent foreign key errors.
How can I get this priority list from Entity Framework?
I'm constructing a synchronizer that moves a lot of entities between servers. I need to send the entities in the right order because I cannot save everything in one go due to memory usage. I want to bulk save entities from the stream, but at the moment I got issues with foreign keys. It would be nice if I could use the work done by Entity Framework to get the correct save order.