Skip to main content
All docs
V23.2
.NET 6.0+

WebApiDataStoreService.UpdateSchemaAsync(Boolean, DBTable[], CancellationToken) Method

Calls the UpdateSchemaAsync method of the underlying IDataStore with error handling.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Xpo.v23.2.dll

NuGet Package: DevExpress.Xpo

Declaration

public Task<OperationResult<UpdateSchemaResult>> UpdateSchemaAsync(
    bool doNotCreateIfFirstTableNotExist,
    DBTable[] tables,
    CancellationToken cancellationToken = default(CancellationToken)
)

Parameters

Name Type Description
doNotCreateIfFirstTableNotExist Boolean

true, if the schema should not be created when the table that corresponds to the first item in the types array does not exist in the storage.

tables DBTable[]

An array of DBTable objects that specify tables for which the schema should be created in the data store.

Optional Parameters

Name Type Default Description
cancellationToken CancellationToken null

A CancellationToken object that delivers a cancellation notice to the current operation.

Returns

Type Description
Task<OperationResult<UpdateSchemaResult>>

A task that returns an UpdateSchemaResult value that specifies the result of the update operation.

See Also