Is LocalDB supported by Visual Studio 2010 in Entity Framework 5?

左心房为你撑大大i 提交于 2019-12-05 04:16:25
Mathias Lykkegaard Lorenzen

The problem was something as simple as a missing backslash to escape my database.

Notice how the database's name is "(localdb)\v11.0". The backslash in the original connectionstring is not escaped at all, so it handles "\v" as part of the connection string.

Escaping it by specifying "\\v" instead of "\v" worked.

LocalDB is part of SQL Server 2012 so installing EF 5.0 (which on .NET 4.0 behaves like EF 4.3.1) without SQL Server 2012 doesn't work. To use LocalDB from .NET 4.0 you need .NET 4.0.2 but the question is how it works with VS 2010 tooling for EF.

A bit late to be able to help, but I thought it could help others that walk in here (just like me).

A step by step instruction how to use LocalDB with Visual Studio 2010.

http://blogs.msdn.com/b/sqlexpress/archive/2011/11/28/using-localdb-in-visual-studio-2010.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!