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.v23.1.dll

NuGet Package: DevExpress.DataAccess


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


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.


Type Description

A Join object.

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


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