摘要:
一、在appsetting.json中设置数据库连接字符串 { "ConnectionStrings": { "DianXinMySql": "server=localhost;port=3306;user=root;password=password;database=db_name" }, "L 阅读全文
posted @ 2023-04-26 15:00 火冰·瓶 阅读(82) 评论(0) 推荐(0)
|
摘要:
一、在appsetting.json中设置数据库连接字符串 { "ConnectionStrings": { "DianXinMySql": "server=localhost;port=3306;user=root;password=password;database=db_name" }, "L 阅读全文
posted @ 2023-04-26 15:00 火冰·瓶 阅读(82) 评论(0) 推荐(0)
摘要:
一、通过nuget安装扩展包 需要安装如下扩展包 Microsoft.Extensions.Configuration Microsoft.Extensions.Configuration.Binder Microsoft.Extensions.Configuration.Json 二、在启动项目中 阅读全文
posted @ 2023-04-26 14:48 火冰·瓶 阅读(205) 评论(0) 推荐(0) |
||