.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.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.v20.1.dll

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
)
<OperationContract(Action:="http://tempuri.org/ICachedDataStoreService/UpdateSchemaCached", ReplyAction:="http://tempuri.org/ICachedDataStoreService/UpdateSchemaCachedResponse")>
<XmlSerializerFormat>
Function UpdateSchemaCachedAsync(
    cookie As DataCacheCookie,
    tables As DBTable(),
    doNotCreateIfFirstTableNotExist As Boolean
) As Task(Of OperationResult(Of DataCacheUpdateSchemaResult))

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