Class DatabaseManager
- Namespace
- Oqtane.Infrastructure
- Assembly
- Oqtane.Server.dll
public class DatabaseManager : IDatabaseManager
- Inheritance
-
DatabaseManager
- Implements
-
Constructors
DatabaseManager(IConfigManager, IServiceScopeFactory, IMemoryCache, IConfigManager, ILogger<DatabaseManager>)
public DatabaseManager(IConfigManager config, IServiceScopeFactory serviceScopeFactory, IMemoryCache cache, IConfigManager configManager, ILogger<DatabaseManager> filelogger)
Parameters
config
IConfigManager
serviceScopeFactory
IServiceScopeFactory
cache
IMemoryCache
configManager
IConfigManager
filelogger
ILogger<DatabaseManager>
Methods
AddEFMigrationsHistory(ISqlRepository, string, string, string, bool)
public void AddEFMigrationsHistory(ISqlRepository sql, string connectionString, string databaseType, string version, bool isMaster)
Parameters
sql
ISqlRepository
connectionString
string
databaseType
string
version
string
isMaster
bool
Install()
public Installation Install()
Returns
- Installation
Install(InstallConfig)
public Installation Install(InstallConfig install)
Parameters
install
InstallConfig
Returns
- Installation
IsInstalled()
public Installation IsInstalled()
Returns
- Installation
MigrateConnectionString(InstallationContext, Tenant)
public string MigrateConnectionString(InstallationContext db, Tenant tenant)
Parameters
db
InstallationContext
tenant
Tenant
Returns
- string
UpdateConnectionString(string)
public void UpdateConnectionString(string connectionString)
Parameters
connectionString
string
UpdateDatabaseType(string)
public void UpdateDatabaseType(string databaseType)
Parameters
databaseType
string