Search Results for

    Show / Hide Table of Contents

    Interface ISimpleReader

    Reads data for a given data source

    Inherited Members
    IDisposable.Dispose()
    Namespace: LemonEdge.Utils.Database
    Assembly: LemonEdge.Utils.dll
    Syntax
    public interface ISimpleReader : IDisposable

    Properties

    Columns

    The column list.

    Declaration
    string[] Columns { get; }
    Property Value
    Type Description
    string[]

    Methods

    ExecuteQuery()

    Executes a query.

    Declaration
    Task ExecuteQuery()
    Returns
    Type Description
    Task

    GetColumnType(string)

    Gets the type of a column, by name.

    Declaration
    Type GetColumnType(string colName)
    Parameters
    Type Name Description
    string colName

    The name of the column.

    Returns
    Type Description
    Type

    GetResultValue(string)

    Gets the value for a column.

    Declaration
    (object Result, bool IsNull) GetResultValue(string column)
    Parameters
    Type Name Description
    string column

    The column.

    Returns
    Type Description
    (object Result, bool IsNull)

    GetTotalCount()

    Gets the total count of rows.

    Declaration
    Task<int> GetTotalCount()
    Returns
    Type Description
    Task<int>

    ReadNextResult()

    Reads the next result.

    Declaration
    Task<bool> ReadNextResult()
    Returns
    Type Description
    Task<bool>

    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.