FakeDbDataReader FakeDbDataReader Class

Definition

public class FakeDbDataReader : DbDataReader, IDataReader, IDisposable, IDataRecord, IEnumerable
Public Class FakeDbDataReader
    Inherits DbDataReader
    Implements IDataReader, IDisposable, IDataRecord, IEnumerable
Inheritance
System.ObjectSystem.Object
System.MarshalByRefObjectSystem.MarshalByRefObject
System.Data.Common.DbDataReaderSystem.Data.Common.DbDataReader
FakeDbDataReaderFakeDbDataReader
Implements
System.Data.IDataReaderSystem.Data.IDataReader System.IDisposableSystem.IDisposable System.Data.IDataRecordSystem.Data.IDataRecord System.Collections.IEnumerableSystem.Collections.IEnumerable

Constructors

FakeDbDataReader(String[], IList) 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<System.Object[]> System.Collections.Generic.IList(Of System.Object())

Properties

CloseCount CloseCount

public int CloseCount { get; }
Public ReadOnly Property CloseCount As Integer
Value
System.Int32 System.Int32

Depth Depth

public override int Depth { get; }
Public Overrides ReadOnly Property Depth As Integer
Value
System.Int32 System.Int32
Overrides
System.Data.Common.DbDataReader.DepthSystem.Data.Common.DbDataReader.Depth

DisposeCount DisposeCount

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

FieldCount FieldCount

public override int FieldCount { get; }
Public Overrides ReadOnly Property FieldCount As Integer
Value
System.Int32 System.Int32
Overrides
System.Data.Common.DbDataReader.FieldCountSystem.Data.Common.DbDataReader.FieldCount

GetInt32Count GetInt32Count

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

HasRows HasRows

public override bool HasRows { get; }
Public Overrides ReadOnly Property HasRows As Boolean
Value
System.Boolean System.Boolean
Overrides
System.Data.Common.DbDataReader.HasRowsSystem.Data.Common.DbDataReader.HasRows

IsClosed IsClosed

public override bool IsClosed { get; }
Public Overrides ReadOnly Property IsClosed As Boolean
Value
System.Boolean System.Boolean
Overrides
System.Data.Common.DbDataReader.IsClosedSystem.Data.Common.DbDataReader.IsClosed

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
Value
System.Object System.Object
Overrides
System.Data.Common.DbDataReader.Item[System.Int32]System.Data.Common.DbDataReader.Item[System.Int32]

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
Value
System.Object System.Object
Overrides
System.Data.Common.DbDataReader.Item[System.String]System.Data.Common.DbDataReader.Item[System.String]

ReadAsyncCount ReadAsyncCount

public int ReadAsyncCount { get; }
Public ReadOnly Property ReadAsyncCount As Integer
Value
System.Int32 System.Int32

RecordsAffected RecordsAffected

public override int RecordsAffected { get; }
Public Overrides ReadOnly Property RecordsAffected As Integer
Value
System.Int32 System.Int32
Overrides
System.Data.Common.DbDataReader.RecordsAffectedSystem.Data.Common.DbDataReader.RecordsAffected

Methods

Close() Close()

public override void Close()
Public Overrides Sub Close
Overrides
System.Data.Common.DbDataReader.Close()System.Data.Common.DbDataReader.Close()

CreateObjRef(Type) CreateObjRef(Type)

Inherited from System.MarshalByRefObject

Dispose() Dispose()

Inherited from System.Data.Common.DbDataReader

Dispose(Boolean) Dispose(Boolean)

