IDatabaseService
Interface IDatabaseService
Namespace: SwiftlyS2.Shared.Database
Assembly: SwiftlyS2.CS2.dll
public interface IDatabaseServiceMethods
GetConnection(string)
Get a connection to the database.
IDbConnection GetConnection(string connectionName)Parameters
- connectionName string — The name of the connection to get the connection for.
Returns
- IDbConnection — A connection to the database. Return the default connection if the connection name is not found.
GetConnectionInfo(string)
Get the connection info for a given connection name.
DatabaseConnectionInfo GetConnectionInfo(string connectionName)Parameters
- connectionName string — The name of the connection to get the info for.
Returns
- DatabaseConnectionInfo — The connection info. Returns the default connection info if the connection name is not found.
GetConnectionString(string)
Get the connection string for a given connection name.
string GetConnectionString(string connectionName)Parameters
- connectionName string — The name of the connection to get the string for.
Returns
- string — The connection string. Returns the default connection string if the connection name is not found.