Search Results for

    Show / Hide Table of Contents

    Interface IDeleteCommandBuilder<TEntity>

    Represents a command builder to configure the deletion.

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

    The type of the entity which will be deleted.

    Methods

    | Improve this Doc View Source

    DeleteAsync(TEntity, CancellationToken)

    Asynchronously deletes a single entity.

    Declaration
    ValueTask<int> DeleteAsync(TEntity entity, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    TEntity entity

    The entity instance which should be deleted.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask<Int32>

    A task representing the asynchronous operation, with the number of rows affected if known; -1 otherwise.

    | Improve this Doc View Source

    DeleteAsync(TEntity[], CancellationToken)

    Asynchronously deletes a set of entity.

    Declaration
    ValueTask<int> DeleteAsync(TEntity[] entities, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    TEntity[] entities

    The entity instances which should be deleted.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask<Int32>

    A task representing the asynchronous operation, with the number of rows affected if known; -1 otherwise.

    | Improve this Doc View Source

    DeleteAsync(IEnumerable<TEntity>, CancellationToken)

    Asynchronously deletes a set of entity.

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

    The entity instances which should be deleted.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask<Int32>

    A task representing the asynchronous operation, with the number of rows affected if known; -1 otherwise.

    | Improve this Doc View Source

    DeleteAsync(IList<TEntity>, CancellationToken)

    Asynchronously deletes a set of entity.

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

    The entity instances which should be deleted.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask<Int32>

    A task representing the asynchronous operation, with the number of rows affected if known; -1 otherwise.

    | Improve this Doc View Source

    DeleteAsync(List<TEntity>, CancellationToken)

    Asynchronously deletes a set of entity.

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

    The entity instances which should be deleted.

    CancellationToken cancellationToken

    The cancellation token, which is used to cancel the operation

    Returns
    Type Description
    ValueTask<Int32>

    A task representing the asynchronous operation, with the number of rows affected if known; -1 otherwise.

    Theme

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