Search Results for

    Show / Hide Table of Contents

    Interface IUpdateCommandBuilder<TEntity>

    Represents a command builder to configure the update.

    Inherited Members
    ISpecficVenflowCommandBuilder<IUpdateCommand<TEntity>, IUpdateCommandBuilder<TEntity>>.Build()
    ISpecficVenflowCommandBuilder<IUpdateCommand<TEntity>, IUpdateCommandBuilder<TEntity>>.Log(Boolean)
    ISpecficVenflowCommandBuilder<IUpdateCommand<TEntity>, IUpdateCommandBuilder<TEntity>>.LogTo(LoggerCallback)
    ISpecficVenflowCommandBuilder<IUpdateCommand<TEntity>, IUpdateCommandBuilder<TEntity>>.LogTo(LoggerCallback[])
    Namespace: Venflow.Commands
    Assembly: Venflow.dll
    Syntax
    public interface IUpdateCommandBuilder<TEntity> : ISpecficVenflowCommandBuilder<IUpdateCommand<TEntity>, IUpdateCommandBuilder<TEntity>> where TEntity : class, new()
    Type Parameters
    Name Description
    TEntity

    The type of the entity which will be updated.

    Methods

    | Improve this Doc View Source

    UpdateAsync(TEntity, CancellationToken)

    Asynchronously updates a single entity.

    Declaration
    ValueTask UpdateAsync(TEntity entity, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    TEntity entity

    The change tracked entity instance which should be updated.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask

    A task representing the asynchronous operation.

    | Improve this Doc View Source

    UpdateAsync(TEntity[], CancellationToken)

    Asynchronously updates a set of entities.

    Declaration
    ValueTask UpdateAsync(TEntity[] entities, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    TEntity[] entities

    The change tracked entity instances which should be updated.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask

    A task representing the asynchronous operation.

    | Improve this Doc View Source

    UpdateAsync(IEnumerable<TEntity>, CancellationToken)

    Asynchronously updates a set of entities.

    Declaration
    ValueTask UpdateAsync(IEnumerable<TEntity> entities, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    IEnumerable<TEntity> entities

    The change tracked entity instances which should be updated.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask

    A task representing the asynchronous operation.

    | Improve this Doc View Source

    UpdateAsync(IList<TEntity>, CancellationToken)

    Asynchronously updates a set of entities.

    Declaration
    ValueTask UpdateAsync(IList<TEntity> entities, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    IList<TEntity> entities

    The change tracked entity instances which should be updated.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask

    A task representing the asynchronous operation.

    | Improve this Doc View Source

    UpdateAsync(List<TEntity>, CancellationToken)

    Asynchronously updates a set of entities.

    Declaration
    ValueTask UpdateAsync(List<TEntity> entities, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    List<TEntity> entities

    The change tracked entity instances which should be updated.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask

    A task representing the asynchronous operation.

    Theme

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 Twenty