Skip to main content
A newer version of this page is available. .

FederationMasterDetailInfo Class

Identifies the master-detail relationship defined by federated queries.

Namespace: DevExpress.DataAccess.DataFederation

Assembly: DevExpress.DataAccess.v19.1.dll

Declaration

public sealed class FederationMasterDetailInfo :
    IMasterDetailInfo

Remarks

The FederationDataSource.Relations collection contains FederationMasterDetailInfo objects.

Example

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

Note

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(){
              ParentKeyColumn="OrderID",
              NestedKeyColumn ="OrderID",
              ConditionOperator= FederationConditionType.Equal
              }
          }
  }

Inheritance

Object
FederationMasterDetailInfo
See Also