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

Adding new migration #310

Closed
DavidDury opened this issue Dec 27, 2021 · 2 comments
Closed

Adding new migration #310

DavidDury opened this issue Dec 27, 2021 · 2 comments

Comments

@DavidDury
Copy link

Hi guys, can you share the command you use to add new migration? I tried this but it does not work: "dotnet ef migrations add Initial2 -c ApplicationDbContext -p Migrators.MSSQL -o Migrations/Applications -s ./Host/Host.csproj"

@iammukeshm
Copy link
Member

  • Open the terminal from the Host Project's root directory.
  • Run the following snippet.
dotnet ef migrations add MyCustomCommitMessage --project .././Migrators/Migrators.MSSQL/ --context ApplicationDbContext -o Migrations/Application

This should work. If it works, do close this issue. Else, let me know.

@DavidDury
Copy link
Author

Appreciated!

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

2 participants