A newer version of this page is available.
Switch to the current version.
MasterDetailInfoCollection Class
Namespace: DevExpress.DataAccess.DataFederation
Assembly: DevExpress.DataAccess.v19.1.dll
Declaration
public sealed class MasterDetailInfoCollection :
List<FederationMasterDetailInfo>
Public NotInheritable Class MasterDetailInfoCollection
Inherits List(Of FederationMasterDetailInfo)
Related API Members
The following members accept/return MasterDetailInfoCollection objects:
Remarks
The FederationDataSource.Relations property provides access to a MasterDetailInfoCollection instance.
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
See Also
Feedback