Skip to main content

LinqServerModeDataSourceSelectEventArgs.QueryableSource Property

Gets or sets the queryable data source.

Namespace: DevExpress.Data.Linq

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public IQueryable QueryableSource { get; set; }

Property Value

Type Description

An object that implements the IQueryable interface.


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;
    e.QueryableSource = db.Products.Where(p=>p.Price > 10);
    //or other linq query
See Also