.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

MSSql2005SqlDependencyCacheRoot.CreateSqlDependencyCacheRoot(MSSqlConnectionProvider, out IDisposable[]) Method

Creates an MSSql2005SqlDependencyCacheRoot instance associated with a specified MSSqlConnectionProvider providing access to a database to be cached.

Namespace: DevExpress.Xpo.DB.Helpers

Assembly: DevExpress.Xpo.v21.2.dll


public static ICacheToCacheCommunicationCore CreateSqlDependencyCacheRoot(
    MSSqlConnectionProvider nonCachedProvider,
    out IDisposable[] objectsToDisposeOnDisconnect


Name Type Description
nonCachedProvider MSSqlConnectionProvider

An MSSqlConnectionProvider providing access to the database.

objectsToDisposeOnDisconnect IDisposable[]

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


Type Description

An MSSql2005SqlDependencyCacheRoot instance (an ICacheToCacheCommunicationCore implementation) ready to be used as the Root element in a cached hierarchy.

See Also