DbConnectionDataProvider Class
OBSOLETE
This class is now obsolete.
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.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
[Obsolete("This class is now obsolete.")]
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);
Implements
Inheritance
Object
DbConnectionDataProvider
See Also