BootstrapCardViewBuilderBase<T>.BindToLINQ(IQueryable) Method

Binds the Card View to a queryable data source in server mode.

Namespace: DevExpress.AspNetCore.Bootstrap

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll


public T BindToLINQ(
    IQueryable query
Public Function BindToLINQ(
    query As IQueryable
) As T


Type Name Description
IQueryable query

An IQueryable object that specifies the query request to the data service.


Type Description

A reference to this instance after the operation is completed.

The Card View control supports data binding in server mode, which is designed to work with large datasets. This technique significantly improves the Card View's speed and responsiveness.

The BindToLINQ method is used to establish server-mode data binding using the Entity Framework (EF) Core ORM. The following code demonstrates the described functionality in detail.

@model IQueryable<Email>

    .KeyFieldName(k => k.ID)
    .Columns(columns => {
        columns.Add(c => c.From);
        columns.Add(c => c.Subject);
    .Routes(routes => routes
        .MapRoute(r => r

See also the Binding to Large Database using EF Core online demo.

See Also