MSSql2005SqlDependencyCacheRoot.CreateSqlDependencyCacheRoot(String, AutoCreateOption, DataCacheConfiguration, out IDisposable[]) Method
Creates a MSSql2005SqlDependencyCacheRoot instance associated with a MSSqlConnectionProvider, which is created to provide access to a database to be cached, based on specified settings.
Namespace: DevExpress.Xpo.DB.Helpers
Assembly: DevExpress.Xpo.v18.2.dll
Declaration
public static ICacheToCacheCommunicationCore CreateSqlDependencyCacheRoot(
string sqlConnectionConnectionString,
AutoCreateOption autoCreateOption,
DataCacheConfiguration cacheConfiguration,
out IDisposable[] objectsToDisposeOnDisconnect
)
Parameters
Name | Type | Description |
---|---|---|
sqlConnectionConnectionString | String | A string that specifies the connection string for a SqlConnection object, which is created for a MSSqlConnectionProvider, providing access to a database to be cached. |
autoCreateOption | AutoCreateOption | An AutoCreateOption value that specifies which operations should be performed when a data store is accessed for the first time. |
cacheConfiguration | DataCacheConfiguration | A DataCacheConfiguration object providing cache configuration settings. |
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. |