FederationRelationColumnInfo Class

Describes the relation and contains key column names and a relation condition operator.

Namespace: DevExpress.DataAccess.DataFederation

Assembly: DevExpress.DataAccess.v20.1.dll

Declaration

public sealed class FederationRelationColumnInfo :
    RelationColumnInfoBase
Public NotInheritable Class FederationRelationColumnInfo
    Inherits RelationColumnInfoBase

Remarks

The FederationMasterDetailInfo.KeyColumns property provides access to the list of FederationRelationColumnInfo objects.

Examples

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
DevExpress.DataAccess.RelationColumnInfoBase
FederationRelationColumnInfo
See Also