我得到這個錯誤: An exception of type 'System.Data.SqlClient.SqlException' occurred in EntityFramework.dll but was not handled in user code
Additional information: Directory lookup for the file "C:\pub\LSK\
我正在使用Entity Framework 6.1和Visual Studio 2013.默認情況下,EF在app.config中生成「MSSqlLocaldb」作爲數據源。在開發中,我不時需要手動在實體表上運行SQL查詢來檢查。我注意到我必須手動運行控制檯cmd「sqllocaldb start MSSqlLocaldb」,然後「sqllocaldb info MSSqlLocaldb」才能獲得
我不斷收到此錯誤的LocalDB當我嘗試在包管理器控制檯做一個更新的數據庫命令: ClientConnectionId:00000000-0000-0000-0000-000000000000 A network-related or instance-specific error occurred while establishing a connection to SQL Server. Th