同步OpenAuth.Core,增加多数据源

This commit is contained in:
ÂëÉñ
2020-12-29 23:52:06 +08:00
committed by yubaolee
parent 20a717b2e6
commit 304a0eb54d
40 changed files with 119 additions and 83 deletions

View File

@@ -1,16 +1,18 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Infrastructure;
using OpenAuth.App.Interface;
using OpenAuth.App.Request;
using OpenAuth.App.Response;
using OpenAuth.Repository;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;
namespace OpenAuth.App
{
public class {ModuleCode} : BaseApp<{ClassName}>
public class {ModuleCode} : BaseApp<{ClassName},OpenAuthDBContext>
{
/// <summary>
@@ -64,7 +66,7 @@ namespace OpenAuth.App
}
public {ModuleCode}(IUnitWork unitWork, IRepository<{ClassName}> repository, IAuth auth) : base(unitWork, repository, auth)
public {ModuleCode}(IUnitWork<OpenAuthDBContext> unitWork, IRepository<{ClassName},OpenAuthDBContext> repository, IAuth auth) : base(unitWork, repository, auth)
{
}
}

View File

@@ -1,4 +1,5 @@
using System;
using System.Threading.Tasks;
using Infrastructure;
using Microsoft.AspNetCore.Mvc;
using OpenAuth.App;

View File

@@ -1,7 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information"
"Default": "Information",
"System": "Error",
"Microsoft": "Error"
}
},
"AllowedHosts": "*",