Project Organization

Diagrams

Organize complex domain models with multiple diagrams. Each diagram can represent a bounded context, module, or logical grouping of entities.

Multi-diagram support

AeroCoding projects can contain multiple diagrams to help you organize and manage complex domain models.

Diagrams in the left sidebar
[01]

Separate concerns

Group related entities together. Keep your User Management entities separate from Order Processing, making each diagram focused and manageable.

[02]

Model bounded contexts

Each diagram can represent a DDD bounded context. Generate isolated modules with their own Domain, Application, and Infrastructure layers.

[03]

Manage complexity

Break large schemas into manageable pieces. A project with 100+ entities becomes easier to navigate when organized across multiple focused diagrams.

[04]

Collaborate better

Different team members can work on different diagrams simultaneously. Real-time collaboration shows who's viewing each diagram.

Info

All diagrams in a project share the same namespace and can reference entities from other diagrams when creating relationships.

Creating diagrams

Add new diagrams from the left sidebar to start organizing your domain model.

[01]

Open diagrams panel

Click the Diagrams tab in the left sidebar to see all diagrams in your project.

[02]

Add new diagram

Click the '+' button at the top of the panel or use the 'New Diagram' option in the context menu.

[03]

Name your diagram

Enter a descriptive name like 'User Management', 'Order Processing', or 'Identity'. Use names that match your architecture documentation.

[04]

Choose a color

Optionally assign a color to visually distinguish the diagram. Colors help identify related diagrams at a glance.

Tip

Consider naming diagrams after bounded contexts: "Identity", "Catalog", "Checkout", "Payments". This creates a clear mapping between your visual model and generated code structure.

Organizing diagrams

Use colors, naming conventions, and ordering to keep your diagrams organized and easy to navigate.

[01]

Assign colors

Right-click a diagram and select 'Change Color' to assign a color. Use colors to visually group related diagrams - for example, all e-commerce diagrams in blue, all auth diagrams in green.

[02]

Reorder diagrams

Drag and drop diagrams in the sidebar to reorder them. The order is preserved for all team members and affects keyboard navigation (Ctrl+1-9).

[03]

Rename diagrams

Right-click on a diagram to access the context menu, then select 'Rename'. Changes are synced in real-time to collaborators.

[04]

Delete diagrams

Right-click and select 'Delete' to remove a diagram. This action cannot be undone and removes all entities within it.

Warning

Be careful when deleting diagrams! All entities and relationships within the diagram will be permanently removed. Consider exporting as JSON first as a backup.

Diagrams as bounded contexts

When DDD mode is enabled, diagrams map directly to bounded contexts for modular code generation.

Diagrams
Identity
User · Role · Permission
Catalog
Product · Category · Brand
Orders
Order · OrderItem · Payment
DDD Mode
Generated Modules
📂src
📂Modules
📂Identity
📁Domain/
📁Application/
📁Infrastructure/
📂Catalog
📁Domain/
📁Application/
📁Infrastructure/
📂Orders
📁Domain/
📁Application/
📁Infrastructure/
📂BuildingBlocks
📄Result.cs
📄EntityBase.cs
···
[01]

Automatic module generation

Each diagram generates its own module folder with Domain, Application, and Infrastructure layers following Clean Architecture.

[02]

Entity scope detection

Entities used in multiple diagrams are automatically marked as SHARED and placed in the Shared Kernel module.

[03]

Cross-context relationships

When you create a relationship between entities in different diagrams, the generator handles imports and references correctly.

[04]

Context mapping

Relationships between contexts are documented and can generate anti-corruption layer patterns when needed.

Tip

Use diagrams to separate bounded contexts. Each diagram can represent a different module or domain area in your system.

Switching diagrams

Navigate between diagrams quickly using the sidebar, keyboard shortcuts, or the diagram switcher.

[01]

Click in sidebar

Click any diagram name in the left sidebar to switch to it. The canvas updates immediately with that diagram's entities.

[02]

Keyboard navigation

Use Ctrl+1, Ctrl+2, etc. to quickly switch between the first 9 diagrams. The numbers correspond to their order in the sidebar.

[03]

Quick switcher

Press Ctrl+K to open the command palette and type a diagram name to jump directly to it.

ShortcutAction
Ctrl + 1-9Switch to diagram 1-9
Ctrl + KOpen quick switcher
Ctrl + TabCycle through recent diagrams

Import & export

Share your diagrams, create backups, or integrate with other tools using import and export features.

Export

  • JSON schema format (full data)

Import

  • JSON schema format
  • Database schema (coming soon)
  • OpenAPI spec (coming soon)
[01]

Export single diagram

Right-click a diagram in the sidebar and select 'Export'. Choose your format and download the file.

[02]

Export entire project

Use Project Settings → Export to download all diagrams as a single JSON file. Includes all entities, relationships, and metadata.

[03]

Import diagrams

Drag and drop a JSON file onto the canvas, or use Project Settings → Import. Entities are merged with existing ones by name.

Next steps

Continue learning about domain modeling and code generation.