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
DependentEntity
Gets the dependent entity name.
public required string DependentEntity { get; init; }
Property Value
DependentNavigation
Gets the dependent navigation property name.
public string? DependentNavigation { get; init; }
Property Value
ForeignKeyProperties
Gets the foreign key property names.
public IReadOnlyList<string> ForeignKeyProperties { get; init; }
Property Value
IsRequired
Gets a value indicating whether the relationship is required.
public bool IsRequired { get; init; }
Property Value
JoinEntity
Gets the join entity name for many-to-many relationships.
public string? JoinEntity { get; init; }
Property Value
Metadata
Gets additional relationship metadata.
public IReadOnlyDictionary<string, object?> Metadata { get; init; }
Property Value
PrincipalEntity
Gets the principal entity name.
public required string PrincipalEntity { get; init; }
Property Value
PrincipalNavigation
Gets the principal navigation property name.
public string? PrincipalNavigation { get; init; }
Property Value
RelationshipType
Gets the relationship type (OneToMany, OneToOne, ManyToMany).
public required string RelationshipType { get; init; }