模板初始化时本地数据库失败

Local Db failure on initialization of template

我正在尝试设置一个启动模板来尝试样板文件并查看它可能提供的功能,但我 运行 遇到设置本地数据库的问题。

我已经尝试了核心启动模板下载以及 MVC 5,到目前为止它们都给了我同样的问题。我将在 VS 2017 中打开解决方案,清理解决方案,重建,进入包管理器控制台并在 EntityFramework 项目上执行 Update-Database,我在两个项目上都收到此错误,

ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:2,State:0,Class:20

A network-related or instance-specific error occurred while establishing 
a connection to SQL Server. The server was not found or was not accessible. 
Verify that the instance name is correct and that SQL Server is configured 
to allow remote connections. (provider: Named Pipes Provider, error: 40 - 
Could not open a connection to SQL Server)

我很难理解这可能意味着什么。我很确定我最近能够在其他项目中使用我的本地数据库。

您需要设置一个空数据库并在 appsettings.json 中提供有效的连接字符串。

您可以使用 Microsoft's SQL Server.