Interface ICachedDataStoreServiceAsync
- Namespace
- DevExpress.Xpo.DB
- Assembly
- DevExpress.Xpo.v24.1.dll
Defines a WCF service contract to asynchronously access data stored in cached data stores (objects that implement the DevExpress.Xpo.DB.ICachedDataStore interface).
public interface ICachedDataStoreServiceAsync : ICachedDataStoreService, IDataStoreServiceAsync, IDataStoreService
- Inherited Members
Methods
ModifyDataCachedAsync(DataCacheCookie, ModificationStatement[])
Uses specified modification statements to asynchronously update data in a cached data store.
Task<OperationResult<DataCacheModificationResult>> ModifyDataCachedAsync(DataCacheCookie cookie, ModificationStatement[] dmlStatements)
Parameters
cookie
DataCacheCookieA Root element’s state stored by a specific cache Node.
dmlStatements
ModificationStatement[]An array of data modification statements.
Returns
- Task<OperationResult<DataCacheModificationResult>>
A Task that returns the data modification result.
NotifyDirtyTablesAsync(DataCacheCookie, params string[])
Asynchronously informs a cached data store‘s Root element (DevExpress.Xpo.DB.DataCacheRoot or MSSql2005SqlDependencyCacheRoot) about specific modified tables.
Task<OperationResult<DataCacheResult>> NotifyDirtyTablesAsync(DataCacheCookie cookie, params string[] dirtyTablesNames)
Parameters
cookie
DataCacheCookieA Root element’s state stored by a specific cache Node.
dirtyTablesNames
string[]An array of table names that specify modified tables.
Returns
- Task<OperationResult<DataCacheResult>>
A Task that returns the operation result.
ProcessCookieAsync(DataCacheCookie)
Synchronizes table update information asynchronously with a cached data store‘s Root element (DevExpress.Xpo.DB.DataCacheRoot or MSSql2005SqlDependencyCacheRoot).
Task<OperationResult<DataCacheResult>> ProcessCookieAsync(DataCacheCookie cookie)
Parameters
cookie
DataCacheCookieA Root element’s state stored by a specific cache Node.
Returns
- Task<OperationResult<DataCacheResult>>
A Task that returns the operation result.
SelectDataCachedAsync(DataCacheCookie, SelectStatement[])
Uses specified query statements to asynchronously fetch data from a cached data store.
Task<OperationResult<DataCacheSelectDataResult>> SelectDataCachedAsync(DataCacheCookie cookie, SelectStatement[] selects)
Parameters
cookie
DataCacheCookieA Root element’s state stored by a specific cache Node.
selects
SelectStatement[]An array of query statements.
Returns
- Task<OperationResult<DataCacheSelectDataResult>>
A Task that returns the data fetch result.
UpdateSchemaCachedAsync(DataCacheCookie, DBTable[], bool)
Asynchronously updates a cached data store‘s schema according to specified settings.
Task<OperationResult<DataCacheUpdateSchemaResult>> UpdateSchemaCachedAsync(DataCacheCookie cookie, DBTable[] tables, bool doNotCreateIfFirstTableNotExist)
Parameters
cookie
DataCacheCookieA Root element’s state stored by a specific cache Node.
tables
DBTable[]An array of tables whose structure is saved to a cached data store.
doNotCreateIfFirstTableNotExist
boolDefines whether to create and update tables if the data store does not contain the tables array’s first item. true, to prevent table creation and schema update; false, to create new tables and update schema.
Returns
- Task<OperationResult<DataCacheUpdateSchemaResult>>
A Task that returns the operation result.