Skip to content

Add Microsoft.EntityFrameworkCore.Tools package guidance to EF Core migrations documentation #3711

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

Merged
merged 3 commits into from
Jun 26, 2025

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jun 5, 2025

Added guidance about the potential need for the Microsoft.EntityFrameworkCore.Tools package in EF Core migration services to prevent silent migration failures.

Changes Made

  • Added a TIP callout in docs/database/ef-core-migrations.md after the NuGet package installation step
  • The guidance explains that the Microsoft.EntityFrameworkCore.Tools package might be needed to prevent EF from failing silently without applying migrations
  • Specifically mentions this is particularly relevant when using databases other than SQL Server, such as PostgreSQL
  • Includes a reference to the specific EF Core GitHub issue for additional context

Context

Users reported that EF migrations can fail silently without the Tools package, especially when using PostgreSQL instead of SQL Server. This minimal documentation update helps developers avoid this pitfall by providing proactive guidance during the migration service setup process.

The change follows the existing documentation patterns and Microsoft Writing Style Guide conventions.

Fixes #3678.


💡 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

📄 File 🔗 Preview link
docs/database/ef-core-migrations.md docs/database/ef-core-migrations

…igrations documentation

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Suggest adding Microsoft.EntityFrameworkCore.Tools in some cases Add Microsoft.EntityFrameworkCore.Tools package guidance to EF Core migrations documentation Jun 5, 2025
@Copilot Copilot AI requested a review from IEvangelist June 5, 2025 20:30
Copilot finished work on behalf of IEvangelist June 5, 2025 20:30
@IEvangelist IEvangelist marked this pull request as ready for review June 6, 2025 17:34
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot finished work on behalf of IEvangelist June 6, 2025 17:42
@IEvangelist IEvangelist enabled auto-merge (squash) June 17, 2025 13:08
@IEvangelist IEvangelist merged commit fbfe35b into main Jun 26, 2025
9 checks passed
@IEvangelist IEvangelist deleted the copilot/fix-3678 branch June 26, 2025 16:11
@IEvangelist IEvangelist added the 🗺️ reQUEST Triggers an issue to be imported into Quest. label Jul 9, 2025
@IEvangelist IEvangelist moved this from 🔖 Ready to ✅ Done in dotnet/docs July 2025 sprint Jul 9, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated. RepoMan should instantly remove it. label Jul 9, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated. RepoMan should instantly remove it. label Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗺️ reQUEST Triggers an issue to be imported into Quest.
Projects
No open projects
Status: ✅ Done
Development

Error loading sessions

Retrying..

Successfully merging this pull request may close these issues.

Suggest adding Microsoft.EntityFrameworkCore.Tools in some cases
3 participants