C# Class TimeSeriesLibrary.TSConnection

This class contains a collection of database connection objects that can be used by the time series library. It contains methods for maintaining the collection of database connection objects.
Mostrar archivo Open project: hydrologics/TimeSeriesLibrary Class Usage Examples

Public Properties

Property Type Description
PreparedSqlCommands List

Public Methods

Method Description
CloseConnection ( int key ) : void

Method closes the connection corresponding the the given key (i.e., connection number). The closed connection is then removed from TSConnectionsCollection.

OpenConnection ( String connxString ) : int

Method opens a new connection according to the given connection string. The connection is added to the TSConnectionsCollection and its key number is returned.

Method Details

CloseConnection() public method

Method closes the connection corresponding the the given key (i.e., connection number). The closed connection is then removed from TSConnectionsCollection.
public CloseConnection ( int key ) : void
key int
return void

OpenConnection() public method

Method opens a new connection according to the given connection string. The connection is added to the TSConnectionsCollection and its key number is returned.
public OpenConnection ( String connxString ) : int
connxString String
return int

Property Details

PreparedSqlCommands public_oe property

Collection of wrapper objects for SqlCommand objects that have been cached using the SqlCommand.Prepare method.
public List PreparedSqlCommands
return List