Table of Contents

Class EfRelationship

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

Represents a relationship between two entities in the Entity Framework model.

public class EfRelationship
Inheritance
EfRelationship
Inherited Members
Extension Methods

Properties

IsRequired

Gets or initializes a value indicating whether the relationship is required.

public bool IsRequired { get; init; }

Property Value

bool

SourceEntity

Gets or initializes the name of the source entity in the relationship.

public string SourceEntity { get; init; }

Property Value

string

TargetEntity

Gets or initializes the name of the target entity in the relationship.

public string TargetEntity { get; init; }

Property Value

string

Type

Gets or initializes the type of the relationship (e.g., One-to-One, One-to-Many, Many-to-Many).

public EfRelationshipType Type { get; init; }

Property Value

EfRelationshipType