protected override void Dispose(bool disposing)
Protected Overrides Sub Dispose(disposing As Boolean)
Parameters
disposing
System.Boolean System.Boolean
Overrides
System.Data.Common.DbDataReader.Dispose(System.Boolean)System.Data.Common.DbDataReader.Dispose(System.Boolean)

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

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
Overrides
System.Data.Common.DbDataReader.GetBoolean(System.Int32)System.Data.Common.DbDataReader.GetBoolean(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetByte(System.Int32)System.Data.Common.DbDataReader.GetByte(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetBytes(System.Int32, System.Int64, System.Byte[], System.Int32, System.Int32)System.Data.Common.DbDataReader.GetBytes(System.Int32, System.Int64, System.Byte[], System.Int32, System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetChar(System.Int32)System.Data.Common.DbDataReader.GetChar(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetChars(System.Int32, System.Int64, System.Char[], System.Int32, System.Int32)System.Data.Common.DbDataReader.GetChars(System.Int32, System.Int64, System.Char[], System.Int32, System.Int32)

GetData(Int32) GetData(Int32)

Inherited from System.Data.Common.DbDataReader

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
Overrides
System.Data.Common.DbDataReader.GetDataTypeName(System.Int32)System.Data.Common.DbDataReader.GetDataTypeName(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetDateTime(System.Int32)System.Data.Common.DbDataReader.GetDateTime(System.Int32)

GetDbDataReader(Int32) GetDbDataReader(Int32)

Inherited from System.Data.Common.DbDataReader

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
Overrides
System.Data.Common.DbDataReader.GetDecimal(System.Int32)System.Data.Common.DbDataReader.GetDecimal(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetDouble(System.Int32)System.Data.Common.DbDataReader.GetDouble(System.Int32)

GetEnumerator() GetEnumerator()

public override IEnumerator GetEnumerator()
Public Overrides Function GetEnumerator As IEnumerator
Returns
System.Collections.IEnumerator System.Collections.IEnumerator
Overrides
System.Data.Common.DbDataReader.GetEnumerator()System.Data.Common.DbDataReader.GetEnumerator()

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
Overrides
System.Data.Common.DbDataReader.GetFieldType(System.Int32)System.Data.Common.DbDataReader.GetFieldType(System.Int32)

GetFieldValue(Int32) GetFieldValue(Of T)(Int32)

Inherited from System.Data.Common.DbDataReader

GetFieldValueAsync(Int32) GetFieldValueAsync(Of T)(Int32)

Inherited from System.Data.Common.DbDataReader

GetFieldValueAsync(Int32, CancellationToken) GetFieldValueAsync(Of T)(Int32, CancellationToken)

Inherited from System.Data.Common.DbDataReader

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
Overrides
System.Data.Common.DbDataReader.GetFloat(System.Int32)System.Data.Common.DbDataReader.GetFloat(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetGuid(System.Int32)System.Data.Common.DbDataReader.GetGuid(System.Int32)

GetHashCode() GetHashCode()

Inherited from System.Object

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
Overrides
System.Data.Common.DbDataReader.GetInt16(System.Int32)System.Data.Common.DbDataReader.GetInt16(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetInt32(System.Int32)System.Data.Common.DbDataReader.GetInt32(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
Overrides
System.Data.Common.DbDataReader.GetInt64(System.Int32)System.Data.Common.DbDataReader.GetInt64(System.Int32)

GetLifetimeService() GetLifetimeService()

Inherited from System.MarshalByRefObject

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
Overrides
System.Data.Common.DbDataReader.GetName(System.Int32)System.Data.Common.DbDataReader.GetName(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetOrdinal(System.String)System.Data.Common.DbDataReader.GetOrdinal(System.String)

GetProviderSpecificFieldType(Int32) GetProviderSpecificFieldType(Int32)

Inherited from System.Data.Common.DbDataReader

GetProviderSpecificValue(Int32) GetProviderSpecificValue(Int32)

Inherited from System.Data.Common.DbDataReader

GetProviderSpecificValues(Object[]) GetProviderSpecificValues(Object())

Inherited from System.Data.Common.DbDataReader

GetSchemaTable() GetSchemaTable()

public override DataTable GetSchemaTable()
Public Overrides Function GetSchemaTable As DataTable
Returns
System.Data.DataTable System.Data.DataTable
Overrides
System.Data.Common.DbDataReader.GetSchemaTable()System.Data.Common.DbDataReader.GetSchemaTable()

GetStream(Int32) GetStream(Int32)

Inherited from System.Data.Common.DbDataReader

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
Overrides
System.Data.Common.DbDataReader.GetString(System.Int32)System.Data.Common.DbDataReader.GetString(System.Int32)

GetTextReader(Int32) GetTextReader(Int32)

Inherited from System.Data.Common.DbDataReader

GetType() GetType()

Inherited from System.Object

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
Overrides
System.Data.Common.DbDataReader.GetValue(System.Int32)System.Data.Common.DbDataReader.GetValue(System.Int32)

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
Overrides
System.Data.Common.DbDataReader.GetValues(System.Object[])System.Data.Common.DbDataReader.GetValues(System.Object[])

IDataRecord.GetData(Int32) System.Data.IDataRecord.GetData(Int32)

Inherited from System.Data.Common.DbDataReader

InitializeLifetimeService() InitializeLifetimeService()

Inherited from System.MarshalByRefObject

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
Overrides
System.Data.Common.DbDataReader.IsDBNull(System.Int32)System.Data.Common.DbDataReader.IsDBNull(System.Int32)

IsDBNullAsync(Int32) IsDBNullAsync(Int32)

Inherited from System.Data.Common.DbDataReader

IsDBNullAsync(Int32, CancellationToken) IsDBNullAsync(Int32, CancellationToken)

Inherited from System.Data.Common.DbDataReader

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Inherited from System.MarshalByRefObject

NextResult() NextResult()

public override bool NextResult()
Public Overrides Function NextResult As Boolean
Returns
System.Boolean System.Boolean
Overrides
System.Data.Common.DbDataReader.NextResult()System.Data.Common.DbDataReader.NextResult()

NextResultAsync() NextResultAsync()

Inherited from System.Data.Common.DbDataReader

NextResultAsync(CancellationToken) NextResultAsync(CancellationToken)

Inherited from System.Data.Common.DbDataReader

Read() Read()

public override bool Read()
Public Overrides Function Read As Boolean
Returns
System.Boolean System.Boolean
Overrides
System.Data.Common.DbDataReader.Read()System.Data.Common.DbDataReader.Read()

ReadAsync() ReadAsync()

Inherited from System.Data.Common.DbDataReader

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<System.Boolean> System.Threading.Tasks.Task(Of System.Boolean)
Overrides
System.Data.Common.DbDataReader.ReadAsync(System.Threading.CancellationToken)System.Data.Common.DbDataReader.ReadAsync(System.Threading.CancellationToken)

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

VisibleFieldCount VisibleFieldCount

Inherited from System.Data.Common.DbDataReader