FakeDbDataReader FakeDbDataReader Class

Syntax

Declaration

public class FakeDbDataReader : DbDataReader, IDataReader, IDisposable, IDataRecord, IEnumerablePublic Class FakeDbDataReader
    Inherits DbDataReader
    Implements IDataReader, IDisposable, IDataRecord, IEnumerable

Inheritance Hierarchy

  • System.Object
    System.Object
  • System.MarshalByRefObject
    System.MarshalByRefObject
  • System.Data.Common.DbDataReader
    System.Data.Common.DbDataReader
  • FakeDbDataReader
    FakeDbDataReader

Inherited Members

Dispose(),
Dispose(),
GetData(Int32),
GetData(Int32),
IDataRecord.GetData(Int32),
System.Data.IDataRecord.GetData(Int32),
GetDbDataReader(Int32),
GetDbDataReader(Int32),
GetProviderSpecificFieldType(Int32),
GetProviderSpecificFieldType(Int32),
GetProviderSpecificValue(Int32),
GetProviderSpecificValue(Int32),
GetProviderSpecificValues(Object[]),
GetProviderSpecificValues(Object()),
GetStream(Int32),
GetStream(Int32),
GetTextReader(Int32),
GetTextReader(Int32),
GetFieldValue<T>(Int32),
GetFieldValue(Of T)(Int32),
GetFieldValueAsync<T>(Int32),
GetFieldValueAsync(Of T)(Int32),
GetFieldValueAsync<T>(Int32, CancellationToken),
GetFieldValueAsync(Of T)(Int32, CancellationToken),
IsDBNullAsync(Int32),
IsDBNullAsync(Int32),
IsDBNullAsync(Int32, CancellationToken),
IsDBNullAsync(Int32, CancellationToken),
ReadAsync(),
ReadAsync(),
NextResultAsync(),
NextResultAsync(),
NextResultAsync(CancellationToken),
NextResultAsync(CancellationToken),
VisibleFieldCount,
VisibleFieldCount,
MemberwiseClone(Boolean),
MemberwiseClone(Boolean),
GetLifetimeService(),
GetLifetimeService(),
InitializeLifetimeService(),
InitializeLifetimeService(),
CreateObjRef(Type),
CreateObjRef(Type),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Properties summary

Methods summary

Constructors

  • FakeDbDataReader(String[], IList<Object[]>)
    FakeDbDataReader(String(), IList(Of Object()))
    public FakeDbDataReader(string[] columnNames = null, IList<object[]> results = null)Public Sub New(columnNames As String() = Nothing, results As IList(Of Object()) = Nothing)

    Parameters

    • columnNames
      System.String[]
      System.String()
    • results
      System.Collections.Generic.IList<T><System.Object[]>
      System.Collections.Generic.IList<T>(Of System.Object())

Properties

  • CloseCount
    CloseCount
    public int CloseCount { get; }Public ReadOnly Property CloseCount As Integer

    Property Value

    • System.Int32
      System.Int32
  • Depth
    Depth
    public override int Depth { get; }Public Overrides ReadOnly Property Depth As Integer

    Property Value

    • System.Int32
      System.Int32
  • DisposeCount
    DisposeCount
    public int DisposeCount { get; }Public ReadOnly Property DisposeCount As Integer

    Property Value

    • System.Int32
      System.Int32
  • FieldCount
    FieldCount
    public override int FieldCount { get; }Public Overrides ReadOnly Property FieldCount As Integer

    Property Value

    • System.Int32
      System.Int32
  • GetInt32Count
    GetInt32Count
    public int GetInt32Count { get; }Public ReadOnly Property GetInt32Count As Integer

    Property Value

    • System.Int32
      System.Int32
  • HasRows
    HasRows
    public override bool HasRows { get; }Public Overrides ReadOnly Property HasRows As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • IsClosed
    IsClosed
    public override bool IsClosed { get; }Public Overrides ReadOnly Property IsClosed As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • Item[Int32]
    Item(Int32)
    public override object this[int ordinal] { get; }Public Overrides ReadOnly Property Item(ordinal As Integer) As Object

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Property Value

    • System.Object
      System.Object
  • Item[String]
    Item(String)
    public override object this[string name] { get; }Public Overrides ReadOnly Property Item(name As String) As Object

    Parameters

    • name
      System.String
      System.String

    Property Value

    • System.Object
      System.Object
  • ReadAsyncCount
    ReadAsyncCount
    public int ReadAsyncCount { get; }Public ReadOnly Property ReadAsyncCount As Integer

    Property Value

    • System.Int32
      System.Int32
  • RecordsAffected
    RecordsAffected
    public override int RecordsAffected { get; }Public Overrides ReadOnly Property RecordsAffected As Integer

    Property Value

    • System.Int32
      System.Int32

