Skip to content

Verify an IModel as a Mermaid diagram in markdown, svg or png - #1104

Merged
SimonCropp merged 2 commits into
mainfrom
model-diagram
Oct 9, 2026
Merged

SimonCropp merged 2 commits into
mainfrom
model-diagram

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Adds support for verifying an EF Core IModel as a Mermaid ER diagram, using DbToMermaid.

await Verify(context.Model)
    .ModelAsDiagram(
        ModelDiagramFormat.Markdown |
        ModelDiagramFormat.Svg |
        ModelDiagramFormat.Png);
  • Verify(model) on an IModel now produces the markdown diagram by default.
  • ModelAsDiagram selects markdown, svg, png, or any combination. One file is verified per format.
  • Adds a dependency on EfToMermaid, which brings in Naiad for svg and png rendering. Naiad's sponsorship build check flows to consuming projects.
  • Adds the Papyrine OpenSource exemption to Directory.Build.props.
  • Excludes *.verified.md from MarkdownSnippets processing, since it was rewriting the markdown snapshots.
  • Bumps the version to 16.1.0.

@SimonCropp SimonCropp added this to the 16.1.0 milestone Oct 9, 2026
@SimonCropp
SimonCropp merged commit 5664e97 into main Oct 9, 2026
4 checks passed
@SimonCropp
SimonCropp deleted the model-diagram branch October 9, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant