All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DashboardXpoDataSource Class

Retrieves data from XPO (eXpress Persistent Objects).

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v19.2.Core.dll

Declaration

public class DashboardXpoDataSource :
    XPObjectSource,
    IDashboardDataSource,
    IDashboardComponent,
    IComponent,
    IDisposable,
    ISupportInitialize,
    ISupportPrefix,
    IDashboardDataSourceInternal,
    IExternalSchemaConsumer,
    IFederationDataProvider,
    IXpoDataSourceInfo,
    ICloneable<DashboardXpoDataSource>
Public Class DashboardXpoDataSource
    Inherits XPObjectSource
    Implements IDashboardDataSource,
               IDashboardComponent,
               IComponent,
               IDisposable,
               ISupportInitialize,
               ISupportPrefix,
               IDashboardDataSourceInternal,
               IExternalSchemaConsumer,
               IFederationDataProvider,
               IXpoDataSourceInfo,
               ICloneable(Of DashboardXpoDataSource)

Remarks

The DashboardXpoDataSource allows you to obtain data that XPO ((eXpress Persistent Object) retrieves from a data source.

Design Time

To connect to the XPO data source, perform the following steps.

  1. Click the New Data Source button in the Data Source ribbon tab.

    DataBinding_NewDataSource

  2. On the first page of the invoked Data Source Wizard dialog, select eXpress Persistent Objects (XPO) and click Next. The wizard allows you to specify the entity type.

Runtime

  1. Instantiate the DashboardXpoDataSource object and use the ConnectionStringName property to specify the name of the connection string defined in the application configuration file.

  2. Pass the persistent object type to the SetEntityType method.

Note

The complete sample project How to Bind a Dashboard to the XPO Data Source at Runtime is available in the DevExpress Examples repository.

The code sample below illustrates how to connect to the XPO data source.

using DevExpress.DashboardCommon;
// ...
public static DashboardXpoDataSource CreateXpoDataSource()
{
    DashboardXpoDataSource dataSource = new DashboardXpoDataSource()
    {
        ConnectionStringName = "northwind"
    };
    dataSource.SetEntityType(typeof(nwind.Customers));
    return dataSource;
}

Inheritance

Object
MarshalByRefObject
Component
DevExpress.DataAccess.DataComponentBase
XPObjectSource
DashboardXpoDataSource
See Also