MSSql2005SqlDependencyCacheRoot.CreateSqlDependencyCacheRoot(IDbConnection, IDataStore, String, ISqlGeneratorFormatter, DataCacheConfiguration, out IDisposable[]) Method
Creates an MSSql2005SqlDependencyCacheRoot instance associated with a specified Microsoft SQL Server provider, which is used to access a database to be cached, based on specified settings.
Namespace: DevExpress.Xpo.DB.Helpers
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public static ICacheToCacheCommunicationCore CreateSqlDependencyCacheRoot(
IDbConnection connection,
IDataStore nonCachedProvider,
string originalConnectionString,
ISqlGeneratorFormatter formatter,
DataCacheConfiguration cacheConfiguration,
out IDisposable[] objectsToDisposeOnDisconnect
)
#Parameters
Name | Type | Description |
---|---|---|
connection | IDb |
An IDb |
non |
IData |
An Microsoft SQL Server provider (an object implementing the IData |
original |
String | A connection string for an Microsoft SQL Server database that supports Query Notifications. |
formatter | DevExpress. |
A SQL query formatter (an object implementing the ISql |
cache |
Data |
A Data |
objects |
IDisposable[] | An array of IDisposable objects that must be disposed on disconnect from the database. |
#Returns
Type | Description |
---|---|
ICache |
An MSSql2005Sql |