-
Notifications
You must be signed in to change notification settings - Fork 165
Add comprehensive PostgreSQL EF Core migrations tutorial for .NET Aspire #4189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…cture projects, and enhance code organization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses a critical documentation gap by providing a comprehensive tutorial specifically for PostgreSQL Entity Framework Core migrations in .NET Aspire applications. The tutorial walks through creating migrations from scratch, which was a key missing piece in the existing documentation that only covered applying existing migrations.
- Complete step-by-step PostgreSQL EF Core migrations tutorial with working code examples
- Migration service implementation for automatic schema deployment in .NET Aspire
- PostgreSQL-specific patterns and troubleshooting guidance distinct from SQL Server examples
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
docs/toc.yml | Adds new tutorial entry to the table of contents under database section |
docs/database/postgresql-ef-core-migrations-tutorial.md | New comprehensive 314-line tutorial covering PostgreSQL EF Core migrations creation and management |
docs/database/snippets/postgresql-ef-core-tutorial/* | Nine supporting code files providing complete working examples for the tutorial |
--- | ||
title: Tutorial - PostgreSQL migrations with Entity Framework Core in .NET Aspire | ||
description: Learn how to create, apply, and manage PostgreSQL migrations using Entity Framework Core in .NET Aspire applications. | ||
ms.date: 10/01/2025 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The date 10/01/2025 is in the future. Based on the current date context (October 2025), this should likely be a past date when the content was actually created.
ms.date: 10/01/2025 | |
ms.date: 10/01/2024 |
Copilot uses AI. Check for mistakes.
This PR addresses the critical gap in .NET Aspire documentation by providing a comprehensive tutorial for PostgreSQL Entity Framework Core migrations - something that has been repeatedly requested by the community but was missing from the documentation.
What this adds
New Tutorial:
postgresql-ef-core-migrations-tutorial.md
- A complete 314-line, step-by-step guide that covers:Complete Working Code Examples: All tutorial code is fully functional with 9 supporting files including:
Why this was needed
The existing documentation had:
This left developers unable to figure out how to:
Key differentiators from existing content
Unlike the existing SQL Server tutorial, this focuses specifically on:
The tutorial provides the "real end-to-end tutorial that shows how to actually create migrations" that was explicitly requested in the issue, with working code that developers can follow from start to finish.
Fixes #1581.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Internal previews