Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

MSSql2005SqlDependencyCacheRoot.CreateSqlDependencyCacheRoot(IDataStore, SqlConnection, ISqlGeneratorFormatter, out IDisposable[]) Method

OBSOLETE

Use CreateSqlDependencyCacheRoot instead.

Namespace: DevExpress.Xpo.DB.Helpers

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

[Obsolete("Use CreateSqlDependencyCacheRoot(IDbConnection connection, IDataStore nonCachedProvider, ISqlGeneratorFormatter formatter, out IDisposable[] objectsToDisposeOnDisconnect) instead.", false)]
public static ICacheToCacheCommunicationCore CreateSqlDependencyCacheRoot(
    IDataStore nonCachedProvider,
    SqlConnection connection,
    ISqlGeneratorFormatter formatter,
    out IDisposable[] objectsToDisposeOnDisconnect
)

Parameters

Name Type Description
nonCachedProvider IDataStore

An Microsoft SQL Server provider (an object implementing the IDataStore). Normally, you can pass an MSSqlConnectionProvider object or its descendant as the parameter.

connection SqlConnection

An SqlConnection object providing access to a database to be cached.

formatter DevExpress.Xpo.DB.Helpers.ISqlGeneratorFormatter

A SQL query formatter (an object implementing the ISqlGeneratorFormatter). Normally, you can pass an MSSqlConnectionProvider object or its descendant as the parameter.

objectsToDisposeOnDisconnect IDisposable[]

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

Returns

Type Description
ICacheToCacheCommunicationCore

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

See Also