Back to Devexpress

FederationConditionType Enum

corelibraries-devexpress-dot-dataaccess-dot-datafederation-d53ed7ac.md

latest3.2 KB
Original Source

FederationConditionType Enum

Specifies the relation’s condition.

Namespace : DevExpress.DataAccess.DataFederation

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
public enum FederationConditionType
vb
Public Enum FederationConditionType

Members

NameDescription
Equal

Specifies the “equal” relational operator.

| | NotEqual |

Specifies the “not equal” relational operator.

| | Greater |

Specifies the “greater than” relational operator.

| | GreaterOrEqual |

Specifies the “greater than or equal to” relational operator.

| | Less |

Specifies the “less than” relational operator.

| | LessOrEqual |

Specifies the “less than or equal to” relational operator.

|

The following properties accept/return FederationConditionType values:

Remarks

The FederationConditionType enumeration member is assigned to the FederationRelationColumnInfo.ConditionOperator property.

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.

csharp
using DevExpress.DataAccess.DataFederation;
// ...
  federation.Relations.Add(new FederationMasterDetailInfo() {
      MasterQueryName = "Orders",
      DetailQueryName = "OrderDetail",
      KeyColumns = {
          new FederationRelationColumnInfo(){
              ParentKeyColumn="OrderID",
              NestedKeyColumn ="OrderID",
              ConditionOperator= FederationConditionType.Equal
              }
          }
  }
vb
Imports DevExpress.DataAccess.DataFederation
' ... 
  federation.Relations.Add(
      New FederationMasterDetailInfo("Orders",
                                      "OrderDetail", 
                                      New FederationRelationColumnInfo() With
                                      {.ParentKeyColumn = "OrderID",
                                      .NestedKeyColumn = "OrderID",
                                      .ConditionOperator = FederationConditionType.Equal}))

See Also

DevExpress.DataAccess.DataFederation Namespace