Methods

  • Close()
    Close()
    public override void Close()Public Overrides Sub Close
  • Dispose(Boolean)
    Dispose(Boolean)
    protected override void Dispose(bool disposing)Protected Overrides Sub Dispose(disposing As Boolean)

    Parameters

    • disposing
      System.Boolean
      System.Boolean
  • GetBoolean(Int32)
    GetBoolean(Int32)
    public override bool GetBoolean(int ordinal)Public Overrides Function GetBoolean(ordinal As Integer) As Boolean

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Boolean
      System.Boolean
  • GetByte(Int32)
    GetByte(Int32)
    public override byte GetByte(int ordinal)Public Overrides Function GetByte(ordinal As Integer) As Byte

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Byte
      System.Byte
  • GetBytes(Int32, Int64, Byte[], Int32, Int32)
    GetBytes(Int32, Int64, Byte(), Int32, Int32)
    public override long GetBytes(int ordinal, long dataOffset, byte[] buffer, int bufferOffset, int length)Public Overrides Function GetBytes(ordinal As Integer, dataOffset As Long, buffer As Byte(), bufferOffset As Integer, length As Integer) As Long

    Parameters

    • ordinal
      System.Int32
      System.Int32
    • dataOffset
      System.Int64
      System.Int64
    • buffer
      System.Byte[]
      System.Byte()
    • bufferOffset
      System.Int32
      System.Int32
    • length
      System.Int32
      System.Int32

    Returns

    • System.Int64
      System.Int64
  • GetChar(Int32)
    GetChar(Int32)
    public override char GetChar(int ordinal)Public Overrides Function GetChar(ordinal As Integer) As Char

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Char
      System.Char
  • GetChars(Int32, Int64, Char[], Int32, Int32)
    GetChars(Int32, Int64, Char(), Int32, Int32)
    public override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length)Public Overrides Function GetChars(ordinal As Integer, dataOffset As Long, buffer As Char(), bufferOffset As Integer, length As Integer) As Long

    Parameters

    • ordinal
      System.Int32
      System.Int32
    • dataOffset
      System.Int64
      System.Int64
    • buffer
      System.Char[]
      System.Char()
    • bufferOffset
      System.Int32
      System.Int32
    • length
      System.Int32
      System.Int32

    Returns

    • System.Int64
      System.Int64
  • GetDataTypeName(Int32)
    GetDataTypeName(Int32)
    public override string GetDataTypeName(int ordinal)Public Overrides Function GetDataTypeName(ordinal As Integer) As String

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.String
      System.String
  • GetDateTime(Int32)
    GetDateTime(Int32)
    public override DateTime GetDateTime(int ordinal)Public Overrides Function GetDateTime(ordinal As Integer) As Date

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.DateTime
      System.DateTime
  • GetDecimal(Int32)
    GetDecimal(Int32)
    public override decimal GetDecimal(int ordinal)Public Overrides Function GetDecimal(ordinal As Integer) As Decimal

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Decimal
      System.Decimal
  • GetDouble(Int32)
    GetDouble(Int32)
    public override double GetDouble(int ordinal)Public Overrides Function GetDouble(ordinal As Integer) As Double

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Double
      System.Double
  • GetEnumerator()
    GetEnumerator()
    public override IEnumerator GetEnumerator()Public Overrides Function GetEnumerator As IEnumerator

    Returns

    • System.Collections.IEnumerator
      System.Collections.IEnumerator
  • GetFieldType(Int32)
    GetFieldType(Int32)
    public override Type GetFieldType(int ordinal)Public Overrides Function GetFieldType(ordinal As Integer) As Type

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Type
      System.Type
  • GetFloat(Int32)
    GetFloat(Int32)
    public override float GetFloat(int ordinal)Public Overrides Function GetFloat(ordinal As Integer) As Single

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Single
      System.Single
  • GetGuid(Int32)
    GetGuid(Int32)
    public override Guid GetGuid(int ordinal)Public Overrides Function GetGuid(ordinal As Integer) As Guid

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Guid
      System.Guid
  • GetInt16(Int32)
    GetInt16(Int32)
    public override short GetInt16(int ordinal)Public Overrides Function GetInt16(ordinal As Integer) As Short

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Int16
      System.Int16
  • GetInt32(Int32)
    GetInt32(Int32)
    public override int GetInt32(int ordinal)Public Overrides Function GetInt32(ordinal As Integer) As Integer

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Int32
      System.Int32
  • GetInt64(Int32)
    GetInt64(Int32)
    public override long GetInt64(int ordinal)Public Overrides Function GetInt64(ordinal As Integer) As Long

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Int64
      System.Int64
  • GetName(Int32)
    GetName(Int32)
    public override string GetName(int ordinal)Public Overrides Function GetName(ordinal As Integer) As String

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.String
      System.String
  • GetOrdinal(String)
    GetOrdinal(String)
    public override int GetOrdinal(string name)Public Overrides Function GetOrdinal(name As String) As Integer

    Parameters

    • name
      System.String
      System.String

    Returns

    • System.Int32
      System.Int32
  • GetSchemaTable()
    GetSchemaTable()
    public override DataTable GetSchemaTable()Public Overrides Function GetSchemaTable As DataTable

    Returns

    • System.Data.DataTable
      System.Data.DataTable
  • GetString(Int32)
    GetString(Int32)
    public override string GetString(int ordinal)Public Overrides Function GetString(ordinal As Integer) As String

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.String
      System.String
  • GetValue(Int32)
    GetValue(Int32)
    public override object GetValue(int ordinal)Public Overrides Function GetValue(ordinal As Integer) As Object

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Object
      System.Object
  • GetValues(Object[])
    GetValues(Object())
    public override int GetValues(object[] values)Public Overrides Function GetValues(values As Object()) As Integer

    Parameters

    • values
      System.Object[]
      System.Object()

    Returns

    • System.Int32
      System.Int32
  • IsDBNull(Int32)
    IsDBNull(Int32)
    public override bool IsDBNull(int ordinal)Public Overrides Function IsDBNull(ordinal As Integer) As Boolean

    Parameters

    • ordinal
      System.Int32
      System.Int32

    Returns

    • System.Boolean
      System.Boolean
  • NextResult()
    NextResult()
    public override bool NextResult()Public Overrides Function NextResult As Boolean

    Returns

    • System.Boolean
      System.Boolean
  • Read()
    Read()
    public override bool Read()Public Overrides Function Read As Boolean

    Returns

    • System.Boolean
      System.Boolean
  • ReadAsync(CancellationToken)
    ReadAsync(CancellationToken)
    public override Task<bool> ReadAsync(CancellationToken cancellationToken)Public Overrides Function ReadAsync(cancellationToken As CancellationToken) As Task(Of Boolean)

    Parameters

    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Boolean>
      System.Threading.Tasks.Task<TResult>(Of System.Boolean)

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.Tests.dll