Table of Contents

Interface IDatabasesConnections

Namespace
SunamoUnderscore
Assembly
SunamoUnderscore.dll

Interface for managing database connections and switching between them.

public interface IDatabasesConnections
Extension Methods

Properties

DefaultConnection

Gets the currently active default database connection.

Databases DefaultConnection { get; }

Property Value

Databases

Methods

ForceSetCs(Databases)

Forces setting the connection string to the specified database.

void ForceSetCs(Databases database)

Parameters

database Databases

The database to set as connection target.

LoadDefaultConnection(RadioButtonsSql)

Loads the default connection from radio button selection state.

void LoadDefaultConnection(RadioButtonsSql radioButtonsSql)

Parameters

radioButtonsSql RadioButtonsSql

The radio buttons state representing selected database.

NotifyAboutSunamoCzLocalInDebug(Databases)

Returns a notification message when local SunamoCz database is used in debug mode.

string NotifyAboutSunamoCzLocalInDebug(Databases database)

Parameters

database Databases

The database to check.

Returns

string

Notification message string.

Reload()

Reloads the database connections asynchronously.

Task Reload()

Returns

Task

A task representing the asynchronous reload operation.

SetConnToMSDatabaseLayer(Databases, RadioButtonsSql)

Sets the connection to the MS database layer for the specified database.

void SetConnToMSDatabaseLayer(Databases database, RadioButtonsSql radioButtonsSql)

Parameters

database Databases

The target database.

radioButtonsSql RadioButtonsSql

The radio buttons state representing selected database.

SetConnToMSDatabaseLayerSql5(Databases)

Sets the connection to the MS database layer for SQL5 variant.

void SetConnToMSDatabaseLayerSql5(Databases database)

Parameters

database Databases

The target database.

TemporarilySwitchConnToMSDatabaseLayer(RadioButtonsSql)

Temporarily switches the connection to the MS database layer using the current selection.

void TemporarilySwitchConnToMSDatabaseLayer(RadioButtonsSql radioButtonsSql)

Parameters

radioButtonsSql RadioButtonsSql

The radio buttons state representing selected database.

TemporarilySwitchConnToMSDatabaseLayer(Databases, RadioButtonsSql)

Temporarily switches the connection to the MS database layer for the specified database.

void TemporarilySwitchConnToMSDatabaseLayer(Databases database, RadioButtonsSql radioButtonsSql)

Parameters

database Databases

The target database.

radioButtonsSql RadioButtonsSql

The radio buttons state representing selected database.