【发布时间】:2022-11-14 19:11:28
【问题描述】:
我刚刚开始使用 singlar.net,我遇到了这段代码,但我不知道如何在 appsettings.json 中找到“你的连接字符串”。
请有人可以帮我这个!?
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"SqlServer": "Your connection string"
}
}
为数据库设置连接字符串
【问题讨论】:
-
...您是否使用 SQL Server?如果没有,则将其删除。