© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
robf120

❔ Scaffold migrations from existing DB

I have an existing dotnet web api that wasn’t code migrations and instead used db diffing up until now, i want to switch over to using code based migrations but I’m unsure how to do that. I’ve only ever added migrations to a fresh project. Would the db scaffold command suffice?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

ef db scaffold does not scaffold tables with a postgres db using db first approach?
C#CC# / help
3y ago
creating migrations on an existing DB to add a column(efcore)
C#CC# / help
10mo ago
Handling DB migrations for desktop app sqlite db
C#CC# / help
8mo ago
Scaffold item error
C#CC# / help
15mo ago