Show / Hide Table of Contents

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).

Inheritance
Object
SoConnection
Implements
IDbConnection
IDisposable
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public sealed class SoConnection : Object, 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
StringBuilder

Properties

InnerConnection

The inner (e.g. native) connection object.

Declaration
public IDbConnection InnerConnection { get; }
Property Value
Type Description
IDbConnection

The inner connection.

Methods

BeginTransaction()

Begins a database transaction.

Declaration
public SoTransaction BeginTransaction()
Returns
Type Description
SoTransaction

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
IsolationLevel isolationLevel

One of the System.Data.IsolationLevel values.

Returns
Type Description
SoTransaction

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
SoCommand

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

Implements

System.Data.IDbConnection
System.IDisposable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top