corelibraries-devexpress-dot-xpo-dot-db-dot-datacacheroot-dot-configure-x28-devexpress-dot-xpo-dot-db-dot-helpers-dot-datacacheconfiguration-x29.md
Applies specified configuration settings to a cached data store.
Namespace : DevExpress.Xpo.DB
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public override void Configure(
DataCacheConfiguration configuration
)
Public Overrides Sub Configure(
configuration As DataCacheConfiguration
)
| Name | Type | Description |
|---|---|---|
| configuration | DataCacheConfiguration |
A DataCacheConfiguration object containing cache configuration settings.
|
Calling this method automatically resets table update information stored in the Root element.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Configure(DataCacheConfiguration) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
DataCacheRoot dataCacheRoot = new DataCacheRoot(dataStore);
dataCacheRoot.Configure(new DataCacheConfiguration(DataCacheConfigurationCaching.InList, "Customer"));
MainDataStore = dataCacheRoot;
Dim dataCacheRoot As DataCacheRoot = New DataCacheRoot(dataStore)
dataCacheRoot.Configure(New DataCacheConfiguration(DataCacheConfigurationCaching.InList, "Customer"))
MainDataStore = dataCacheRoot
See Also