Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How do I specify a DbContext in the Power Tools when having Multiple DbContexts? #8408


User avatar
0
ITWebTeam created

Hello,

I'm attempting to run Power Tools when I have multiple DbContexts (2). I'm receiving the error "More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands."

In my scenario, only one DbContext is writable.

Is it possible to overcome this by telling Power Tools which DbContext to use?

Thank you for your help, Ron


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

    Hi @rsmith

    Unfortunately it is not possible. Could you create an issue on GitHub so we can implement it ?

    Thanks,

  • User Avatar
    0
    ITWebTeam created

    Done!

    https://github.com/aspnetzero/aspnet-zero-core/issues/2935