Back to Devexpress

WebApiDataStoreService Class

xpo-devexpress-dot-xpo-dot-db-d73c2fc7.md

latest2.0 KB
Original Source

WebApiDataStoreService Class

A generic IDataStore wrapper. Encapsulates the boilerplate code required to implement a Web API service controller for WebApiDataStoreClient.

Namespace : DevExpress.Xpo.DB

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public class WebApiDataStoreService :
    ServiceBase
vb
Public Class WebApiDataStoreService
    Inherits ServiceBase

Remarks

WebApiDataStoreService calls IDataStore and IDataStoreAsync methods with error handling. If an underlying connection provider throws an exception, WebApiDataStoreService includes error details in the response. WebApiDataStoreClient uses this information to raise XPO-specific exceptions, such as SchemaCorrectionNeededException and LockingException.

For more information, see the following topic: Transfer Data via ASP.NET Core Web API / REST API.

Inheritance

Object ServiceBase WebApiDataStoreService

See Also

WebApiDataStoreService Members

Transfer Data via ASP.NET Core Web API / REST API

DevExpress.Xpo.DB Namespace