C# Class WebApplications.Testing.Data.ObjectRecord

Inheritance: IObjectRecord
Afficher le fichier Open project: webappsuk/CoreLibraries Class Usage Examples

Private Properties

Свойство Type Description
IDataRecord IDataReader

Méthodes publiques

Méthode 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

Méthode Description
IDataRecord ( int i ) : IDataReader

Method Details

GetBoolean() public méthode

public GetBoolean ( int i ) : bool
i int
Résultat bool

GetByte() public méthode

public GetByte ( int i ) : byte
i int
Résultat byte

GetBytes() public méthode

public GetBytes ( int i, long fieldOffset, [ buffer, int bufferoffset, int length ) : long
i int
fieldOffset long
buffer [
bufferoffset int
length int
Résultat long

GetChar() public méthode

public GetChar ( int i ) : char
i int
Résultat char

GetChars() public méthode

public GetChars ( int i, long fieldOffset, char buffer, int bufferoffset, int length ) : long
i int
fieldOffset long
buffer char
bufferoffset int
length int
Résultat long

GetDataTypeName() public méthode

public GetDataTypeName ( int i ) : string
i int
Résultat string

GetDateTime() public méthode

public GetDateTime ( int i ) : System.DateTime
i int
Résultat System.DateTime

GetDecimal() public méthode

public GetDecimal ( int i ) : decimal
i int
Résultat decimal

GetDouble() public méthode

public GetDouble ( int i ) : double
i int
Résultat double

GetFieldType() public méthode

public GetFieldType ( int i ) : Type
i int
Résultat System.Type

GetFloat() public méthode

public GetFloat ( int i ) : float
i int
Résultat float

GetGuid() public méthode

public GetGuid ( int i ) : System.Guid
i int
Résultat System.Guid

GetInt16() public méthode

public GetInt16 ( int i ) : short
i int
Résultat short

GetInt32() public méthode

public GetInt32 ( int i ) : int
i int
Résultat int

GetInt64() public méthode

public GetInt64 ( int i ) : long
i int
Résultat long

GetName() public méthode

public GetName ( int i ) : string
i int
Résultat string

GetOrdinal() public méthode

public GetOrdinal ( string name ) : int
name string
Résultat int

GetString() public méthode

public GetString ( int i ) : string
i int
Résultat string

GetValue() public méthode

public GetValue ( int i ) : object
i int
Résultat object

GetValues() public méthode

public GetValues ( object values ) : int
values object
Résultat int

IsDBNull() public méthode

public IsDBNull ( int i ) : bool
i int
Résultat bool

ObjectRecord() public méthode

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.
Résultat System

ObjectRecord() public méthode

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.
Résultat System

SetValue() public méthode

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.
Résultat void

this() public méthode

public this ( int i ) : object
i int
Résultat object

this() public méthode

public this ( string name ) : object
name string
Résultat object