Merge pull request #316 from itchangc/master

fix:修复仓储开启多库支持拼写问题
This commit is contained in:
ansonzhang 2023-01-04 14:40:58 +08:00 committed by GitHub
commit d6b29a29e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,10 +23,10 @@ namespace Blog.Core.Repository.Base
{
ISqlSugarClient db = _dbBase;
/*
* 1appsettings.json MultiDBEnabled节点为true
* 1appsettings.json MutiDBEnabled节点为true
* 2IDMainDBEnabled也必须true
*/
if (AppSettings.app(new[] {"MultiDBEnabled"}).ObjToBool())
if (AppSettings.app(new[] {"MutiDBEnabled"}).ObjToBool())
{
//修改使用 model备注字段作为切换数据库条件使用sqlsugar TenantAttribute存放数据库ConnId
//参考 https://www.donet5.com/Home/Doc?typeId=2246