When context contains related entitties and SaveChanges
is called EF issues queries in right sequence not breaking referential constrainst.
Unfortuantely, EF does not support alternative keys, hence it cannot deduce the correct order of commands, so we need to define the order ourselves if this is possible.