ErRelationship Class
A relationship between two elements of an entity relationship diagram.
public sealed class ErRelationshipConstructors
| Name | Description |
|---|---|
| ErRelationship(ErElement, ErElement) | Initializes a new instance of the ErRelationship class. |
ErRelationship(ErElement, ErElement)
ErRelationship.csInitializes a new instance of the ErRelationship class.
Properties
| Name | Description |
|---|---|
| From | Gets the first element. |
| FromCardinality | Gets or sets how many instances of ErRelationship.From an instance of ErRelationship.To relates to, drawn at ErRelationship.From. |
| IsIdentifying | Gets or sets a value that indicates whether the relationship is identifying, drawn with a solid line: the child entity cannot exist without the other one. A non-identifying relationship is dashed (Mermaid ..). The default is true. |
| Label | Gets or sets the text of the relationship, from the point of view of ErRelationship.From, or null for none. |
| To | Gets the second element. |
| ToCardinality | Gets or sets how many instances of ErRelationship.To an instance of ErRelationship.From relates to, drawn at ErRelationship.To. |
FromCardinality
ErRelationship.csGets or sets how many instances of ErRelationship.From an instance of ErRelationship.To relates to, drawn at ErRelationship.From.
public ErCardinality FromCardinality { get; set; }Property value
IsIdentifying
ErRelationship.csLabel
ErRelationship.csGets or sets the text of the relationship, from the point of view of ErRelationship.From, or null for none.
public DiagramText? Label { get; set; }Property value
ToCardinality
ErRelationship.csGets or sets how many instances of ErRelationship.To an instance of ErRelationship.From relates to, drawn at ErRelationship.To.
public ErCardinality ToCardinality { get; set; }