We are using aspire for local development, i think for now we will need to build custom mongodb Dockerfile to support that, but it should be doable.
For the flag, we are setting it in the OnModelCreating. And i don’t think this is the issue, because turning off db context pooling makes it all work correctly, so it has to be connected to the pooling itself. I’ll try to create some repro project, i’ve encountered that in 2 of our bigger integration tests, maybe there’s something additional there…