Base solution for your next web application
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

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ITWebTeam created

    Done!

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)