MSSql2005SqlDependencyCacheRoot.CreateProviderFromString_WithCache(String, AutoCreateOption, out IDisposable[]) Method
Returns a cached data store provider, created based on specified settings.
Namespace: DevExpress.Xpo.DB.Helpers
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public static IDataStore CreateProviderFromString_WithCache(
string connectionString,
AutoCreateOption autoCreateOption,
out IDisposable[] objectsToDisposeOnDisconnect
)
#Parameters
Name | Type | Description |
---|---|---|
connection |
String | A connection string for an Microsoft SQL Server database that supports Query Notifications. |
auto |
Auto |
An Auto |
objects |
IDisposable[] | An array of IDisposable objects that must be disposed on disconnecting from the database. |
#Returns
Type | Description |
---|---|
IData |
A Data |
#Remarks
Do not pass the connection string created via the MSSqlConnectionProvider.GetConnectionString method. The CreateProviderFromString_WithCache method accepts generic connection strings only, without the XPO-specific “XpoProvider=XXX“ part.