The ConnectionScope type exposes the following members.

Constructors

  Name Description
Public method ConnectionScope
Ensures that a new connection is opened. If defined within a TransactionScope then the transaction is utilised and object effectively does nothing.

Methods

  Name Description
Public method Dispose
Closes the connection if it has not already been closed / disposed.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method Execute(ISQLStatement)
Executes the SQL statement and returns the result. The returned reader can only be used until the ConnectionScope is disposed (typically at the end of a using construct).
Public method Execute(array<ISQLStatement>[]()[][])
Executes the SQL statements and returns the first result. The returned reader(s) can only be used until the ConnectionScope is disposed (typically at the end of a using construct).
Public method ExecuteNonQuery(ISQLStatement)
Executes the SQL statement and returns the number of rows affected.
Public method ExecuteNonQuery(array<ISQLStatement>[]()[][])
Executes the SQL statements and returns the number of rows affected for all of the statements.
Public method ExecuteScalar
Executes the SQL statement. Returns Nothing/null if no record was selected, otherwise the first field from the returned result.
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also