Merge branch 'database' into clean-startup

# Conflicts:
#	Oqtane.Server/Startup.cs
This commit is contained in:
hishamco
2021-04-20 17:42:39 +03:00
120 changed files with 4049 additions and 663 deletions

View File

@ -9,6 +9,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Oqtane.Extensions;
using Oqtane.Infrastructure;
using Oqtane.Repository;
using Oqtane.Security;
using Oqtane.Shared;
@ -68,7 +69,10 @@ namespace Oqtane
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.AddOqtaneDbContext();
services.AddIdentityCore<IdentityUser>(options => { })
.AddEntityFrameworkStores<TenantDBContext>()
.AddSignInManager()
.AddDefaultTokenProviders();
services.ConfigureOqtaneIdentityOptions();
@ -90,8 +94,10 @@ namespace Oqtane
// register transient scoped core services
services.AddOqtaneTransientServices();
// load the external assemblies into the app domain, install services
// load the external assemblies into the app domain, install services
services.AddOqtane(_runtime, _supportedCultures);
services.AddOqtaneDbContext();
services.AddMvc()
.AddNewtonsoftJson()