C# Class WebApplications.Testing.Data.ObjectRecord

Inheritance: IObjectRecord
Exibir arquivo Open project: webappsuk/CoreLibraries Class Usage Examples

Private Properties

Property Type Description
IDataRecord IDataReader

Public Methods

Method Description
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

Private Methods

Method Description
IDataRecord ( int i ) : IDataReader

Method Details

GetBoolean() public method

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

GetByte() public method

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

GetBytes() public method

public GetBytes ( int i, long fieldOffset, [ buffer, int bufferoffset, int length ) : long
i int
fieldOffset long
buffer [
bufferoffset int
length int
return long

GetChar() public method

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

GetChars() public method

public GetChars ( int i, long fieldOffset, char buffer, int bufferoffset, int length ) : long
i int
fieldOffset long
buffer char
bufferoffset int
length int
return long

GetDataTypeName() public method

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

GetDateTime() public method

public GetDateTime ( int i ) : System.DateTime
i int
return System.DateTime

GetDecimal() public method

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

GetDouble() public method

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

GetFieldType() public method

public GetFieldType ( int i ) : Type
i int
return System.Type

GetFloat() public method

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

GetGuid() public method

public GetGuid ( int i ) : System.Guid
i int
return System.Guid

GetInt16() public method

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

GetInt32() public method

public GetInt32 ( int i ) : int
i int
return int

GetInt64() public method

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

GetName() public method

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

GetOrdinal() public method

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

GetString() public method

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

GetValue() public method

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

GetValues() public method

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

IsDBNull() public method

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

ObjectRecord() public method

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.
return System

ObjectRecord() public method

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.
return System

SetValue() public method

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.
return void

this() public method

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

this() public method

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