EF Core 数据库图生成
原名:efcore-d2-db-diagram
从 Entity Framework Core 模型生成 D2 实体关系图和数据库说明。
中文 Skills 技能说明
适合 C# 项目梳理 DbContext、实体和关联。图形必须来自真实模型并标注推断关系,避免泄露内部表名和敏感字段;安装 D2 或生成文件前确认输出目录。
上游能力依据
上游原始适用说明:Generate D2 database diagrams from Entity Framework Core models. USE FOR: EF Core database diagram, Entity Framework Core ERD, DbContext diagram, C# entity relationship diagram, PostgreSQL schema visualization, generate .d2 file from EF Core entities, Fluent API mapping diagram, migrations-based database diagram, table relationships, owned types, many-to-many join tables, indexes and constraints. DO NOT USE FOR: runtime debugging, database migration execution, schema deployment, SQL performance tuning, or draw.io diagrams.
上游 SKILL.md 主要章节(保留原文标题):
- When to Use
- Goal
- Tools
- Recommended Workflow
- Mandatory Questions Before Diagram Generation
- Reference Documents
- EF Core Extraction Rules
- Source Priority
- Required EF Core Concepts to Detect
- Diagram Rendering Rules
使用边界
先核对上游说明、依赖、输入资料和所需权限。涉及写入、删除、发布、支付或外部发送时,必须在执行前人工确认。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/efcore-d2-db-diagram
适用范围
平台:linux、macos、windows;标签:图表与可视化、EF Core 数据库图生成
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。