menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IDataAdaptor - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IDataAdaptor

    Interface for Data adaptors.

    Namespace: Syncfusion.Blazor.Data
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public interface IDataAdaptor

    Methods

    BatchUpdate(DataManager, Object, Object, Object, String, String, Nullable<Int32>)

    Performs Batch CRUD operations synchronously.

    Declaration
    object BatchUpdate(DataManager dataManager, object changedRecords, object addedRecords, object deletedRecords, string primaryColumnName, string key, Nullable<int> dropIndex)
    Parameters
    Type Name Description
    DataManager dataManager
    System.Object changedRecords
    System.Object addedRecords
    System.Object deletedRecords
    System.String primaryColumnName
    System.String key
    System.Nullable<System.Int32> dropIndex
    Returns
    Type
    System.Object

    BatchUpdateAsync(DataManager, Object, Object, Object, String, String, Nullable<Int32>)

    Performs Batch CRUD operations asynchronously.

    Declaration
    Task<object> BatchUpdateAsync(DataManager dataManager, object changedRecords, object addedRecords, object deletedRecords, string primaryColumnName, string key, Nullable<int> dropIndex)
    Parameters
    Type Name Description
    DataManager dataManager
    System.Object changedRecords
    System.Object addedRecords
    System.Object deletedRecords
    System.String primaryColumnName
    System.String key
    System.Nullable<System.Int32> dropIndex
    Returns
    Type
    System.Threading.Tasks.Task<System.Object>

    Insert(DataManager, Object, String)

    Inserts a new data item into the data collection.

    Declaration
    object Insert(DataManager dataManager, object record, string additionalParam)
    Parameters
    Type Name Description
    DataManager dataManager

    The DataManager is a data management component used for performing data operations in applications.

    System.Object record

    The new record which is need to be inserted.

    System.String additionalParam

    An optional parameter that can be used to perform additional data operations.

    Returns
    Type Description
    System.Object

    Returns the newly inserted record details.

    InsertAsync(DataManager, Object, String)

    Inserts a new data item into the data collection.

    Declaration
    Task<object> InsertAsync(DataManager dataManager, object record, string additionalParam)
    Parameters
    Type Name Description
    DataManager dataManager

    The DataManager is a data management component used for performing data operations in applications.

    System.Object record

    The new record which is need to be inserted.

    System.String additionalParam

    An optional parameter that can be used to perform additional data operations.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Object>

    Returns the newly inserted record details.

    Read(DataManagerRequest, String)

    Returns the data collection after performing data operations based on request from DataManagerRequest

    Declaration
    object Read(DataManagerRequest dataManagerRequest, string additionalParam = null)
    Parameters
    Type Name Description
    DataManagerRequest dataManagerRequest

    DataManagerRequest containes the information regarding paging, grouping, filtering, searching which is handled on the DataGrid component side

    System.String additionalParam

    An optional parameter that can be used to perform additional data operations.

    Returns
    Type Description
    System.Object

    The data collection's type is determined by how this method has been implemented.

    ReadAsync(DataManagerRequest, String)

    Returns the data collection after performing data operations based on request from DataManagerRequest

    Declaration
    Task<object> ReadAsync(DataManagerRequest dataManagerRequest, string additionalParam = null)
    Parameters
    Type Name Description
    DataManagerRequest dataManagerRequest

    DataManagerRequest containes the information regarding paging, grouping, filtering, searching which is handled on the DataGrid component side

    System.String additionalParam

    An optional parameter that can be used to perform additional data operations.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Object>

    The data collection's type is determined by how this method has been implemented.

    Remove(DataManager, Object, String, String)

    Removes a data item from the data collection.

    Declaration
    object Remove(DataManager dataManager, object primaryColumnValue, string primaryColumnName, string additionalParam)
    Parameters
    Type Name Description
    DataManager dataManager

    The DataManager is a data management component used for performing data operations in applications.

    System.Object primaryColumnValue

    The primaryColumnValue specifies the primary column value which is needs to be removed from the grid record.

    System.String primaryColumnName

    The primaryColumnName specifies the field name of the primary column.

    System.String additionalParam

    An optional parameter that can be used to perform additional data operations.

    Returns
    Type Description
    System.Object

    Returns the removed data item.

    RemoveAsync(DataManager, Object, String, String)

    Removes a data item from the data collection.

    Declaration
    Task<object> RemoveAsync(DataManager dataManager, object primaryColumnValue, string primaryColumnName, string additionalParam)
    Parameters
    Type Name Description
    DataManager dataManager

    The DataManager is a data management component used for performing data operations in applications.

    System.Object primaryColumnValue

    The primaryColumnValue specifies the primary column value which is needs to be removed from the grid record.

    System.String primaryColumnName

    The primaryColumnName specifies the field name of the primary column.

    System.String additionalParam

    An optional parameter that can be used to perform additional data operations.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Object>

    Returns the removed data item.

    SetParent(BaseComponent)

    Declaration
    void SetParent(BaseComponent parent)
    Parameters
    Type Name Description
    BaseComponent parent

    Update(DataManager, Object, String, String)

    Updates an existing data item in the data collection.

    Declaration
    object Update(DataManager dataManager, object record, string primaryColumnName, string additionalParam)
    Parameters
    Type Name Description
    DataManager dataManager

    The DataManager is a data management component used for performing data operations in applications.

    System.Object record

    The modified record which is need to be updated.

    System.String primaryColumnName

    The primaryColumnName specifies the field name of the primary column.

    System.String additionalParam

    An optional parameter that can be used to perform additional data operations.

    Returns
    Type Description
    System.Object

    Returns the updated data item.

    UpdateAsync(DataManager, Object, String, String)

    Updates an existing data item in the data collection.

    Declaration
    Task<object> UpdateAsync(DataManager dataManager, object record, string primaryColumnName, string additionalParam)
    Parameters
    Type Name Description
    DataManager dataManager

    The DataManager is a data management component used for performing data operations in applications.

    System.Object record

    The modified record which is need to be updated.

    System.String primaryColumnName

    The primaryColumnName specifies the field name of the primary column.

    System.String additionalParam

    An optional parameter that can be used to perform additional data operations.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Object>

    Returns the updated data item.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved