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

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

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

Namespace: DevExpress.Xpo.DB.Helpers

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

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

Parameters

Name Type Description
nonCachedProvider MSSqlConnectionProvider

A MSSqlConnectionProvider providing access to the database.

objectsToDisposeOnDisconnect IDisposable[]

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

Returns

Type Description
ICacheToCacheCommunicationCore

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

See Also