后台数据表建立
This commit is contained in:
@@ -49,8 +49,7 @@ namespace Ewide.Web.Core.Service
|
||||
private async Task<Dictionary<string, object>> GetDataBase()
|
||||
{
|
||||
Dictionary<string, object> dicDataBase = new Dictionary<string, object>();
|
||||
var connList = App.GetConfig<List<MutiDBConnectionString>>("ConnectionStrings")?.Where(p => p.Enabled).ToList();
|
||||
var defaultConnection = connList.Find(a => a.Id == "118_3310_ewide")?.ConnectionString;
|
||||
var defaultConnection = App.Configuration["DefaultConnection"];
|
||||
//获取 所有继承 IEntity 接口的表
|
||||
IEnumerable<IEntityType> entityTypedb = _db.Model.GetEntityTypes().Where(x => typeof(IEntity).IsAssignableFrom(x.ClrType)).ToList();
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
using Ewide.Core;
|
||||
using Ewide.EntityFramework.Core;
|
||||
using Furion;
|
||||
using Furion.DependencyInjection;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Serilog;
|
||||
@@ -71,6 +74,8 @@ namespace Ewide.Web.Core
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -96,7 +101,7 @@ namespace Ewide.Web.Core
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.UseInject(string.Empty);
|
||||
app.UseInject();
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user