Table of Contents

Class Relationship

Namespace
ProjGraph.Core.Models
Assembly
ProjGraph.Core.dll

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

From string

The source type of the relationship.

To string

The target type of the relationship.

Kind RelationshipKind

The kind of relationship.

Label string

An optional label for the relationship.

Cardinality string

An optional cardinality descriptor.

Properties

Cardinality

An optional cardinality descriptor.

public string? Cardinality { get; init; }

Property Value

string

From

The source type of the relationship.

public string From { get; init; }

Property Value

string

Kind

The kind of relationship.

public RelationshipKind Kind { get; init; }

Property Value

RelationshipKind

Label

An optional label for the relationship.

public string? Label { get; init; }

Property Value

string

To

The target type of the relationship.

public string To { get; init; }

Property Value

string