|
7
|
| niico · 技术社区 · 8 年前 |
|
|
1
9
在中定义连接字符串
|
|
|
2
2
只需在appsettings.json中如下所示。
在startup.cs中,按如下所述获取:
使用依赖注入在控制器中注入配置,如下所述:
|