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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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

@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
Copilot finished work on behalf of IEvangelist June 6, 2025 17:42
@IEvangelist IEvangelist enabled auto-merge (squash) June 17, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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