Giorgi/EFCore.Visualizer
关于
用于 Visual Studio、VS Code、Rider 和 LINQPad 的 Entity Framework Core 查询调试可视化工具。
数据与分析实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +7
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文![]()
Entity Framework Core Query Plan Visualizer
View Entity Framework Core query plan directly inside Visual Studio, VS Code and JetBrains Rider.
Jump to: Visual Studio · VS Code · JetBrains Rider
Introduction
With the Entity Framework Core query plan debugger visualizer, you can view the query plan of your queries directly inside Visual Studio. Currently, the visualizer supports SQL Server, PostgreSQL, SQLite, MySQL and Oracle.
[!IMPORTANT] The visualizer requires Visual Studio 2022 Version 17.14 (Released on May 13th, 2025) or newer, including Visual Studio 2026 and supports EF Core 7 or newer.
Visual Studio Toolbox - EFCore.Visualizer Extension for Visual Studio
Usage
After installing the extension from the marketplace, a new debugger visualizer will be added to Visual Studio. When debugging, hover over your queries and there will be an option to view the query plan (Here we show the actual query plan which means it forces query execution ):

Click on 'Query Plan Visualizer' and the query plan will be displayed for your query.
SQL Server:


PostgreSQL:


MySQL:


SQLite:

Oracle:
The query plan includes Actual IO stats, Outline data, Projections, and Predicates.

Visual Studio Code
Install the EFCore Visualizer extension from the Visual Studio Marketplace, or search for "EFCore Visualizer" in VS Code's Extensions view. While you debug with Microsoft's C# extension, hover over a query in Variables or Watch and click the Visualize Query Plan button at the end of its row, or right-click the query and choose Visualize Query Plan. The plan opens in a tab beside the editor, with the same plan pages as in Visual Studio. The tab's title bar has a Refresh button and a Copy SQL button, which copies the query's SQL with its parameters. It requires VS Code 1.90 or newer and supports EF Core 7 or newer.

See the VS Code extension's README for details.
JetBrains Rider
The visualizer is also available for Rider. While you debug, click Visualize Query Plan at the end of a query's row in Variables, Watches or the editor's hover popup. The same command is on the Variables toolbar and in the right-click menu. The plan opens in an editor tab, with the same plan pages as in Visual Studio. Each variable gets its own tab, and visualizing it again shows the new plan when the query changed. It requires Rider 2026.2 or newer and supports EF Core 7 or newer.



See the Rider plugin's README for details.
Known Issues (Visual Studio):
- If query plan extraction takes more than 5 seconds, you will get Evaluation timed out error
- If your project uses Application Insights, you might get Cannot evaluate expression since the function evaluation requires all threads to run. when viewing query plan. Workaround - disable Application Insights when running your project with a debugger attached.
Credits
This extension uses pev2, html-query-plan (built from Rudi Bruchez's fork) and Treeflex to display query plans, and highlight.js to highlight SQL.
探索相关项目
加载中…
