【发布时间】:2021-09-24 20:39:09
【问题描述】:
我有一个使用 Entity Framework 的 ASP.NET 5.0 Web API 来访问 SQL Server。
从 Visual Studio 运行 (F5) 可以正常工作。连接字符串为Server=(localDB)\\MSSQLLocalDB;Database=***;Integrated Security=true
然后我添加 docker 支持。现在,如果我使用 Docker 配置文件调试应用程序,我会得到一个 System.PlatformNotSupportedException: LocalDB is not supported on this platform.
我应该怎么做才能让它工作?
【问题讨论】:
-
这能回答你的问题吗? LocalDB is not supported on this Platform
标签: asp.net sql-server docker localdb