fix #2567 - migrate tenant connection string details from database to appsettings.json
This commit is contained in:
20
Oqtane.Server/Repository/Context/DBContextDependencies.cs
Normal file
20
Oqtane.Server/Repository/Context/DBContextDependencies.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Oqtane.Infrastructure;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public class DBContextDependencies : IDBContextDependencies
|
||||
{
|
||||
public DBContextDependencies(ITenantManager tenantManager, IHttpContextAccessor httpContextAccessor, IConfigurationRoot config)
|
||||
{
|
||||
TenantManager = tenantManager;
|
||||
Accessor = httpContextAccessor;
|
||||
Config = config;
|
||||
}
|
||||
|
||||
public ITenantManager TenantManager { get; }
|
||||
public IHttpContextAccessor Accessor { get; }
|
||||
public IConfigurationRoot Config { get; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user