© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
Meikel

❔ Code in EF Migrations?

My app will need to update the database when you run a newer version of the app than before. This a very common issue and you usually use EF (Core) to migrate the database. What about non-db tasks? For example what if I want to move my files from one storage location to another? I could put the code into the db migration and it would most likely work.

I don't think that's the best approach because EF migrations are designed to migrate the database and nothing else. What's an alternative to that approach?
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

EF Migrations 101
C#CC# / help
3y ago
❔ EF Core migrations
C#CC# / help
4y ago
EF-Core migrations issue
C#CC# / help
2y ago
Trouble calling migrations in EF with Docker
C#CC# / help
3w ago