© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
16 replies
treesgobark

✅ Docker + Blazor + EF Core 7 + SQLite = __EFMigrationsHistory doesnt exist

Hello everyone i am new to docker and i am attempting to containerize an existing project. I've got a .NET 7 blazor server app using EF core 7 with sqlite. It works fine running via the typical methods using IIS express, but when it goes into my docker container, applying the EF migrations causes a SQL error at the end where it can't find my __EFMigrationsHistory table, even though it shows creating that table at the very beginning of the logs. The only reference i found online that seemed like it could be relevant was this one: https://stackoverflow.com/questions/42393128/entityframeworkcore-for-sqlite-not-creating-efmigrationhistory-table but it's super out of date and their project seems to run just fine on the first runthrough whereas mine does not. I'll leave it here in case someone can find a hint in there.
Attached file contains my compose file, dockerfile, and the console output from the container
Stack Overflow
EntityFrameworkCore for Sqlite not creating __EFMigrationHistory table
Before I explain my issue, I have some experience with entity framework 5 and 6 code first migrations, running add-migration/update-database and a few more specific commands from the Package Manager
EntityFrameworkCore for Sqlite not creating __EFMigrationHistory table
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ASP.NET Core Blazor + EF error
C#CC# / help
3y ago
✅ EF Core migrations with Docker
C#CC# / help
11mo ago
EF Core Sqlite Add & SaveChanges not working
C#CC# / help
2y ago
UniqueIdentifer Type does not exist Ef Core
C#CC# / help
2y ago