我正在使用 Linux,更具體地說是 Xubuntu。我已經在我的機器上安裝了 SQL Server Express。我目前正在制作一個網絡應用程序,但我的連接似乎無法正常工作,或者我不是很了解所有內容?我得到的輸出是: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: TCP Provider, error: 25 - Connection string is not valid)我已經嘗試了所有可能找到的方法,但沒有任何效果??赡苁且驗槿狈?Linux 用戶的信息,但我仍然無法弄清楚。通常,我正在嘗試使用 EF 核心在我的控制臺應用程序中使用連接字符串連接到我的本地 SQL 服務器。像這樣:internal const string CONNECTION_STRING =
"Server = .\\SQLEXPRESS; Database = Questionnaires; Integrated Security = True";那是我正在使用的連接字符串,應該可以工作。我正在使用此命令在我的 SQL Server 上應用遷移并創建數據庫:dotnet ef database update 0 --project Data --startup-project WebInterface我應該得到的結果實際上是應用所有遷移并創建數據庫。
Linux Entity Framework Core 上的無效 SQL Server 連接字符串
12345678_0001
2022-11-21 20:19:07