.net core 连接mysql 六:创建数据库连接DefaultConnection

 

 

 

{
"ConnectionStrings": {
"DefaultConnection": "server=localhost;uid=root;pwd=123456;port=3306;database=fjxw_echarge;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}

posted @ 2022-03-27 11:16  .net&new  阅读(371)  评论(0编辑  收藏  举报