Skip to content

docs: Add dotnet-ef JSON config file feature (EF Core 11)#5342

Merged
AndriySvyryd merged 4 commits intopreview.4from
copilot/add-documentation-for-pr-37966
Apr 24, 2026
Merged

docs: Add dotnet-ef JSON config file feature (EF Core 11)#5342
AndriySvyryd merged 4 commits intopreview.4from
copilot/add-documentation-for-pr-37966

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

Documents the new .config/dotnet-ef.json configuration file support added in EF Core 11 (dotnet/efcore#37966), which lets teams persist default dotnet ef options instead of repeating them on every invocations.

Changes

  • entity-framework/core/cli/dotnet.md — New ## Configuration file section at the end of the document (before ## Additional resources) covering:

    • File discovery (walks up from CWD to find nearest .config/dotnet-ef.json)
    • All 9 supported properties with types and descriptions (project, startupProject, framework, configuration, context, runtime, verbose, noColor, prefixOutput)
    • A NOTE that CLI options always take precedence over config file values
  • entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md — New subsection summarising the feature with a cross-reference to the CLI reference.

Copilot AI and others added 2 commits April 22, 2026 00:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents EF Core 11 support for a .config/dotnet-ef.json file to persist default dotnet ef option values across invocations.

Changes:

  • Adds a new “Configuration file” section to the dotnet ef CLI reference, covering discovery, supported properties, precedence, and path resolution.
  • Adds a “Configuration file for dotnet ef” note to the EF Core 11 “What’s New” page, linking back to the CLI reference.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
entity-framework/core/cli/dotnet.md Adds the new configuration file documentation (location/discovery, property schema, precedence, and path semantics).
entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md Introduces a “What’s New” callout summarizing the feature and linking to the CLI details.

Comment thread entity-framework/core/cli/dotnet.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment thread entity-framework/core/cli/dotnet.md Outdated
Comment thread entity-framework/core/cli/dotnet.md Outdated
Comment thread entity-framework/core/cli/dotnet.md Outdated
Copilot AI requested a review from AndriySvyryd April 22, 2026 00:38
@AndriySvyryd AndriySvyryd marked this pull request as ready for review April 22, 2026 00:45

<a name="dotnet-ef-config-file"></a>

### Configuration file for dotnet ef
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for me - technically this isn't only a migrations feature, right? (because other cmdline tool usage are also affected by it)? Though we expect it will mostly help out with migration management?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, be we don't have a section for CLI features

@AndriySvyryd AndriySvyryd merged commit 641f237 into preview.4 Apr 24, 2026
5 checks passed
@AndriySvyryd AndriySvyryd deleted the copilot/add-documentation-for-pr-37966 branch April 24, 2026 00:57
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.

4 participants