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
Methods
ForceSetCs(Databases)
Forces setting the connection string to the specified database.
void ForceSetCs(Databases database)
Parameters
databaseDatabasesThe database to set as connection target.
LoadDefaultConnection(RadioButtonsSql)
Loads the default connection from radio button selection state.
void LoadDefaultConnection(RadioButtonsSql radioButtonsSql)
Parameters
radioButtonsSqlRadioButtonsSqlThe 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
databaseDatabasesThe 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
databaseDatabasesThe target database.
radioButtonsSqlRadioButtonsSqlThe radio buttons state representing selected database.
SetConnToMSDatabaseLayerSql5(Databases)
Sets the connection to the MS database layer for SQL5 variant.
void SetConnToMSDatabaseLayerSql5(Databases database)
Parameters
databaseDatabasesThe target database.
TemporarilySwitchConnToMSDatabaseLayer(RadioButtonsSql)
Temporarily switches the connection to the MS database layer using the current selection.
void TemporarilySwitchConnToMSDatabaseLayer(RadioButtonsSql radioButtonsSql)
Parameters
radioButtonsSqlRadioButtonsSqlThe 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
databaseDatabasesThe target database.
radioButtonsSqlRadioButtonsSqlThe radio buttons state representing selected database.