JetBrains / rider-efcore

Entity Framework Core UI plugin for JetBrains Rider
https://plugins.jetbrains.com/plugin/18147-entity-framework-core-ui
MIT License
180 stars 14 forks source link

getting the migration 'file_name' was not found error #178

Closed depo101 closed 1 year ago

depo101 commented 1 year ago

Hello, I'm using ubuntu. I'm getting the following error on the "ef core command panel" when I want to apply update database command from your plugin. I'm using sqlite3 database as a single file db in my web application project.

"The migration '20230805150641_Initial' was not found"

The command args are below : "/usr/lib/dotnet/dotnet ef database update --project WebApplication1/WebApplication1.csproj --startup-project WebApplication1/WebApplication1.csproj --context WebApplication1.SampleDbContext --configuration Debug --no-build 20230805150641_Initial"

If I use directly "dotnet ef" command from the terminal there is no any errors and database updated.

seclerp commented 1 year ago

Hi, @depo101, thanks for the report. Please give more context, the shape of your project, migrations that are available and also preselected values before hitting OK in the Update Database dialog.

depo101 commented 1 year ago

Hi @seclerp , I started asp.net mvc project with default template via Rider. I wanted to try sqlite3 database. So I created sample models and then used this riders-efcore plugin for first initial migration. And then I get the error explained above. That's all.

seclerp commented 1 year ago

Maybe it's due to "No build" checkbox... Could you try to disable it? Normally, it should be disabled, you don't need it in common cases.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 14 days with no requested info. The issue will be automatically closed in 1 day.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 1 day with no activity.