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.
Exibir arquivo 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_oe property

public int ConnectionId
return int

KeyString public_oe property

public String KeyString
return String

SqlCommand public_oe property

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

SqlConnection public_oe property

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

TableName public_oe property

public String TableName
return String