From 3ba534bf119d589d74129cc2e8bfedfe575bc5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E7=95=85=E7=95=85?= Date: Mon, 12 Dec 2022 12:25:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=BB=93=E5=82=A8?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E5=A4=9A=E5=BA=93=E6=94=AF=E6=8C=81=E6=8B=BC?= =?UTF-8?q?=E5=86=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Blog.Core.Repository/BASE/BaseRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Blog.Core.Repository/BASE/BaseRepository.cs b/Blog.Core.Repository/BASE/BaseRepository.cs index 9dc1e30..8290068 100644 --- a/Blog.Core.Repository/BASE/BaseRepository.cs +++ b/Blog.Core.Repository/BASE/BaseRepository.cs @@ -23,10 +23,10 @@ namespace Blog.Core.Repository.Base { ISqlSugarClient db = _dbBase; /* 如果要开启多库支持, - * 1、在appsettings.json 中开启MultiDBEnabled节点为true,必填 + * 1、在appsettings.json 中开启MutiDBEnabled节点为true,必填 * 2、设置一个主连接的数据库ID,节点MainDB,对应的连接字符串的Enabled也必须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