如何使用Visual Studio 2010 Express连接到SqlExpress for Entity Framework? [英] How to connect to SqlExpress for Entity Framework using Visual Studio 2010 Express?
问题描述
我正在尝试使用Visual Studio 2010 Express版本使用SqlExpress + Entity Framework作为数据访问权限来设置ASP.NET MVC 2 Web应用程序。我同时安装了 C#版和 Web开发人员版。
I'm trying to use the Visual Studio 2010 Express editions to set up an ASP.NET MVC 2 Web Application using SqlExpress + Entity Framework as the data access. I have both the "C# Edition" and "Web Developer Edition" installed.
如果我尝试使用 C#版添加数据源,则会丢失 Microsoft SQL Server数据源类型。
If I try to add a data source using the "C# edition", I'm missing the "Microsoft SQL Server" data source type.
Visual Studio 2010 Express屏幕快照http://dl.dropbox.com/u/4163528/images/StackOverflow/2010Express.png
但是Visual Studio 2008 Professional拥有它。
but Visual Studio 2008 Professional has it.
,如另一个StackOverflow问题 Web Developer Edition具有此功能。但是,Web Developer Edition不支持实体框架项:
EntityFramework http://dl.dropbox.com/u/4163528/images/StackOverflow/2010EF.png 。
as noted by another StackOverflow question, the "Web Developer Edition" has this. However, the Web Developer Edition doesn't support the Entity Framework items: EntityFramework http://dl.dropbox.com/u/4163528/images/StackOverflow/2010EF.png.
我想坚持只使用Express Edition。微软忘记了我的用例吗?我在这里可以使用SqlExpress + MVC 2 +实体框架吗?
I'd want to stick with only the Express Editions. Is my use case one that Microsoft forgot about? What can I do here to use SqlExpress + MVC 2 + Entity Framework?
谢谢!
-Mike
推荐答案
您应该能够选择 SQL Server数据库文件
,然后进行更改连接到SqlExpress的连接字符串。
You should be able to select SQL Server Database File
, then change the connection string to connect to SqlExpress.
这篇关于如何使用Visual Studio 2010 Express连接到SqlExpress for Entity Framework?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!