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 |
---|---|---|
connection |
String | A string containing the database connection settings. |
connection | IDb |
An IDb |
enable |
Boolean | true, if the connection pooling is enabled; otherwise, false. |
#Returns
Type | Description |
---|---|
DevExpress. |
An IXpo |
#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.
#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.