Table of Contents

Class RelationshipManifest

Namespace
JD.Domain.Abstractions
Assembly
JD.Domain.Abstractions.dll

Represents a relationship between entities.

public sealed class RelationshipManifest
Inheritance
RelationshipManifest
Inherited Members

Properties

DeleteBehavior

Gets the delete behavior (Cascade, SetNull, Restrict, NoAction).

public string? DeleteBehavior { get; init; }

Property Value

string

DependentEntity

Gets the dependent entity name.

public required string DependentEntity { get; init; }

Property Value

string

DependentNavigation

Gets the dependent navigation property name.

public string? DependentNavigation { get; init; }

Property Value

string

ForeignKeyProperties

Gets the foreign key property names.

public IReadOnlyList<string> ForeignKeyProperties { get; init; }

Property Value

IReadOnlyList<string>

IsRequired

Gets a value indicating whether the relationship is required.

public bool IsRequired { get; init; }

Property Value

bool

JoinEntity

Gets the join entity name for many-to-many relationships.

public string? JoinEntity { get; init; }

Property Value

string

Metadata

Gets additional relationship metadata.

public IReadOnlyDictionary<string, object?> Metadata { get; init; }

Property Value

IReadOnlyDictionary<string, object>

PrincipalEntity

Gets the principal entity name.

public required string PrincipalEntity { get; init; }

Property Value

string

PrincipalNavigation

Gets the principal navigation property name.

public string? PrincipalNavigation { get; init; }

Property Value

string

RelationshipType

Gets the relationship type (OneToMany, OneToOne, ManyToMany).

public required string RelationshipType { get; init; }

Property Value

string