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

LinqServerModeDataSourceSelectEventArgs.QueryableSource Property

Gets or sets the queryable data source.

Namespace: DevExpress.Data.Linq

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public IQueryable QueryableSource { get; set; }

Property Value

Type Description
IQueryable

An object that implements the IQueryable interface.

Example

The following example illustrates how to use the LinqServerModeDataSourceSelectEventArgs.QueryableSource property.

protected void EntityServerModeDataSource1_Selecting(object sender, DevExpress.Data.Linq.LinqServerModeDataSourceSelectEventArgs e) {
    var db = new YourDataContext();
    e.KeyExpression = "ID_FIELD_FROM_YOUR_TABLE";
    e.QueryableSource = db.Products;
    //or
    e.QueryableSource = db.Products.Where(p=>p.Price > 10);
    //or other linq query
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the QueryableSource property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also