# MermaidEntityAttribute

Describes one ER entity attribute. 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:66](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidEntityRelationshipDocument.cs#L66)

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one ER entity attribute.

## Inheritance

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

## 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 [MermaidEntityNode.Attributes](/api/chartforgex-mermaid-mermaidentitynode/#property-attributes)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidEntityAttribute(string type, string name, string? key, string? comment, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-string-string-chartforgex-mermaid-mermaidsourcespan) 

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

Initializes an entity attribute.

Parameters

**type string required**

**name string required**

**key string? required**

**comment 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 Type { get; }` [#](#property-type) 

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

Gets the attribute type.

 `public string Name { get; }` [#](#property-name) 

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

Gets the attribute name.

 `public string? Key { get; }` [#](#property-key) 

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

Gets optional key markers such as PK or FK.

 `public string? Comment { get; }` [#](#property-comment) 

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

Gets optional attribute comment text.

## 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:7795884EE30515775C23C2885EB5E31D62A64D14063413C551A8018FD8B3716B -->
