AccessConnectionProviderMultiUserThreadSafe(String, AutoCreateOption) Constructor
Initializes a new instance of the AccessConnectionProviderMultiUserThreadSafe class with the specified settings.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Parameters
Name | Type | Description |
---|---|---|
connectionString | String | A connection string. This parameter is used to initialize the AccessConnectionProviderMultiUserThreadSafe.ConnectionString property. |
autoCreateOption | AutoCreateOption | An AutoCreateOption value that specifies which operations should be performed when the data store is accessed for the first time. This parameter is used to initialize the AccessConnectionProviderMultiUserThreadSafe.AutoCreateOption property. |
Remarks
Usually a Session object creates a connection provider manually based on the information supplied by the connection string. There are also cases when you need to create the connection provider manually via its constructor, for instance:
- when sharing a single IDataLayer object between multiple sessions. A connection provider should be passed to the data layer’s constructor. See the IDataLayer topic for additional information.