FederationDataSource.Relations Property

Provides access to the collection of the FederationMasterDetailInfo objects that define master-detail relationships.

Namespace: DevExpress.DataAccess.DataFederation

Assembly: DevExpress.DataAccess.v21.2.dll


public MasterDetailInfoCollection Relations { get; }

Property Value

Type Description

A collection of master-detail relationships.


To create a master-detail relationship between two queries, add an instance of the FederationMasterDetailInfo object to the Relations collection:


The complete sample project How to Create a Federated Data Source at Runtime is available in the DevExpress Examples repository.

using DevExpress.DataAccess.DataFederation;
// ...
  federation.Relations.Add(new FederationMasterDetailInfo() {
      MasterQueryName = "Orders",
      DetailQueryName = "OrderDetail",
      KeyColumns = {
          new FederationRelationColumnInfo(){
              NestedKeyColumn ="OrderID",
              ConditionOperator= FederationConditionType.Equal

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Relations property.


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