Skip to main content
.NET 6.0+

ICachedDataStoreServiceAsync.UpdateSchemaCachedAsync(DataCacheCookie, DBTable[], Boolean) Method

Asynchronously updates a cached data store‘s schema according to specified settings.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Xpo.v23.2.dll

NuGet Package: DevExpress.Xpo

Declaration

[OperationContract(Action = "http://tempuri.org/ICachedDataStoreService/UpdateSchemaCached", ReplyAction = "http://tempuri.org/ICachedDataStoreService/UpdateSchemaCachedResponse")]
[XmlSerializerFormat]
Task<OperationResult<DataCacheUpdateSchemaResult>> UpdateSchemaCachedAsync(
    DataCacheCookie cookie,
    DBTable[] tables,
    bool doNotCreateIfFirstTableNotExist
)

Parameters

Name Type Description
cookie DataCacheCookie

A 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 Boolean

Defines 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

Type Description
Task<OperationResult<DataCacheUpdateSchemaResult>>

A Task that returns the operation result.

See Also