# KnowledgeUnitLink

- File ID: file:1m6x5qy:knowledgeunitlink-cs
- Path: NexusReader.Domain/Entities/KnowledgeUnitLink.cs
- Role: entity
- Layer: domain

## Purpose

Defines the domain entity KnowledgeUnitLink which models a directed relation between two KnowledgeUnit entities with metadata (relation type) and EF Core persistence annotations.

## Key Details

Entity uses EF Core data annotations for schema constraints and navigation: Id is PK, SourceUnitId/TargetUnitId are required string FKs (max 128), RelationType is required (max 50) with default "References", and navigation properties reference KnowledgeUnit via [ForeignKey].

## Symbols

- KnowledgeUnitLink: Defines the domain entity KnowledgeUnitLink which models a directed relation between two KnowledgeUnit entities with metadata (relation type) and EF Core persistence annotations.
- KnowledgeUnitLink: Represents a directed link between two KnowledgeUnit entities with a typed relation for persistence via EF Core.

## Dependencies

- imports NexusReader.Domain/Entities/KnowledgeUnit.cs

## Calls

- No resolved calls.

## Coverage

- Symbols: 2
- Executable symbols: 0
- Executable symbols with control flow: 0
- Grounded edges: 3
- Unresolved references: 0
- Control-flow fragments: 0
- Unresolved jumps: 0
- Unsupported constructs: 0
- Control-flow coverage: 100%
- Required diagrams: 1
- Generated diagrams: 1

## Diagrams

### KnowledgeUnitLink Neighborhood

```mermaid
flowchart LR
    class_mqaz6_knowledgeunitlink("KnowledgeUnitLink")
    file_1m6x5qy_knowledgeunitlink_cs("KnowledgeUnitLink")
    file_h6a0xu_knowledgeunit_cs[/"KnowledgeUnit"/]
    type_wq74ui_knowledgeunitlink[/"KnowledgeUnitLink"/]
    file_1m6x5qy_knowledgeunitlink_cs -->|KnowledgeUnit| file_h6a0xu_knowledgeunit_cs
```

## Diagram Validation

- Status: pass
