Base solution for your next web application
Open Closed

Can get second DbContext working #2347


User avatar
0
paladyr created

So I already looked at the MultipleDbContextDemo solution and I don't get what I'm doing wrong. Here's what I've done:

I created a new AbpDbContext for the second connection. I created another RespositoryBase (not sure if that's necessary) for this new AbpDbContext The repository I want to use with the second dbcontext uses the new RepositoryBase and DbContext

When the repository that I want to use with the second dbcontext is called it's using the default (first) dbcontext. What am I doing wrong? Thanks!


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Let's continue here #2346. I think it is the same problem.