DBForeignKey(ICollection, String, StringCollection) Constructor

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

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v20.2.dll

Declaration

public DBForeignKey(
    ICollection columns,
    string primaryKeyTable,
    StringCollection primaryKeyTableKeyColumns
)
Public Sub New(
    columns As ICollection,
    primaryKeyTable As String,
    primaryKeyTableKeyColumns As StringCollection
)

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