Class FlatForeignKey

Assembly: redb.Export.dll

A single-column foreign key of a flat table.

public sealed class FlatForeignKey

Inheritance

Object→FlatForeignKey

Properties

Column

Referencing column.

public string Column { get; init; }

Name

Constraint name (already within the identifier limit).

public string Name { get; init; }

OnDelete

What happens to the referencing row when the referenced one is deleted.

public FlatDeleteRule OnDelete { get; init; }

TargetColumn

Referenced column.

public string TargetColumn { get; init; }

TargetPropsType

For a RedbObject<T> reference: the Props type T the target table belongs to.

public Type? TargetPropsType { get; init; }

TargetTable

Referenced table. It may be created later than the referencing one, or be absent when its Props type is not part of the model.

public string TargetTable { get; init; }