WebApiDataStoreService.UpdateSchemaWithCookie(Boolean, WebApiDataContainer<DBTable[]>) Method
In This Article
Calls the ICacheToCacheCommunicationCore.UpdateSchema method with error handling.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public OperationResult<DataCacheUpdateSchemaResult> UpdateSchemaWithCookie(
bool doNotCreateIfFirstTableNotExist,
WebApiDataContainer<DBTable[]> data
)
#Parameters
Name | Type | Description |
---|---|---|
do |
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. |
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 |
---|---|
Operation |
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