Class SoConnection
This class implements the IDbConnection interface, and is the wrapper used to represent a connection against a physical database. The actual connection is an inner object and is a database-specific class, potentially provided by a dynamically loaded assembly (sybase and db/2).
Inherited Members
Namespace: SuperOffice .Data
Assembly: SoDataBase.dll
Syntax
public sealed class SoConnection : IDbConnection, IDisposable
Fields
DigContextTrace
VERY hacky way to obtain data from the DIG system if there is a missing-config problem during test runs
Declaration
public static StringBuilder DigContextTrace
Field Value
Type | Description |
---|---|
String |
Properties
InnerConnection
The inner (e.g. native) connection object.
Declaration
public IDbConnection InnerConnection { get; }
Property Value
Type | Description |
---|---|
IDb |
The inner connection. |
Methods
BeginTransaction()
Begins a database transaction.
Declaration
public SoTransaction BeginTransaction()
Returns
Type | Description |
---|---|
So |
An object representing the new transaction. |
BeginTransaction(IsolationLevel)
Begins a database transaction with the specified System.Data.IsolationLevel value.
Declaration
public SoTransaction BeginTransaction(IsolationLevel isolationLevel)
Parameters
Type | Name | Description |
---|---|---|
Isolation |
isolationLevel | One of the System.Data.IsolationLevel values. |
Returns
Type | Description |
---|---|
So |
An object representing the new transaction. |
Close()
Closes the connection to the database.
Declaration
public void Close()
CreateCommand()
Creates and returns a Command object associated with the connection.
Declaration
public SoCommand CreateCommand()
Returns
Type | Description |
---|---|
So |
A Command object associated with the connection. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Open()
Opens a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.
Declaration
public void Open()
ToString()
This class implements the IDbConnection interface, and is the wrapper used to represent a connection against a physical database. The actual connection is an inner object and is a database-specific class, potentially provided by a dynamically loaded assembly (sybase and db/2).
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |