Keeping key version when adding same key on the same transaction

Hmm… No one knows how to fix this? There is not much documentation about ManagedDB