Skip to main content

DBForeignKey(ICollection, String, StringCollection) Constructor

Initializes a new instance of the DBForeignKey class with the specified settings.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public DBForeignKey(
    ICollection columns,
    string primaryKeyTable,
    StringCollection primaryKeyTableKeyColumns
)

Parameters

Name Type Description
columns ICollection

A collection of strings that specify the names of columns that function as foreign keys for a table. This value is assigned to the DBTableMultiColumnGadget.Columns property.

primaryKeyTable String

A String value that specifies the name of a primary key table. This value is assigned to the DBForeignKey.PrimaryKeyTable field.

primaryKeyTableKeyColumns StringCollection

A collection of strings that specify the names of columns that function as primary keys for a table. This value is assigned to the DBForeignKey.PrimaryKeyTableKeyColumns field.

See Also