XPObjectSpaceProvider.GetDataStoreProvider(String, IDbConnection, Boolean) Method
Returns the data store provider.
Namespace: DevExpress.ExpressApp.Xpo
Assembly: DevExpress.ExpressApp.Xpo.v26.1.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
If you do not need to enable connection pooling, use another overload of this method that does not take the enablePooling parameter.
Related GitHub Examples
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.