OpenSim::Data::MSSQL::AutoClosingSqlCommand Class Reference

Encapsulates a SqlCommand object but ensures that when it is disposed, its connection is closed and disposed also. More...

List of all members.

Public Member Functions

 AutoClosingSqlCommand (SqlCommand cmd)
void Cancel ()
SqlParameter CreateParameter ()
int ExecuteNonQuery ()
SqlDataReader ExecuteReader (CommandBehavior behavior)
SqlDataReader ExecuteReader ()
object ExecuteScalar ()
void Prepare ()
void Dispose ()

Properties

string CommandText [get, set]
int CommandTimeout [get, set]
CommandType CommandType [get, set]
SqlConnection Connection [get]
SqlParameterCollection Parameters [get]
IDbTransaction Transaction [get, set]


Detailed Description

Encapsulates a SqlCommand object but ensures that when it is disposed, its connection is closed and disposed also.


Constructor & Destructor Documentation

OpenSim::Data::MSSQL::AutoClosingSqlCommand::AutoClosingSqlCommand ( SqlCommand  cmd  )  [inline]


Member Function Documentation

void OpenSim::Data::MSSQL::AutoClosingSqlCommand::Cancel (  )  [inline]

SqlParameter OpenSim::Data::MSSQL::AutoClosingSqlCommand::CreateParameter (  )  [inline]

int OpenSim::Data::MSSQL::AutoClosingSqlCommand::ExecuteNonQuery (  )  [inline]

SqlDataReader OpenSim::Data::MSSQL::AutoClosingSqlCommand::ExecuteReader ( CommandBehavior  behavior  )  [inline]

SqlDataReader OpenSim::Data::MSSQL::AutoClosingSqlCommand::ExecuteReader (  )  [inline]

object OpenSim::Data::MSSQL::AutoClosingSqlCommand::ExecuteScalar (  )  [inline]

void OpenSim::Data::MSSQL::AutoClosingSqlCommand::Prepare (  )  [inline]

void OpenSim::Data::MSSQL::AutoClosingSqlCommand::Dispose (  )  [inline]


Property Documentation

string OpenSim::Data::MSSQL::AutoClosingSqlCommand::CommandText [get, set]

int OpenSim::Data::MSSQL::AutoClosingSqlCommand::CommandTimeout [get, set]

CommandType OpenSim::Data::MSSQL::AutoClosingSqlCommand::CommandType [get, set]

SqlConnection OpenSim::Data::MSSQL::AutoClosingSqlCommand::Connection [get]

SqlParameterCollection OpenSim::Data::MSSQL::AutoClosingSqlCommand::Parameters [get]

IDbTransaction OpenSim::Data::MSSQL::AutoClosingSqlCommand::Transaction [get, set]


The documentation for this class was generated from the following file:
Generated on Mon Jan 5 01:00:38 2009 for OpenSim by  doxygen 1.5.1