Skip to content

Model diagram filter and names only - #1107

Merged
SimonCropp merged 1 commit into
mainfrom
diagram-filter-and-names-only
Oct 13, 2026
Merged

SimonCropp merged 1 commit into
mainfrom
diagram-filter-and-names-only

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Uses the filter and namesOnly options added in EfToMermaid 2.3.0 (SimonCropp/DbToMermaid#30).

ModelDiagramFilter

Selects the entity types included when an IModel is verified as a diagram. Foreign keys to an excluded entity type are omitted.

await Verify(data.Model)
    // exclude the Employee entity
    .ModelDiagramFilter(_ => _.ClrType != typeof(Employee));

Names only

Renders only the table names, without columns. Relationships are kept.

await Verify(data.Model)
    .ModelAsDiagram(namesOnly: true);

Notes

  • EfToMermaid 2.2.2 to 2.3.0
  • Version bumped to 16.2.0

@SimonCropp SimonCropp added this to the 16.2.0 milestone Oct 13, 2026
@SimonCropp
SimonCropp merged commit 2d21c07 into main Oct 13, 2026
5 checks passed
@SimonCropp
SimonCropp deleted the diagram-filter-and-names-only branch October 13, 2026 05:44
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