Class Relationship
Represents a relationship between two types.
public record Relationship : IEquatable<Relationship>
- Inheritance
-
Relationship
- Implements
- Inherited Members
Constructors
Relationship(string, string, RelationshipKind, string?, string?)
Represents a relationship between two types.
public Relationship(string From, string To, RelationshipKind Kind, string? Label = null, string? Cardinality = null)
Parameters
FromstringThe source type of the relationship.
TostringThe target type of the relationship.
KindRelationshipKindThe kind of relationship.
LabelstringAn optional label for the relationship.
CardinalitystringAn optional cardinality descriptor.
Properties
Cardinality
An optional cardinality descriptor.
public string? Cardinality { get; init; }
Property Value
From
The source type of the relationship.
public string From { get; init; }
Property Value
Kind
The kind of relationship.
public RelationshipKind Kind { get; init; }
Property Value
Label
An optional label for the relationship.
public string? Label { get; init; }
Property Value
To
The target type of the relationship.
public string To { get; init; }