Jump to content

Add Migration command

stefanmz
Go to solution Solved by stefanmz,

Fixed it turns out I was missing some startup code 

hey so I am building a .NET Core app with an SQL Database and I get this trying to add a migration:

 

PM> Add-Migration People
Build started...
Build succeeded.
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.

now my question is if I want to use the DbContext that's named PersonRepository how would that command be phrased? because I don't get how -Context would translate to my name for the DbContext. Also is that a dotnet or a PowerShell command?

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×