# MermaidEntityRelationship

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

**Base**

`MermaidAstNode`

**Modifiers**

sealed

Describes one ER relationship.

## Inheritance

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

## 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.Relationships](/api/chartforgex-mermaid-mermaidentityrelationshipdocument/#property-relationships)

 Filter members   

    Show inherited   

 

## Constructors

 `public MermaidEntityRelationship(string sourceId, string targetId, string connector, string label, MermaidSourceSpan span)` [#](#constructor-ctor-string-string-string-string-chartforgex-mermaid-mermaidsourcespan) 

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

Initializes an ER relationship.

Parameters

**sourceId string required**

**targetId string required**

**connector string required**

**label 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 SourceId { get; }` [#](#property-sourceid) 

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

Gets the source entity id.

 `public string TargetId { get; }` [#](#property-targetid) 

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

Gets the target entity id.

 `public string Connector { get; }` [#](#property-connector) 

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

Gets the Mermaid crow's-foot connector.

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

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

Gets the relationship label.

## 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:5DFB7B5F9537F4ACC761E38720B272422C415BE7726C3BB53F5E29DB6EDD794E -->
