The ConnectionScope type exposes the following members.
Constructors
Name | Description | |
---|---|---|
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 | |
---|---|---|
Dispose |
Closes the connection if it has not already been closed / disposed.
|
|
Equals | (Inherited from Object.) | |
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).
|
|
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).
|
|
ExecuteNonQuery(ISQLStatement) |
Executes the SQL statement and returns the number of rows affected.
|
|
ExecuteNonQuery(array<ISQLStatement>[]()[][]) |
Executes the SQL statements and returns the number of rows affected for all of the statements.
|
|
ExecuteScalar |
Executes the SQL statement.
Returns Nothing/null if no record was selected, otherwise the first field from the
returned result.
|
|
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.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
ToString | (Inherited from Object.) |