Skip to main content

SelectQuery.AddRelation(Table, Table, String) Method

Creates a relation between two data tables using an inner join operation.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

public Join AddRelation(
    Table parent,
    Table nested,
    string keyColumn
)

Parameters

Name Type Description
parent Table

A Table object, specifying the parent table.

nested Table

A Table object, specifying the nested table.

keyColumn String

A String value, specifying the key column name.

Returns

Type Description
Join

A Join object.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddRelation(Table, Table, String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also