Class WebApiAdaptor
Handles request and response to and from Web API controller.
Inheritance
System.Object
WebApiAdaptor
Assembly: Syncfusion.Blazor.dll
Syntax
public class WebApiAdaptor : ODataAdaptor, IAdaptor
Constructors
WebApiAdaptor(DataManager)
Declaration
public WebApiAdaptor(DataManager dataManager)
Parameters
Methods
BeforeSend(HttpRequestMessage)
Declaration
public override void BeforeSend(HttpRequestMessage request)
Parameters
Type |
Name |
Description |
System.Net.Http.HttpRequestMessage |
request |
|
Overrides
GetName()
Declaration
public override string GetName()
Returns
Overrides
Insert(DataManager, Object, String, Query, Int32)
Declaration
public override object Insert(DataManager dataManager, object data, string tableName = null, Query query = null, int position = 0)
Parameters
Type |
Name |
Description |
DataManager |
dataManager |
|
System.Object |
data |
|
System.String |
tableName |
|
Query |
query |
|
System.Int32 |
position |
|
Returns
Overrides
IsRemote()
Declaration
public override bool IsRemote()
Returns
Overrides
ProcessCrudResponse<T>(Object, DataManagerRequest)
Declaration
public override Task<object> ProcessCrudResponse<T>(object data, DataManagerRequest queries)
Parameters
Returns
Type |
System.Threading.Tasks.Task<System.Object> |
Type Parameters
Overrides
ProcessQuery(DataManagerRequest)
Declaration
public override object ProcessQuery(DataManagerRequest queries)
Parameters
Returns
Overrides
ProcessResponse<T>(Object, DataManagerRequest)
Declaration
public override Task<object> ProcessResponse<T>(object data, DataManagerRequest queries)
Parameters
Returns
Type |
System.Threading.Tasks.Task<System.Object> |
Type Parameters
Overrides
Remove(DataManager, String, Object, String, Query)
Declaration
public override object Remove(DataManager dataManager, string keyField, object value, string tableName = null, Query query = null)
Parameters
Type |
Name |
Description |
DataManager |
dataManager |
|
System.String |
keyField |
|
System.Object |
value |
|
System.String |
tableName |
|
Query |
query |
|
Returns
Overrides
Update(DataManager, String, Object, String, Query, Object, IDictionary<String, Object>)
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 |
|
System.String |
keyField |
|
System.Object |
data |
|
System.String |
tableName |
|
Query |
query |
|
System.Object |
original |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
updateProperties |
|
Returns
Overrides