我已经成功创建了一个托管在 Ubuntu Linux 服务器上的 asp.net core mvc 应用程序。该网站运行正常。
今天,我向我的项目添加了 Entity Framework。我可以将数据提交到数据库并在我的 Windows 机器上检索它,所以这方面是正常工作的。
当我将项目移动到 Ubuntu 机器上时,网站可以正常工作,但当我尝试访问需要数据库的页面时,出现以下错误:
PlatformNotSupportedException: LocalDB is not supported on this Platform.
System.Data.SqlClient.SNI.LocalDB.GetLocalDBConnectionString(string localDbInstance)
我在Ubuntu机器上是否缺少Entity Framework / SQL_Server包,还是有其他原因导致的?