Skip to main content

WcfServerModeDataSource.Query Property

Gets or sets the query request to a WCF Data Service. This is a dependency property.

Namespace: DevExpress.Xpf.Core.ServerMode

Assembly: DevExpress.Xpf.Core.v23.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public IQueryable Query { get; set; }

Property Value

Type Description
IQueryable

A query request to a WCF Data Service.

Remarks

public MainWindow() {
    InitializeComponent();
    grid.DataSource = new WcfServerModeSource() {        
        KeyExpression = "CustomerID",
        Query = myDataServiceContext.Customers
    };
}

You can see a detailed example in the How to use the WcfServerModeSource component as a data source article.

See Also