Skip to main content
.NET Framework 4.6.2+

XPObjectSpaceProvider.GetDataStoreProvider(String, IDbConnection, Boolean) Method

Returns the data store provider.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Xpo

Declaration

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

Parameters

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.

Returns

Type Description
DevExpress.ExpressApp.Xpo.IXpoDataStoreProvider

An IXpoDataStoreProvider object.

Remarks

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.

Note

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