Visual Studio Code extension for managing Entity Framework Core migrations with ease.

✨ Features
- 🗄️ Sidebar Panel for quick access to EF Core commands
- ⚙️ Project Configuration - save Startup and Migration projects for each workspace
- ➕ Create Migrations - interactive UI for creating migrations
- 🔄 Database Management - apply, rollback, and remove migrations
- 📋 Migration List - view all project migrations
- 🏗️ Scaffold DbContext - generate DbContext from existing database
- 💾 Auto-save Settings - settings are saved for each workspace
🚀 Quick Start
Open the extension panel:
- Click on the 🗄️ "EF Core Tools" icon in the Activity Bar (left side)
- Or use the
EF Core: Open Panel command from Command Palette (Ctrl+Shift+P)
Configure projects:
- Click the "📁 Configure Projects" button
- Select Startup Project (project with Program.cs, typically Web API)
- Select Migration Project (project with DbContext)
Done! You can now use all EF Core commands through the UI
📖 Usage
Creating a Migration
- Enter the migration name in the text field (e.g.,
AddUserTable)
- Click "✨ Create Migration"
- The command will execute in terminal:
dotnet ef migrations add AddUserTable
Applying Migrations to Database
- Click "⬆️ Update Database"
- Confirm the action
- Executes:
dotnet ef database update
Removing Last Migration
- Click "❌ Remove Last Migration"
- Confirm removal
- Executes:
dotnet ef migrations remove
Rolling Back to a Specific Migration
- Click "⏮️ Rollback to Migration"
- Enter the migration name (or
0 for complete rollback)
- Database will rollback to the specified migration
🎯 Commands
All commands are available through Command Palette (Ctrl+Shift+P):
EF Core: Open Panel - Open extension panel
EF Core: Configure Projects - Configure projects
EF Core: Create Migration - Create migration
EF Core: Update Database - Apply migrations
EF Core: Remove Last Migration - Remove last migration
EF Core: List Migrations - Show migration list
⚙️ Requirements
📝 Notes
- Project settings are saved separately for each workspace
- All commands are executed with
--startup-project and --project specified
- Commands run in VS Code terminal where you can see the output
🐛 Known Issues
No known issues at this time. If you find a bug, please create an issue.
📄 License
MIT
Enjoy working with EF Core! 🚀
| |