Skip to main content
A newer version of this page is available. .

MSSql2005SqlDependencyCacheRoot.CreateProviderFromString_CacheRoot(String, AutoCreateOption, out IDisposable[]) Method

Returns a cached data store provider, created based on specified settings.

Namespace: DevExpress.Xpo.DB.Helpers

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

public static IDataStore CreateProviderFromString_CacheRoot(
    string connectionString,
    AutoCreateOption autoCreateOption,
    out IDisposable[] objectsToDisposeOnDisconnect
)

Parameters

Name Type Description
connectionString String

A string that specifies the connection string. Use the MSSqlConnectionProvider.GetConnectionString method to create valid connection strings.

autoCreateOption AutoCreateOption

An AutoCreateOption value that specifies which operations should be performed when a data store is accessed for the first time.

objectsToDisposeOnDisconnect IDisposable[]

An array of IDisposable objects that must be disposed on disconnect from the database.

Returns

Type Description
IDataStore

A DataCacheNodeLocal instance (an IDataStore implementation) which is connected to a MSSql2005SqlDependencyCacheRoot associated with a MSSqlConnectionProvider, that is created based on specified settings.

See Also