Skip to main content
.NET Framework 4.5.2+

XPObjectSpaceProvider.GetDataStoreProvider(String, IDbConnection, Boolean) Method

Returns the data store provider.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v23.1.dll

NuGet Package: DevExpress.ExpressApp.Xpo


public static IXpoDataStoreProvider GetDataStoreProvider(
    string connectionString,
    IDbConnection connection,
    bool enablePoolingInConnectionString


Name Type Description
connectionString String

A string containing the database connection settings.

connection IDbConnection

An IDbConnection object specifying the database connection.

enablePoolingInConnectionString Boolean

true, if the connection pooling is enabled; otherwise, false.


Type Description

An IXpoDataStoreProvider object.


You can pass the object returned by the static GetDataStoreProvider method to the XPObjectSpaceProvider constructor when registering the Object Space Provider in the XafApplication.CreateCustomObjectSpaceProvider event handler.

If you do not need to enable connection pooling, use another overload of this method that does not take the enablePooling parameter.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetDataStoreProvider(String, IDbConnection, Boolean) method.


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.

See Also