WebApiDataStoreService.UpdateSchemaAsync(Boolean, DBTable[], CancellationToken) Method
In This Article
Calls the UpdateSchemaAsync method of the underlying IDataStore with error handling.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public Task<OperationResult<UpdateSchemaResult>> UpdateSchemaAsync(
bool doNotCreateIfFirstTableNotExist,
DBTable[] tables,
CancellationToken cancellationToken = default(CancellationToken)
)
#Parameters
Name | Type | Description |
---|---|---|
do |
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 |
---|---|---|---|
cancellation |
Cancellation |
null | A Cancellation |
#Returns
Type | Description |
---|---|
Task<Operation |
A task that returns an Update |
See Also