The requested page is not available for the requested platform. You are viewing the content for Default platform.

DbConnectionDataProvider Class

The base class for classes that assist in accessing a Silverlight Report Wizard's data sources using a connection string.

Namespace: DevExpress.XtraReports.Data

Assembly: DevExpress.XtraReports.v19.1.dll

Declaration

public class DbConnectionDataProvider :
    IDataProvider,
    IDisposable
Public Class DbConnectionDataProvider
    Implements IDataProvider,
               IDisposable

Remarks

The DbConnectionDataProvider class is used by a Report Wizard for assistance in working with report data sources. In most scenarios, you do not need to use this class yourself.

Examples

The following code illustrates the process of registering a database on the server.

 IDisposable[] disposableObjectCollection = null;
    string connectionString = "Data Source=.;Initial Catalog=AdventureWorks;Integrated Security=True";
    IDataStore dataStore = XpoDefault.GetConnectionProvider(connectionString, 
        AutoCreateOption.None, out disposableObjectCollection);
    IDataStoreSchemaExplorer schemaExplorer = (IDataStoreSchemaExplorer)dataStore;
    DbConnectionDataProvider dbConnectionDataProvider =  new DbConnectionDataProvider(
        new DataSchemaProvider(schemaExplorer),
        new DataProvider(schemaExplorer, dataStore),
        disposableObjectCollection);

Inheritance

Object
DbConnectionDataProvider
See Also