BootstrapCardViewBuilderBase<T>.BindToXPO(Session, Type) Method

Establishes a server-mode data binding via DevExpress eXpress Persistent Objects for .NET (XPO) ORM.

Namespace: DevExpress.AspNetCore.Bootstrap

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


public T BindToXPO(
    Session session,
    Type objectType
Public Function BindToXPO(
    session As Session,
    objectType As Type
) As T


Name Type Description
session Session

A session that is used to load and save persistent objects.

objectType Type

The type of an object that describes the target dataset.


Type Description

A reference to this instance after the operation is completed.



Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

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

The BindToXPO method is used to establish server-mode data binding using the DevExpress eXpress Persistent Objects for .NET (XPO) ORM. The following code demonstrates the described functionality in detail.

@model XPQuery<XPEmail>

    .KeyFieldName(k => k.ID)
    .Columns(columns => {
        columns.Add(c => c.From);
        columns.Add(c => c.Subject);
    .Routes(routes => routes
        .MapRoute(r => r
    .BindToXPO(new UnitOfWork(), typeof(XPEmail)))

See also the Binding to Large Database using XPO online demo and the Getting Started with .NET Core article.

See Also