alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class DataAdaptor

    Abstract class for Data adaptors.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    DataAdaptor
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    IDataAdaptor
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public abstract class DataAdaptor : OwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IDataAdaptor
    Remarks

    Extend DataAdaptor component while creating custom adaptor component. DataAdaptor component is extended from OwningComponentBase so that services can be accessed from ScopedServices property.

    Constructors

    DataAdaptor()

    Declaration
    protected DataAdaptor()

    Methods

    BatchUpdate(DataManager, object, object, object, string, string, int?)

    Performs Batch CRUD operations synchronously.

    Declaration
    public virtual object BatchUpdate(DataManager dataManager, object changedRecords, object addedRecords, object deletedRecords, string primaryColumnName, string key, int? dropIndex)
    Parameters
    Type Name Description
    DataManager dataManager
    object changedRecords
    object addedRecords
    object deletedRecords
    string primaryColumnName
    string key
    int? dropIndex
    Returns
    Type
    object

    BatchUpdateAsync(DataManager, object, object, object, string, string, int?)

    Performs Batch CRUD operations asynchronously.

    Declaration
    public virtual Task<object> BatchUpdateAsync(DataManager dataManager, object changedRecords, object addedRecords, object deletedRecords, string primaryColumnName, string key, int? dropIndex)
    Parameters
    Type Name Description
    DataManager dataManager
    object changedRecords
    object addedRecords
    object deletedRecords
    string primaryColumnName
    string key
    int? dropIndex
    Returns
    Type
    Task<object>

    Insert(DataManager, object, string)

    Inserts a new data item into the data collection.

    Declaration
    public virtual 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.

    object record

    The new record which is need to be inserted.

    string additionalParam

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

    Returns
    Type Description
    object

    Returns the newly inserted record details.

    InsertAsync(DataManager, object, string)

    Inserts a new data item into the data collection.

    Declaration
    public virtual 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.

    object record

    The new record which is need to be inserted.

    string additionalParam

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

    Returns
    Type Description
    Task<object>

    Returns the newly inserted record details.

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    Task
    Overrides
    ComponentBase.OnInitializedAsync()

    Read(DataManagerRequest, string)

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

    Declaration
    public virtual 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

    string additionalParam

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

    Returns
    Type Description
    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
    public virtual 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

    string additionalParam

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

    Returns
    Type Description
    Task<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
    public virtual 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.

    object primaryColumnValue

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

    string primaryColumnName

    The primaryColumnName specifies the field name of the primary column.

    string additionalParam

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

    Returns
    Type Description
    object

    Returns the removed data item.

    RemoveAsync(DataManager, object, string, string)

    Removes a data item from the data collection.

    Declaration
    public virtual 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.

    object primaryColumnValue

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

    string primaryColumnName

    The primaryColumnName specifies the field name of the primary column.

    string additionalParam

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

    Returns
    Type Description
    Task<object>

    Returns the removed data item.

    SetParent(BaseComponent)

    Declaration
    public 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
    public virtual 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.

    object record

    The modified record which is need to be updated.

    string primaryColumnName

    The primaryColumnName specifies the field name of the primary column.

    string additionalParam

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

    Returns
    Type Description
    object

    Returns the updated data item.

    UpdateAsync(DataManager, object, string, string)

    Updates an existing data item in the data collection.

    Declaration
    public virtual 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.

    object record

    The modified record which is need to be updated.

    string primaryColumnName

    The primaryColumnName specifies the field name of the primary column.

    string additionalParam

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

    Returns
    Type Description
    Task<object>

    Returns the updated data item.

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    IDataAdaptor
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved