Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized option '-Context' when running dotnet ef command #4

Closed
lukeconner opened this issue Jul 31, 2020 · 4 comments
Closed

Unrecognized option '-Context' when running dotnet ef command #4

lukeconner opened this issue Jul 31, 2020 · 4 comments

Comments

@lukeconner
Copy link

Describe the bug
When following the commands to install, after dotnet restore it gives the error Unrocognized option '-Context'

To Reproduce
Steps to reproduce the behavior:

  1. Clone Project
  2. Change connection string
  3. Run dotnet restore
  4. Run dotnet-ef database update -Context ApplicationDbContext

Expected behavior
I expected it would create the tables

Desktop (please complete the following information):

  • OS: Windows 10
  • 3.1 SDK installed
@lukeconner
Copy link
Author

I have no idea why this is an issue, but using -c instead of -Context resolved the issue.

@iammukeshm
Copy link
Owner

That's weird. Is your ef code updated to the latest version?

@lukeconner
Copy link
Author

Yeah, I reinstalled the SDK just to be sure. Likely it's something with my local setup.

@khaledafify
Copy link

dotnet-ef database update -c ApplicationDbContext
it will fix the problem

piotrokrutniak added a commit to piotrokrutniak/CleanArchitecture.Template that referenced this issue Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants