# MermaidEntityNode

Describes one ER entity. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidEntityRelationshipDocument.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L52)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one ER entity.

## Inheritance

- [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)
- MermaidEntityNode

## Usage

 Explore 1 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [MermaidEntityRelationshipDocument.Entities](/api/chartforgex-mermaid-mermaidentityrelationshipdocument/#property-entities)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidEntityNode(string id, MermaidSourceSpan span)` [#](#constructor-ctor-string-chartforgex-mermaid-mermaidsourcespan) 

[MermaidEntityRelationshipDocument.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L52)

Initializes an entity node.

Parameters

**id string required**

**span ChartForgeX.Mermaid.MermaidSourceSpan required**

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string Id { get; }` [#](#property-id) 

[MermaidEntityRelationshipDocument.cs:43](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L43)

Gets the entity id.

 `public string? Label { get; set; }` [#](#property-label) 

[MermaidEntityRelationshipDocument.cs:46](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L46)

Gets or sets an optional display alias; relationships continue to use [MermaidEntityNode.Id](/api/chartforgex-mermaid-mermaidentitynode/).

 `public string? GroupId { get; set; }` [#](#property-groupid) 

[MermaidEntityRelationshipDocument.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L49)

Gets or sets the containing entity-group identity.

 `public List<MermaidEntityAttribute> Attributes { get; }` [#](#property-attributes) 

[MermaidEntityRelationshipDocument.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L52)

Gets entity attributes.

 `public List<string> Classes { get; }` [#](#property-classes) 

[MermaidEntityRelationshipDocument.cs:55](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L55)

Gets assigned style classes in source order.

 `public Dictionary<string, string> Styles { get; }` [#](#property-styles) 

[MermaidEntityRelationshipDocument.cs:58](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L58)

Gets resolved style declarations, including properties diagnosed without a native mapping.

## Inherited Properties

 `public MermaidSourceSpan Span { get; }` [#](#property-span) 

[MermaidAstNode.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidAstNode.cs#L13)

Inherited from [MermaidAstNode](/api/chartforgex-mermaid-mermaidastnode/)

<!-- PowerForge markdown artifact sha256:5B70142883F165BE4F8231E7E4DB0D95C4FAFB68E31C193BE005ACC255379EFF -->
