Search Results for

    Show / Hide Table of Contents

    Class EntitiesReader<T>

    Inheritance
    object
    EntitiesReader<T>
    EntitiesReaderWithPropertyOverride<T>
    Implements
    IDataReader
    IDataRecord
    IDisposable
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Connections.Database.Context
    Assembly: LemonEdge.Database.Connector.dll
    Syntax
    public class EntitiesReader<T> : IDataReader, IDataRecord, IDisposable where T : IBaseEntity
    Type Parameters
    Name Description
    T

    Constructors

    EntitiesReader(IEnumerable<T>)

    Declaration
    protected EntitiesReader(IEnumerable<T> items)
    Parameters
    Type Name Description
    IEnumerable<T> items

    Properties

    Depth

    Declaration
    public int Depth { get; }
    Property Value
    Type Description
    int

    FieldCount

    Declaration
    public int FieldCount { get; }
    Property Value
    Type Description
    int

    GetEnumerator

    Declaration
    public IEnumerator<T> GetEnumerator { get; }
    Property Value
    Type Description
    IEnumerator<T>

    IsClosed

    Declaration
    public bool IsClosed { get; }
    Property Value
    Type Description
    bool

    this[int]

    Declaration
    public object this[int i] { get; }
    Parameters
    Type Name Description
    int i
    Property Value
    Type Description
    object

    this[string]

    Declaration
    public object this[string name] { get; }
    Parameters
    Type Name Description
    string name
    Property Value
    Type Description
    object

    RecordsAffected

    Declaration
    public int RecordsAffected { get; }
    Property Value
    Type Description
    int

    Methods

    Close()

    Declaration
    public void Close()

    Dispose()

    Declaration
    public void Dispose()

    Dispose(bool)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    GetBoolean(int)

    Declaration
    public bool GetBoolean(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    bool

    GetByte(int)

    Declaration
    public byte GetByte(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    byte

    GetBytes(int, long, byte[], int, int)

    Declaration
    public long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length)
    Parameters
    Type Name Description
    int i
    long fieldOffset
    byte[] buffer
    int bufferoffset
    int length
    Returns
    Type Description
    long

    GetChar(int)

    Declaration
    public char GetChar(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    char

    GetChars(int, long, char[], int, int)

    Declaration
    public long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length)
    Parameters
    Type Name Description
    int i
    long fieldoffset
    char[] buffer
    int bufferoffset
    int length
    Returns
    Type Description
    long

    GetData(int)

    Declaration
    public IDataReader GetData(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    IDataReader

    GetDataTypeName(int)

    Declaration
    public string GetDataTypeName(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    string

    GetDateTime(int)

    Declaration
    public DateTime GetDateTime(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    DateTime

    GetDecimal(int)

    Declaration
    public decimal GetDecimal(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    decimal

    GetDouble(int)

    Declaration
    public double GetDouble(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    double

    GetFieldType(int)

    Declaration
    public Type GetFieldType(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    Type

    GetFloat(int)

    Declaration
    public float GetFloat(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    float

    GetGuid(int)

    Declaration
    public Guid GetGuid(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    Guid

    GetInt16(int)

    Declaration
    public short GetInt16(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    short

    GetInt32(int)

    Declaration
    public int GetInt32(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    int

    GetInt64(int)

    Declaration
    public long GetInt64(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    long

    GetName(int)

    Declaration
    public string GetName(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    string

    GetOrdinal(string)

    Declaration
    public int GetOrdinal(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    int

    GetSchemaTable()

    Declaration
    public DataTable GetSchemaTable()
    Returns
    Type Description
    DataTable

    GetString(int)

    Declaration
    public string GetString(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    string

    GetValue(int)

    Declaration
    public object GetValue(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    object

    GetValues(object[])

    Declaration
    public int GetValues(object[] values)
    Parameters
    Type Name Description
    object[] values
    Returns
    Type Description
    int

    IsDBNull(int)

    Declaration
    public bool IsDBNull(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    bool

    NextResult()

    Declaration
    public bool NextResult()
    Returns
    Type Description
    bool

    OverrideAccessor(int, Func<T, object>)

    Declaration
    public void OverrideAccessor(int colIndex, Func<T, object> accessor)
    Parameters
    Type Name Description
    int colIndex
    Func<T, object> accessor

    Read()

    Declaration
    public bool Read()
    Returns
    Type Description
    bool

    SetupReader(EntityDescriptor)

    Declaration
    protected virtual void SetupReader(EntityDescriptor descriptor)
    Parameters
    Type Name Description
    EntityDescriptor descriptor

    SetupReader(Dictionary<string, int>, Func<T, object>[])

    Declaration
    protected void SetupReader(Dictionary<string, int> ordinals, Func<T, object>[] accessors)
    Parameters
    Type Name Description
    Dictionary<string, int> ordinals
    Func<T, object>[] accessors

    Implements

    IDataReader
    IDataRecord
    IDisposable

    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.