Table of Contents

Interface IForeignKey

Namespace
OrpheusInterfaces.Interfaces.Attributes
Assembly
OrpheusInterfaces.dll

Orpheus foreign key attribute

public interface IForeignKey : IOrpheusBaseAttribute

Properties

Field

string Field { get; set; }

Property Value

string

The foreign key field name.

OnDeleteCascade

bool OnDeleteCascade { get; }

Property Value

bool

Set to true to enable cascade delete.

OnUpdateCascade

bool OnUpdateCascade { get; }

Property Value

bool

Set to true to enable cascade update.

ReferenceField

string ReferenceField { get; }

Property Value

string

The reference table key.

ReferenceTable

string ReferenceTable { get; }

Property Value

string

The reference table.

SchemaName

string SchemaName { get; set; }

Property Value

string

Optional. Set the schema name of the reference table, if there is one.