alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ApiAdaptor

    Handles request and response to and from Web API created for ApiController.

    Inheritance
    object
    AdaptorBase
    UrlAdaptor
    ApiAdaptor
    Inherited Members
    AdaptorBase.BatchUpdate(DataManager, List<IDynamicMetaObjectProvider>, List<IDynamicMetaObjectProvider>, List<IDynamicMetaObjectProvider>, Utils, string, int?, Query, object)
    AdaptorBase.BeforeSend(HttpRequestMessage)
    AdaptorBase.DataManager
    AdaptorBase.GetModelType()
    AdaptorBase.Insert(DataManager, IDynamicMetaObjectProvider, string, Query, int)
    AdaptorBase.ProcessBatchResponse<T>(object, DataManagerRequest)
    AdaptorBase.RunSyncOnce
    AdaptorBase.SetModelType(Type)
    AdaptorBase.SetRunSyncOnce(bool)
    AdaptorBase.Update(DataManager, string, IDynamicMetaObjectProvider, string, Query, object)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    UrlAdaptor.BatchUpdate(DataManager, object, object, object, Utils, string, int?, Query, object)
    UrlAdaptor.Insert(DataManager, object, string, Query, int)
    UrlAdaptor.IsRemote()
    UrlAdaptor.PerformDataOperation<T>(object)
    UrlAdaptor.ProcessCrudResponse<T>(object, DataManagerRequest)
    UrlAdaptor.ProcessResponse<T>(object, DataManagerRequest)
    Namespace: Syncfusion.Blazor.Data
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ApiAdaptor : UrlAdaptor

    Constructors

    ApiAdaptor(DataManager)

    Initializes a new instance of the ApiAdaptor class with the specified DataManager.

    Declaration
    public ApiAdaptor(DataManager dataManager)
    Parameters
    Type Name Description
    DataManager dataManager

    Methods

    AddParams(RequestOptions, DataManagerRequest)

    Adds query parameters from the DataManagerRequest to the specified RequestOptions.

    Declaration
    public override void AddParams(RequestOptions options, DataManagerRequest queries)
    Parameters
    Type Name Description
    RequestOptions options

    RequestOptions object to update.

    DataManagerRequest queries

    DataManagerRequest containing query parameters.

    Overrides
    AdaptorBase.AddParams(RequestOptions, DataManagerRequest)
    Remarks

    Appends query parameters to the request URL and validates that RequestOptions is not null.

    GetName()

    Gets the adaptor name.

    Declaration
    public override string GetName()
    Returns
    Type Description
    string

    The adaptor name.

    Overrides
    UrlAdaptor.GetName()

    ProcessQuery(DataManagerRequest)

    Processes the data request and returns API options.

    Declaration
    public override object ProcessQuery(DataManagerRequest queries)
    Parameters
    Type Name Description
    DataManagerRequest queries

    The data manager request.

    Returns
    Type Description
    object

    The API request options.

    Overrides
    UrlAdaptor.ProcessQuery(DataManagerRequest)

    Remove(DataManager, string, object, string, Query)

    Removes a record from the data source using the specified key field and value.

    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 used for configuration.

    string keyField

    Key field name identifying the entity.

    object value

    Key value of the entity to remove.

    string tableName

    Target table name.This parameter is optional.

    Query query

    Query context and parameters.This parameter is optional.

    Returns
    Type Description
    object

    Returns the configured request options for the remove operation.

    Overrides
    UrlAdaptor.Remove(DataManager, string, object, string, Query)

    Update(DataManager, string, object, string, Query, object, IDictionary<string, object>)

    Updates a record in the data source using the specified key and data.

    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 used for configuration.

    string keyField

    Key field name identifying the entity.

    object data

    Data entity with updated values.

    string tableName

    Target table name.This parameter is optional.

    Query query

    Query context and parameters.This parameter is optional.

    object original

    Original entity before updates.This parameter is optional.

    IDictionary<string, object> updateProperties

    Properties and values to update.This parameter is optional.

    Returns
    Type Description
    object

    Returns the configured request options for the update operation.

    Overrides
    UrlAdaptor.Update(DataManager, string, object, string, Query, object, IDictionary<string, object>)
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved