Search Results for

    Show / Hide Table of Contents
    View Source

    Class ForeignKeyDefinition

    Represents the definition of a foreign key constraint in the database model.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseModelDefinitions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class ForeignKeyDefinition

    Constructors

    View Source

    ForeignKeyDefinition()

    Initializes a new, empty instance of the ForeignKeyDefinition class.

    Declaration
    public ForeignKeyDefinition()

    Properties

    View Source

    ForeignColumns

    Gets or sets the collection of column names in the foreign table that are part of the foreign key constraint.

    Declaration
    public virtual ICollection<string> ForeignColumns { get; set; }
    Property Value
    Type Description
    ICollection<string>
    View Source

    ForeignTable

    Gets or sets the name of the referenced (foreign) table in the foreign key relationship.

    Declaration
    public virtual string? ForeignTable { get; set; }
    Property Value
    Type Description
    string
    View Source

    ForeignTableSchema

    Gets or sets the schema name of the foreign table.

    Declaration
    public virtual string? ForeignTableSchema { get; set; }
    Property Value
    Type Description
    string
    View Source

    Name

    Gets or sets the name of the foreign key.

    Declaration
    public virtual string? Name { get; set; }
    Property Value
    Type Description
    string
    View Source

    OnDelete

    Gets or sets the action to take when a referenced row is deleted.

    Declaration
    public virtual Rule OnDelete { get; set; }
    Property Value
    Type Description
    Rule
    View Source

    OnUpdate

    Gets or sets the action to take when the referenced key is updated.

    Declaration
    public virtual Rule OnUpdate { get; set; }
    Property Value
    Type Description
    Rule
    View Source

    PrimaryColumns

    Gets or sets the collection of primary key column names involved in the foreign key.

    Declaration
    public virtual ICollection<string> PrimaryColumns { get; set; }
    Property Value
    Type Description
    ICollection<string>
    View Source

    PrimaryTable

    Gets or sets the name of the primary (referenced) table in this foreign key relationship.

    Declaration
    public virtual string? PrimaryTable { get; set; }
    Property Value
    Type Description
    string
    View Source

    PrimaryTableSchema

    Gets or sets the schema name of the primary table in the foreign key relationship.

    Declaration
    public virtual string? PrimaryTableSchema { get; set; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX