Interface ICachedDataStoreService
- Namespace
- DevExpress.Xpo.DB
- Assembly
- DevExpress.Xpo.v24.1.dll
Defines a WCF service contract to access data stored in cached data stores (objects implementing the DevExpress.Xpo.DB.ICachedDataStore interface).
public interface ICachedDataStoreService : IDataStoreService
- Inherited Members
Methods
ModifyDataCached(DataCacheCookie, ModificationStatement[])
Defines a service operation that, when implemented by a class, updates data in a cached data store using specified modification statements and returns the operation result.
OperationResult<DataCacheModificationResult> ModifyDataCached(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
- OperationResult<DataCacheModificationResult>
An OperationResult<DevExpress.Xpo.DB.Helpers.DataCacheModificationResult> denoting the result of the data modifications.
NotifyDirtyTables(DataCacheCookie, params string[])
Defines a service operation that, when implemented by a class, informs a cached data store‘s Root element (DevExpress.Xpo.DB.DataCacheRoot or MSSql2005SqlDependencyCacheRoot) about specific modified tables.
OperationResult<DataCacheResult> NotifyDirtyTables(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 specifying modified tables.
Returns
- OperationResult<DataCacheResult>
An OperationResult<DevExpress.Xpo.DB.Helpers.DataCacheResult> object denoting the operation result.
ProcessCookie(DataCacheCookie)
Defines a service operation that, when implemented by a class, synchronizes table update information with a cached data store‘s Root element (DevExpress.Xpo.DB.DataCacheRoot or MSSql2005SqlDependencyCacheRoot).
OperationResult<DataCacheResult> ProcessCookie(DataCacheCookie cookie)
Parameters
cookie
DataCacheCookieA Root element’s state stored by a specific cache Node.
Returns
- OperationResult<DataCacheResult>
An OperationResult<DevExpress.Xpo.DB.Helpers.DataCacheResult> object denoting the operation result.
SelectDataCached(DataCacheCookie, SelectStatement[])
Defines a service operation that, when implemented by a class, fetches data from a cached data store using specified query statements and returns the operation result.
OperationResult<DataCacheSelectDataResult> SelectDataCached(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
- OperationResult<DataCacheSelectDataResult>
An OperationResult<DevExpress.Xpo.DB.Helpers.DataCacheSelectDataResult> object denoting the result of the data fetch.
UpdateSchemaCached(DataCacheCookie, DBTable[], bool)
Defines a service operation that, when implemented by a class, updates a cached data store‘s schema according to specified settings.
OperationResult<DataCacheUpdateSchemaResult> UpdateSchemaCached(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 should be saved in a cached data store.
doNotCreateIfFirstTableNotExist
booltrue if the schema should not be created if the table that corresponds to the first item in the tables array doesn’t exist in the cached data store; otherwise, false.
Returns
- OperationResult<DataCacheUpdateSchemaResult>
An OperationResult<DevExpress.Xpo.DB.Helpers.DataCacheUpdateSchemaResult> denoting the result of the update operation.