Rename IOqtaneDatabase interface (and related base class)
This commit is contained in:
@ -34,7 +34,7 @@ namespace Oqtane.Repository
|
||||
_accessor = httpContextAccessor;
|
||||
}
|
||||
|
||||
public IOqtaneDatabase ActiveDatabase { get; private set; }
|
||||
public IDatabase ActiveDatabase { get; private set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
@ -64,7 +64,7 @@ namespace Oqtane.Repository
|
||||
if (!String.IsNullOrEmpty(_databaseType))
|
||||
{
|
||||
var type = Type.GetType(_databaseType);
|
||||
ActiveDatabase = Activator.CreateInstance(type) as IOqtaneDatabase;
|
||||
ActiveDatabase = Activator.CreateInstance(type) as IDatabase;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(_connectionString) && ActiveDatabase != null)
|
||||
|
@ -4,6 +4,7 @@ using Oqtane.Databases.Interfaces;
|
||||
using Oqtane.Extensions;
|
||||
using Oqtane.Interfaces;
|
||||
using Oqtane.Models;
|
||||
using IDatabase = Oqtane.Databases.Interfaces.IDatabase;
|
||||
|
||||
// ReSharper disable CheckNamespace
|
||||
// ReSharper disable MemberCanBePrivate.Global
|
||||
@ -15,9 +16,9 @@ namespace Oqtane.Repository
|
||||
public class InstallationContext : DbContext
|
||||
{
|
||||
private readonly string _connectionString;
|
||||
private readonly IOqtaneDatabase _database;
|
||||
private readonly IDatabase _database;
|
||||
|
||||
public InstallationContext(IOqtaneDatabase database, string connectionString)
|
||||
public InstallationContext(IDatabase database, string connectionString)
|
||||
{
|
||||
_connectionString = connectionString;
|
||||
_database = database;
|
||||
|
@ -32,7 +32,7 @@ namespace Oqtane.Repository
|
||||
_configuration = configuration;
|
||||
}
|
||||
|
||||
public IOqtaneDatabase ActiveDatabase { get; private set; }
|
||||
public IDatabase ActiveDatabase { get; private set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
@ -52,7 +52,7 @@ namespace Oqtane.Repository
|
||||
if (!String.IsNullOrEmpty(_databaseType))
|
||||
{
|
||||
var type = Type.GetType(_databaseType);
|
||||
ActiveDatabase = Activator.CreateInstance(type) as IOqtaneDatabase;
|
||||
ActiveDatabase = Activator.CreateInstance(type) as IDatabase;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(_connectionString) && ActiveDatabase != null)
|
||||
|
Reference in New Issue
Block a user