You are correct. I found this over the weekend and figured out what was wrong with my solution. When creating my 'second' DbContext class I copied the first one. I want to post this here so anyone else with this issue can find a solution. What I had to do was remove the constructor for passing the connection string from the PreInitialize method : public MyAppDbContext(string nameOrConnectionString) : base(nameOrConnectionString)
as well as delete the constructor used by ABP to pass a Test/Mock connection string: public MyAppDbContext(DbConnection dbConnection) : base(dbConnection, true)
although I believe I probably could leave the latter.
The first one (used by PreInitialize) was the culprit. I looked inside the implementation for MultipleDbContextDemo and discovered that nuance.
Thank you for your time / response.