WebApiDataStoreService.UpdateSchemaWithCookie(Boolean, WebApiDataContainer<DBTable[]>) Method
Calls the ICacheToCacheCommunicationCore.UpdateSchema method with error handling.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Xpo.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
doNotCreateIfFirstTableNotExist | Boolean | true 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. |
data | DevExpress.Xpo.DB.Helpers.WebApiDataContainer<DBTable[]> | An object that contains an array of DBTable objects that specify tables for which the schema should be created in the data store. |
Returns
Type | Description |
---|---|
OperationResult<DataCacheUpdateSchemaResult> | The result of the update operation. |
Remarks
[HttpPost]
public OperationResult<DataCacheUpdateSchemaResult> UpdateSchemaWithCookie([FromQuery] bool doNotCreateIfFirstTableNotExist, [FromBody] WebApiDataContainer<DBTable[]> data) {
return DataStoreService.UpdateSchemaWithCookie(doNotCreateIfFirstTableNotExist, data);
}
See Also