DashboardXpoDataSource Class
Retrieves data from XPO (eXpress Persistent Objects).
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v21.2.Core.dll
Declaration
public class DashboardXpoDataSource :
XPObjectSource,
IDashboardDataSource,
IDashboardComponent,
IComponent,
IDisposable,
ISupportInitialize,
ISupportPrefix,
IDashboardDataSourceInternal,
IExternalSchemaConsumer,
IFederationDataProvider,
IXpoDataSourceInfo,
ICloneable<DashboardXpoDataSource>
Remarks
The DashboardXpoDataSource allows you to obtain data that XPO (eXpress Persistent Object) retrieves from a data source.
Runtime
Create a DashboardXpoDataSource object and use the ConnectionStringName property to specify the name of the connection string defined in the application configuration file.
Pass the persistent object type to the SetEntityType method.
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;
}
Design Time
Refer to the following topic for information on how bind a Dashboard to an XPO Data Source at Design-Time: XPO Data Source
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the DashboardXpoDataSource class.
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.