Search Results for

    Show / Hide Table of Contents

    Interface IAsyncDbCommand

    An asynchronous version of IDbCommand

    Inherited Members
    IDbCommand.Prepare()
    IDbCommand.Cancel()
    IDbCommand.CreateParameter()
    IDbCommand.ExecuteNonQuery()
    IDbCommand.ExecuteReader()
    IDbCommand.ExecuteReader(CommandBehavior)
    IDbCommand.ExecuteScalar()
    IDbCommand.Connection
    IDbCommand.Transaction
    IDbCommand.CommandText
    IDbCommand.CommandTimeout
    IDbCommand.CommandType
    IDbCommand.Parameters
    IDbCommand.UpdatedRowSource
    IDisposable.Dispose()
    IAsyncDisposable.DisposeAsync()
    Namespace: LemonEdge.DataAccess.Core.Commands
    Assembly: LemonEdge.DataAccess.Core.dll
    Syntax
    public interface IAsyncDbCommand : IDbCommand, IDisposable, IAsyncDisposable

    Methods

    CreateParameter(bool)

    Creates a IDbDataParameter

    Declaration
    IDbDataParameter CreateParameter(bool isNullable = false)
    Parameters
    Type Name Description
    bool isNullable
    Returns
    Type Description
    IDbDataParameter

    ExecuteNonQueryAsync(CancellationToken)

    An asynchronous version of ExecuteNonQuery()

    Declaration
    Task<int> ExecuteNonQueryAsync(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<int>

    ExecuteReaderAsync(CommandBehavior, CancellationToken)

    An asynchronous version of ExecuteReader(CommandBehavior), which sends the CommandText to the Connection, and builds a IAsyncDataReader

    Declaration
    Task<IAsyncDataReader> ExecuteReaderAsync(CommandBehavior commandBehavior, CancellationToken token = default)
    Parameters
    Type Name Description
    CommandBehavior commandBehavior
    CancellationToken token
    Returns
    Type Description
    Task<IAsyncDataReader>

    ExecuteReaderAsync(CancellationToken)

    An asynchronous version of ExecuteReader(), which sends the CommandText to the Connection and builds a IAsyncDataReader

    Declaration
    Task<IAsyncDataReader> ExecuteReaderAsync(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<IAsyncDataReader>

    ExecuteScalarAsync(CancellationToken)

    An asynchronous version of ExecuteScalar()

    Declaration
    Task<object> ExecuteScalarAsync(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<object>

    ExecuteScalarAsync<T>(CancellationToken)

    An asynchronous generic version of ExecuteScalar()

    Declaration
    Task<T> ExecuteScalarAsync<T>(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.