Mysql 在Linux上使用VS代码配置.NET数据库
我已经下载并安装了VS代码,开始在Linux上使用.NET。我成功地安装了mono,并使用Yeoman搭建了一个新的MVC项目。脚手架给了我一个Mysql 在Linux上使用VS代码配置.NET数据库,mysql,asp.net,linux,mono,visual-studio-code,Mysql,Asp.net,Linux,Mono,Visual Studio Code,我已经下载并安装了VS代码,开始在Linux上使用.NET。我成功地安装了mono,并使用Yeoman搭建了一个新的MVC项目。脚手架给了我一个config.json,如下所示 { "AppSettings": { "SiteTitle": "Website" }, "Data": { "DefaultConnection": { "ConnectionString": "Server=(localdb)\\mssq
config.json
,如下所示
{
"AppSettings": {
"SiteTitle": "Website"
},
"Data": {
"DefaultConnection": {
"ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=aspnet5-Website-70631559-83ea-4436-8916-44a78906688e;Trusted_Connection=True;MultipleActiveResultSets=true"
}
}
}
但是,我不确定如何配置和设置数据库。在Windows上,VisualStudio中的updatedatabase
命令运行迁移并创建localdb
如果可能的话,我想使用mysql,但是还没有找到任何关于它的文档(在VS代码中也没有NuGet控制台)
在Linux上是如何做到这一点的?如果这还不受支持,将来会吗?可能的解决方案,在github上讨论该问题。