Search Results for

    Show / Hide Table of Contents

    Interface IAsyncDbConnection

    An asynchronous version of IDbConnection

    Inherited Members
    IDbConnection.BeginTransaction()
    IDbConnection.BeginTransaction(IsolationLevel)
    IDbConnection.Close()
    IDbConnection.ChangeDatabase(string)
    IDbConnection.CreateCommand()
    IDbConnection.Open()
    IDbConnection.ConnectionString
    IDbConnection.ConnectionTimeout
    IDbConnection.Database
    IDbConnection.State
    IDisposable.Dispose()
    IAsyncDisposable.DisposeAsync()
    Namespace: LemonEdge.DataAccess.Core.Connections
    Assembly: LemonEdge.DataAccess.Core.dll
    Syntax
    public interface IAsyncDbConnection : IDbConnection, IDisposable, IAsyncDisposable

    Methods

    BeginTransactionAsync(IsolationLevel, CancellationToken)

    An asynchronous version of BeginTransaction(IsolationLevel)

    Declaration
    Task<IDbTransaction> BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken token = default)
    Parameters
    Type Name Description
    IsolationLevel isolationLevel
    CancellationToken token
    Returns
    Type Description
    Task<IDbTransaction>

    BeginTransactionAsync(CancellationToken)

    An asynchronous version of BeginTransaction()

    Declaration
    Task<IDbTransaction> BeginTransactionAsync(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<IDbTransaction>

    ChangeDatabaseAsync(string, CancellationToken)

    An asynchronous version of ChangeDatabase(string)

    Declaration
    Task ChangeDatabaseAsync(string databaseName, CancellationToken token = default)
    Parameters
    Type Name Description
    string databaseName
    CancellationToken token
    Returns
    Type Description
    Task

    CloseAsync()

    An asynchronous version of Close()

    Declaration
    Task CloseAsync()
    Returns
    Type Description
    Task

    GetSchemaAsync(string, string?[], CancellationToken)

    Returns schema information for the data source of this IDbConnection using the specified string for the schema name and restriction values.

    Declaration
    Task<DataTable> GetSchemaAsync(string collectionName, string?[] restrictionValues, CancellationToken token = default)
    Parameters
    Type Name Description
    string collectionName
    string[] restrictionValues
    CancellationToken token
    Returns
    Type Description
    Task<DataTable>

    GetSchemaAsync(string, CancellationToken)

    Returns schema information for the data source of this IDbConnection using the specified string for the schema name.

    Declaration
    Task<DataTable> GetSchemaAsync(string collectionName, CancellationToken token = default)
    Parameters
    Type Name Description
    string collectionName
    CancellationToken token
    Returns
    Type Description
    Task<DataTable>

    GetSchemaAsync(CancellationToken)

    Returns schema information for the data source of this IDbConnection

    Declaration
    Task<DataTable> GetSchemaAsync(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<DataTable>

    OpenAsync(CancellationToken)

    An asynchronous version of Open()

    Declaration
    Task OpenAsync(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task

    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.