C# Class System.Data.Tests.Common.DbDataReaderMock

Inheritance: System.Data.Common.DbDataReader
显示文件 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Close ( ) : void
DbDataReaderMock ( ) : System.Data.Common
DbDataReaderMock ( DataTable testData ) : System.Data.Common
GetBoolean ( int ordinal ) : bool
GetByte ( int ordinal ) : byte
GetBytes ( int ordinal, long dataOffset, byte buffer, int bufferOffset, int length ) : long
GetChar ( int ordinal ) : char
GetChars ( int ordinal, long dataOffset, char buffer, int bufferOffset, int length ) : long
GetDataTypeName ( int ordinal ) : string
GetDateTime ( int ordinal ) : DateTime
GetDecimal ( int ordinal ) : decimal
GetDouble ( int ordinal ) : double
GetEnumerator ( ) : global::System.Collections.IEnumerator
GetFieldType ( int ordinal ) : Type
GetFloat ( int ordinal ) : float
GetGuid ( int ordinal ) : Guid
GetInt16 ( int ordinal ) : short
GetInt32 ( int ordinal ) : int
GetInt64 ( int ordinal ) : long
GetName ( int ordinal ) : string
GetOrdinal ( string name ) : int
GetSchemaTable ( ) : DataTable
GetString ( int ordinal ) : string
GetValue ( int ordinal ) : object
GetValues ( object values ) : int
IsDBNull ( int ordinal ) : bool
NextResult ( ) : bool
Read ( ) : bool
this ( int ordinal ) : object
this ( string name ) : object

Method Details

Close() public method

public Close ( ) : void
return void

DbDataReaderMock() public method

public DbDataReaderMock ( ) : System.Data.Common
return System.Data.Common

DbDataReaderMock() public method

public DbDataReaderMock ( DataTable testData ) : System.Data.Common
testData DataTable
return System.Data.Common

GetBoolean() public method

public GetBoolean ( int ordinal ) : bool
ordinal int
return bool

GetByte() public method

public GetByte ( int ordinal ) : byte
ordinal int
return byte

GetBytes() public method

public GetBytes ( int ordinal, long dataOffset, byte buffer, int bufferOffset, int length ) : long
ordinal int
dataOffset long
buffer byte
bufferOffset int
length int
return long

GetChar() public method

public GetChar ( int ordinal ) : char
ordinal int
return char

GetChars() public method

public GetChars ( int ordinal, long dataOffset, char buffer, int bufferOffset, int length ) : long
ordinal int
dataOffset long
buffer char
bufferOffset int
length int
return long

GetDataTypeName() public method

public GetDataTypeName ( int ordinal ) : string
ordinal int
return string

GetDateTime() public method

public GetDateTime ( int ordinal ) : DateTime
ordinal int
return DateTime

GetDecimal() public method

public GetDecimal ( int ordinal ) : decimal
ordinal int
return decimal

GetDouble() public method

public GetDouble ( int ordinal ) : double
ordinal int
return double

GetEnumerator() public method

public GetEnumerator ( ) : global::System.Collections.IEnumerator
return global::System.Collections.IEnumerator

GetFieldType() public method

public GetFieldType ( int ordinal ) : Type
ordinal int
return Type

GetFloat() public method

public GetFloat ( int ordinal ) : float
ordinal int
return float

GetGuid() public method

public GetGuid ( int ordinal ) : Guid
ordinal int
return Guid

GetInt16() public method

public GetInt16 ( int ordinal ) : short
ordinal int
return short

GetInt32() public method

public GetInt32 ( int ordinal ) : int
ordinal int
return int

GetInt64() public method

public GetInt64 ( int ordinal ) : long
ordinal int
return long

GetName() public method

public GetName ( int ordinal ) : string
ordinal int
return string

GetOrdinal() public method

public GetOrdinal ( string name ) : int
name string
return int

GetSchemaTable() public method

public GetSchemaTable ( ) : DataTable
return DataTable

GetString() public method

public GetString ( int ordinal ) : string
ordinal int
return string

GetValue() public method

public GetValue ( int ordinal ) : object
ordinal int
return object

GetValues() public method

public GetValues ( object values ) : int
values object
return int

IsDBNull() public method

public IsDBNull ( int ordinal ) : bool
ordinal int
return bool

NextResult() public method

public NextResult ( ) : bool
return bool

Read() public method

public Read ( ) : bool
return bool

this() public method

public this ( int ordinal ) : object
ordinal int
return object

this() public method

public this ( string name ) : object
name string
return object