Search Results for

    Show / Hide Table of Contents

    Interface IDataAccessor

    The entry point of the data access layer

    Namespace: LemonEdge.DataAccess.Core.Abstractions.Accessors
    Assembly: LemonEdge.DataAccess.Core.Abstractions.dll
    Syntax
    public interface IDataAccessor

    Properties

    DatabaseInfo

    The IDatabaseInfo that represents the underlying data source for the IDataAccessor

    Declaration
    IDatabaseInfo DatabaseInfo { get; }
    Property Value
    Type Description
    IDatabaseInfo

    DbTools

    A set of database IDbTools

    Declaration
    IDbTools DbTools { get; }
    Property Value
    Type Description
    IDbTools

    Methods

    CreateCommand(IQueryInfo)

    Creates an IAsyncDbCommand from a IQueryInfo

    Declaration
    IAsyncDbCommand CreateCommand(IQueryInfo queryInfo)
    Parameters
    Type Name Description
    IQueryInfo queryInfo
    Returns
    Type Description
    IAsyncDbCommand

    CreateConnectionAsync(CancellationToken)

    Creates and opens an IAsyncDbConnection

    Declaration
    Task<IAsyncDbConnection> CreateConnectionAsync(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<IAsyncDbConnection>

    CreateNew()

    Creates a new instance of the IDataAccessor

    Declaration
    IDataAccessor CreateNew()
    Returns
    Type Description
    IDataAccessor

    CreateParameter(string, object, bool, ParameterDirection)

    Creates a IDbDataParameter

    Declaration
    IDbDataParameter CreateParameter(string name, object value, bool isNullable = false, ParameterDirection direction = ParameterDirection.Input)
    Parameters
    Type Name Description
    string name
    object value
    bool isNullable
    ParameterDirection direction
    Returns
    Type Description
    IDbDataParameter

    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.