C# Класс WebApplications.Testing.Data.ObjectRecord

Наследование: IObjectRecord
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
IDataRecord IDataReader

Открытые методы

Метод Описание
GetBoolean ( int i ) : bool
GetByte ( int i ) : byte
GetBytes ( int i, long fieldOffset, [ buffer, int bufferoffset, int length ) : long
GetChar ( int i ) : char
GetChars ( int i, long fieldOffset, char buffer, int bufferoffset, int length ) : long
GetDataTypeName ( int i ) : string
GetDateTime ( int i ) : System.DateTime
GetDecimal ( int i ) : decimal
GetDouble ( int i ) : double
GetFieldType ( int i ) : Type
GetFloat ( int i ) : float
GetGuid ( int i ) : System.Guid
GetInt16 ( int i ) : short
GetInt32 ( int i ) : int
GetInt64 ( int i ) : long
GetName ( int i ) : string
GetOrdinal ( string name ) : int
GetString ( int i ) : string
GetValue ( int i ) : object
GetValues ( object values ) : int
IsDBNull ( int i ) : bool
ObjectRecord ( [ recordSetDefinition ) : System

Initializes a new instance of the ObjectRecord class.

If the number of column values supplied is less than the number of columns then the remaining columns are set to their equivalent default value.

ObjectRecord ( [ recordSetDefinition, bool randomData = false, double nullProbability = 0.1, object>.[ columnGenerators = null, int rowNumber = 1 ) : System

Initializes a new instance of the ObjectRecord class.

SetValue ( int i, object value ) : void

Sets the value. of the column with the specified index.

this ( int i ) : object
this ( string name ) : object

Приватные методы

Метод Описание
IDataRecord ( int i ) : IDataReader

Описание методов

GetBoolean() публичный Метод

public GetBoolean ( int i ) : bool
i int
Результат bool

GetByte() публичный Метод

public GetByte ( int i ) : byte
i int
Результат byte

GetBytes() публичный Метод

public GetBytes ( int i, long fieldOffset, [ buffer, int bufferoffset, int length ) : long
i int
fieldOffset long
buffer [
bufferoffset int
length int
Результат long

GetChar() публичный Метод

public GetChar ( int i ) : char
i int
Результат char

GetChars() публичный Метод

public GetChars ( int i, long fieldOffset, char buffer, int bufferoffset, int length ) : long
i int
fieldOffset long
buffer char
bufferoffset int
length int
Результат long

GetDataTypeName() публичный Метод

public GetDataTypeName ( int i ) : string
i int
Результат string

GetDateTime() публичный Метод

public GetDateTime ( int i ) : System.DateTime
i int
Результат System.DateTime

GetDecimal() публичный Метод

public GetDecimal ( int i ) : decimal
i int
Результат decimal

GetDouble() публичный Метод

public GetDouble ( int i ) : double
i int
Результат double

GetFieldType() публичный Метод

public GetFieldType ( int i ) : Type
i int
Результат System.Type

GetFloat() публичный Метод

public GetFloat ( int i ) : float
i int
Результат float

GetGuid() публичный Метод

public GetGuid ( int i ) : System.Guid
i int
Результат System.Guid

GetInt16() публичный Метод

public GetInt16 ( int i ) : short
i int
Результат short

GetInt32() публичный Метод

public GetInt32 ( int i ) : int
i int
Результат int

GetInt64() публичный Метод

public GetInt64 ( int i ) : long
i int
Результат long

GetName() публичный Метод

public GetName ( int i ) : string
i int
Результат string

GetOrdinal() публичный Метод

public GetOrdinal ( string name ) : int
name string
Результат int

GetString() публичный Метод

public GetString ( int i ) : string
i int
Результат string

GetValue() публичный Метод

public GetValue ( int i ) : object
i int
Результат object

GetValues() публичный Метод

public GetValues ( object values ) : int
values object
Результат int

IsDBNull() публичный Метод

public IsDBNull ( int i ) : bool
i int
Результат bool

ObjectRecord() публичный Метод

Initializes a new instance of the ObjectRecord class.
If the number of column values supplied is less than the number of columns then the remaining columns are set to their equivalent default value.
public ObjectRecord ( [ recordSetDefinition ) : System
recordSetDefinition [ The table definition.
Результат System

ObjectRecord() публичный Метод

Initializes a new instance of the ObjectRecord class.
Thrown if the number of column generators exceeds the number of columns in the record set definition.
public ObjectRecord ( [ recordSetDefinition, bool randomData = false, double nullProbability = 0.1, object>.[ columnGenerators = null, int rowNumber = 1 ) : System
recordSetDefinition [ The table definition.
randomData bool if set to fills columns with random data; otherwise fills them with their default values.
nullProbability double The probability of a column's value being set to SQL null (0.0 for no nulls) - /// this is only applicable is is set to [Defaults to 0.1 = 10%].
columnGenerators object>.[ The column generators is an array of functions that generate a value for each column, if the function is /// for a particular index then a random value is generated, if it is not null then the function is used. The function takes /// the current row number as it's only parameter and must return an object of the correct type for the column.
rowNumber int The optional row number to pass to the generator.
Результат System

SetValue() публичный Метод

Sets the value. of the column with the specified index.
The value is not valid for the specified index.
public SetValue ( int i, object value ) : void
i int The index.
value object The value.
Результат void

this() публичный Метод

public this ( int i ) : object
i int
Результат object

this() публичный Метод

public this ( string name ) : object
name string
Результат object