mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2025-02-08 02:39:26 +08:00
Updated support muti db (markdown)
parent
eacb7e13ab
commit
3f97c73256
|
@ -1,15 +1,22 @@
|
|||
## appsettings.json
|
||||
# 多个数据库连接
|
||||
|
||||
注意这个不是读写分离,是项目中,可以同时连接多个数据库。
|
||||
|
||||
|
||||
|
||||
### 1、开启多库操作阀门为true
|
||||
|
||||
```
|
||||
// 在appsettings.json中配置
|
||||
|
||||
"MutiDBEnabled": true
|
||||
```
|
||||
|
||||
### 2、配置多个连接字符串
|
||||
|
||||
```
|
||||
// 如果要启用那个,就必须开启对应的阀门Enabled为true,
|
||||
// 在appsettings.json中配置
|
||||
// 如果要启用那个,就必须开启对应链接的阀门Enabled为true,
|
||||
// 同时必须要配置不同的连接ID —— ConnId
|
||||
// 注意♥,多个数据库必须都存在,如果不存在肯定连不上。
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user