SelectQuery.AddRelation(Table, Table, String, String, ConditionType) Method
In This Article
Creates a relation between two data tables using an inner join operation and logical condition.
Namespace: DevExpress.DataAccess.Sql
Assembly: DevExpress.DataAccess.v24.2.dll
NuGet Package: DevExpress.DataAccess
#Declaration
public Join AddRelation(
Table parent,
Table nested,
string parentKeyColumn,
string nestedKeyColumn,
ConditionType compareOperator
)
#Parameters
Name | Type | Description |
---|---|---|
parent | Table | A Table object, specifying the parent table. |
nested | Table | A Table object, specifying the nested table. |
parent |
String | A String value, specifying the parent key column name. |
nested |
String | A String value, specifying the nested key column name. |
compare |
Condition |
A Condition |
#Returns
Type | Description |
---|---|
Join | A Join object. |
See Also