0
I am developing a c# API and I use the Entity framework and I need to create an Migration.
My API needs to connect with two databases the internal database and an external database, with this, it was necessary to create two contexts. The problem occurs when I use the command
dotnet ef migration add migration_002
The following error is returned:
More than one Dbcontext was found. Specify which one to use. Use the '-Context' Parameter for Powershell Commands and the '--context' Parameter for dotnet.
I need to select one of several contexts but I can’t select any of them.
Thanks @Rogerio Santos helped a lot!!!
– Gustavo Fonseca