Class ApiAdaptor
Handles request and response to and from Web API created for ApiController.
Inherited Members
Namespace: Syncfusion.Blazor.Data
Assembly: Syncfusion.Blazor.dll
Syntax
public class ApiAdaptor : UrlAdaptor
Constructors
ApiAdaptor(DataManager)
Declaration
public ApiAdaptor(DataManager dataManager)
Parameters
| Type | Name | Description |
|---|---|---|
| DataManager | dataManager |
Methods
AddParams(RequestOptions, DataManagerRequest)
Adds additional paramerters from Query instance to server request.
Declaration
public override void AddParams(RequestOptions options, DataManagerRequest queries)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestOptions | options | |
| DataManagerRequest | queries |
Overrides
GetName()
Returns the adaptor name.
Declaration
public override string GetName()
Returns
| Type | Description |
|---|---|
| string | string. |
Overrides
ProcessQuery(DataManagerRequest)
Read query from Query and make it understandable by data source.
Declaration
public override object ProcessQuery(DataManagerRequest queries)
Parameters
| Type | Name | Description |
|---|---|---|
| DataManagerRequest | queries | Specifies the query. |
Returns
| Type | Description |
|---|---|
| object | object. |
Overrides
Remove(DataManager, string, object, string, Query)
Handles the remove operation.
Declaration
public override object Remove(DataManager dataManager, string keyField, object value, string tableName = null, Query query = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DataManager | dataManager | DataManager instance. |
| string | keyField | Specifies the primary key. |
| object | value | Specifies the primary key field value. |
| string | tableName | Table name of the update item. |
| Query | query | Query instance. |
Returns
| Type | Description |
|---|---|
| object | object. |
Overrides
Update(DataManager, string, object, string, Query, object, IDictionary<string, object>)
Handles the item update operation.
Declaration
public override object Update(DataManager dataManager, string keyField, object data, string tableName = null, Query query = null, object original = null, IDictionary<string, object> updateProperties = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DataManager | dataManager | DataManager instance. |
| string | keyField | Specifies the primary key. |
| object | data | Specifies the updated record. |
| string | tableName | Table name of the update item. |
| Query | query | Query instance. |
| object | original | Specifies the original data. Uses this original data for sending change items alone to the server. |
| IDictionary<string, object> | updateProperties | Specifies the field names to be updated. |
Returns
| Type | Description |
|---|---|
| object | object. |