Back to Devexpress

DataProviderBase Class

corelibraries-devexpress-dot-dataaccess-b43adbd0.md

latest2.2 KB
Original Source

DataProviderBase Class

OBSOLETE

The DataProviderBase class is obsolete now. Use the DashboardSqlDataSource class instead

Serves as the base class for classes that represent a data provider.

Namespace : DevExpress.DataAccess

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
[Obsolete("The DataProviderBase class is obsolete now. Use the DashboardSqlDataSource class instead")]
public class DataProviderBase :
    DisposableObject,
    IDataProvider,
    IServiceContainer,
    IServiceProvider,
    IParametersOwner,
    IParameterSupplierBase
vb
<Obsolete("The DataProviderBase class is obsolete now. Use the DashboardSqlDataSource class instead")>
Public Class DataProviderBase
    Inherits DisposableObject
    Implements IDataProvider,
               IServiceContainer,
               IServiceProvider,
               IParametersOwner,
               IParameterSupplierBase

Remarks

To supply a data source with data using a data provider, do one of the following:

  • Pass the created DataConnection class instance to the DataProviderBase descendant constructor. Optionally, you can specify the SQL query to select the required data.
  • Pass the created DataConnectionParametersBase descendant instance to the DataProviderBase descendant constructor and specify the connection name. Also, you need to specify the SQL query to select the required data.

Inheritance

Object DevExpress.Utils.Controls.DisposableObject DataProviderBase SqlDataProvider

See Also

DataProviderBase Members

DevExpress.DataAccess Namespace