C# 클래스 WebApplications.Testing.Data.ObjectRecord

상속: IObjectRecord
파일 보기 프로젝트 열기: webappsuk/CoreLibraries 1 사용 예제들

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