Creation of EF Core Migrations - these execute using EF Tools, but are not integrated to run programmatically

This commit is contained in:
Charles Nurse
2021-03-19 17:01:49 -07:00
parent c64f350f36
commit 83e5502111
49 changed files with 2170 additions and 17 deletions

View File

@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Oqtane.Models;
namespace Oqtane.Repository
@ -23,7 +24,7 @@ namespace Oqtane.Repository
public virtual DbSet<Language> Language { get; set; }
public TenantDBContext(ITenantResolver tenantResolver, IHttpContextAccessor accessor) : base(tenantResolver, accessor)
public TenantDBContext(ITenantResolver tenantResolver, IHttpContextAccessor accessor, IConfiguration configuration) : base(tenantResolver, accessor, configuration)
{
// DBContextBase handles multi-tenant database connections
}