Skip to main content
A newer version of this page is available. .

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

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.

Example

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