You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The instruction in OrderingContext.cs says to run dotnet ef migrations add --startup-project Ordering.API --context OrderingContext [migration-name].
However, no migrations are added. I have modified the above command to startup on Ordering.Infrastructure (which I think is what you guys meant), but still no luck. I'm trying to do this from a dotnet maui project that uses aspire to orchestrate apis, worker processes and db. Everything is great, except that I cannot get EF to create the initial tables.
when I run dotnet ef migrations add MyNewMigration --project Ordering.Infrastructure\Ordering.Infrastructure.csproj --context Ordering.Infrastructure.OrderingContext
I get the following error - dotnet : The specified deps.json [C:\app\bin\Debug\net8.0-android\app.deps.json] does not exist
NOTE:
The db gets created, but the tables dont (because of missing migrations)
When I copy over the existing Migrations from the eShop sln to mine, the tables get created. However, it would suck having to manually update the migrations to meet my needs
The real question is - How did you create the initial migrations in Ordering.Infrastructure. This is what I really need as my code is 100% identical to eShop
Can you please advise?
The text was updated successfully, but these errors were encountered:
The instruction in OrderingContext.cs says to run
dotnet ef migrations add --startup-project Ordering.API --context OrderingContext [migration-name]
.However, no migrations are added. I have modified the above command to startup on Ordering.Infrastructure (which I think is what you guys meant), but still no luck. I'm trying to do this from a dotnet maui project that uses aspire to orchestrate apis, worker processes and db. Everything is great, except that I cannot get EF to create the initial tables.
when I run
dotnet ef migrations add MyNewMigration --project Ordering.Infrastructure\Ordering.Infrastructure.csproj --context Ordering.Infrastructure.OrderingContext
I get the following error -
dotnet : The specified deps.json [C:\app\bin\Debug\net8.0-android\app.deps.json] does not exist
NOTE:
Can you please advise?
The text was updated successfully, but these errors were encountered: