我正在尝试使用 Visual Studio 2010 Express 版本来设置使用 SqlExpress + Entity Framework 作为数据访问的 ASP.NET MVC 2 Web 应用程序。我同时安装了“C# 版”和“Web 开发者版”。
如果我尝试使用“C# 版”添加数据源,则会缺少“Microsoft SQL Server”数据源类型。
Visual Studio 2010 Express Screenshot http://dl.dropbox.com/u/4163528/images/StackOverflow/2010Express.png
但 Visual Studio 2008 Professional 拥有它。
Visual Studio 2008 Professional Screenshot http://dl.dropbox.com/u/4163528/images/StackOverflow/2008Professional.png
正如另一个 StackOverflow 问题所指出的,the "Web Developer Edition" has this .但是,Web Developer Edition 不支持 Entity Framework 项:
EntityFramework http://dl.dropbox.com/u/4163528/images/StackOverflow/2010EF.png .
我只想坚持使用 Express Edition。我的用例是微软忘记的吗?我可以在这里做什么来使用 SqlExpress + MVC 2 + Entity Framework?
谢谢!
-麦克风
最佳答案
您应该可以选择 SQL Server Database File
,然后更改连接字符串以连接到SqlExpress。
关于entity-framework - 如何使用 Visual Studio 2010 Express 连接到 SqlExpress for Entity Framework?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2710654/