C# Class SQLQueryStress.Form1.QueryStressSettings

Show file Open project: ErikEJ/SqlQueryStress Class Usage Examples

Public Properties

Property Type Description
CollectIoStats bool
CollectTimeStats bool
CommandTimeout int
ConnectionTimeout int
EnableConnectionPooling bool
ForceDataRetrieval bool
MainDbConnectionInfo DatabaseSelect.ConnectionInfo
MainQuery string
NumIterations int
NumThreads int
ParamDbConnectionInfo DatabaseSelect.ConnectionInfo
ParamMappings string>.Dictionary
ParamQuery string
ShareDbSettings bool

Public Methods

Method Description
QueryStressSettings ( ) : System

Private Methods

Method Description
FixSettings ( StreamingContext context ) : void

Method Details

QueryStressSettings() public method

public QueryStressSettings ( ) : System
return System

Property Details

CollectIoStats public property

Collect I/O stats?
public bool CollectIoStats
return bool

CollectTimeStats public property

Collect time stats?
public bool CollectTimeStats
return bool

CommandTimeout public property

command timeout
public int CommandTimeout
return int

ConnectionTimeout public property

Connection Timeout
public int ConnectionTimeout
return int

EnableConnectionPooling public property

Enable pooling?
public bool EnableConnectionPooling
return bool

ForceDataRetrieval public property

Force the client to retrieve all data?
public bool ForceDataRetrieval
return bool

MainDbConnectionInfo public property

Connection info for the DB in which to run the test
public DatabaseSelect.ConnectionInfo,SQLQueryStress MainDbConnectionInfo
return DatabaseSelect.ConnectionInfo

MainQuery public property

main query to test
public string MainQuery
return string

NumIterations public property

Number of iterations to run per thread
public int NumIterations
return int

NumThreads public property

Number of threads to test with
public int NumThreads
return int

ParamDbConnectionInfo public property

Connection info for the DB from which to get the paramaters
public DatabaseSelect.ConnectionInfo,SQLQueryStress ParamDbConnectionInfo
return DatabaseSelect.ConnectionInfo

ParamMappings public property

mapped parameters
public Dictionary ParamMappings
return string>.Dictionary

ParamQuery public property

query from which to take parameters
public string ParamQuery
return string

ShareDbSettings public property

Should the main db and param db share the same settings? If so, use main db settings for the params
public bool ShareDbSettings
return bool