Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ERD to C# Entity GeneratorNew to Visual Studio Code? Get it now.
ERD to C# Entity Generator

ERD to C# Entity Generator

Ramanan S

|
4 installs
| (0) | Free
Generate clean C# entity models from PlantUML ERD diagrams.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PlantUML ERD to C# Entities

Turn your PlantUML ERD diagrams into clean, EF Core-ready C# entity classes — in one click.

What It Does

  • Reads a PlantUML ERD diagram (.puml / .plantuml file)
  • Generates one C# class per entity in the diagram
  • Detects primary keys and foreign keys automatically
  • Maps PlantUML column types to C# types (varchar → string, int → int, datetime → DateTime)
  • Adds navigation properties for relationships
  • Generates a shared BaseEntity.cs with audit fields
  • Resolves the namespace from your .csproj automatically
  • Never overwrites your work without asking (Skip / Overwrite / Rename / Cancel)

Quick Start

  1. Open a PlantUML ERD file (.puml) in VS Code
  2. Right-click the file (or press Ctrl+Shift+P → ERD: Generate C# Entities)
  3. Done — entity files appear in an Entity/ folder next to your diagram

That's it. No configuration needed for the first run.

Type Mapping

PlantUML C#
varchar, char, text string
int, integer int
bigint long
smallint short
tinyint byte
decimal decimal
float / double float / double
bool, boolean bool
uuid Guid
date DateOnly
datetime, datetime2 DateTime
datetimeoffset DateTimeOffset
time TimeOnly

How the Namespace Is Chosen

  1. .csproj nearby — the extension walks up from your diagram's folder looking for a .csproj. Uses its <RootNamespace> (or project name) + .Entity. Example: MyCompany.Api → namespace MyCompany.Api.Entity;
  2. No project found — falls back to the workspace folder name + .Entity
  3. No workspace — MyProject.Entity

Requirements

  • Visual Studio Code 1.85.0 or later

Release Notes

1.0.0

Initial release: PlantUML ERD parsing, C# entity generation, EF Core-ready navigation properties, base entity, and namespace resolution.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft