C# Class TimeSeriesLibrary.TSSqlCommandContainer

An object of this class wraps a SqlCommand object, together with fields that allow the command to be looked up by the code that needs to reuse the command. The purpose of this container is to ensure that commands are efficiently cached and reused by the database system.
Show file Open project: hydrologics/TimeSeriesLibrary

Public Properties

Property Type Description
ConnectionId int
KeyString String
SqlCommand System.Data.SqlClient.SqlCommand
SqlConnection System.Data.SqlClient.SqlConnection
TableName String

Public Methods

Method Description
TSSqlCommandContainer ( int connectionId, SqlConnection sqlConnection, String tableName, String keyString, SqlCommand sqlCommand ) : System

Constructor. The constructor will call the Prepare method on the SqlCommand object, so the caller does not need to call this method.

Method Details

TSSqlCommandContainer() public method

Constructor. The constructor will call the Prepare method on the SqlCommand object, so the caller does not need to call this method.
public TSSqlCommandContainer ( int connectionId, SqlConnection sqlConnection, String tableName, String keyString, SqlCommand sqlCommand ) : System
connectionId int
sqlConnection System.Data.SqlClient.SqlConnection
tableName String
keyString String
sqlCommand System.Data.SqlClient.SqlCommand
return System

Property Details

ConnectionId public property

public int ConnectionId
return int

KeyString public property

public String KeyString
return String

SqlCommand public property

public SqlCommand,System.Data.SqlClient SqlCommand
return System.Data.SqlClient.SqlCommand

SqlConnection public property

public SqlConnection,System.Data.SqlClient SqlConnection
return System.Data.SqlClient.SqlConnection

TableName public property

public String TableName
return String