如何使用Visual Studio 2010 Express连接到SqlExpress for Entity Framework?

编程入门 行业动态 更新时间:2024-10-28 20:19:23
本文介绍了如何使用Visual Studio 2010 Express连接到SqlExpress for Entity Framework?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用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屏幕快照dl.dropbox/u/4163528/images/StackOverflow/2010Express.png

但是Visual Studio 2008 Professional拥有它。

but Visual Studio 2008 Professional has it.

Visual Studio 2008 Professional屏幕快照dl.dropbox/u/4163528/images/StackOverflow/2008Professional.png

,如另一个StackOverflow问题 Web Developer Edition具有此功能。但是,Web Developer Edition不支持实体框架项: EntityFramework dl.dropbox/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 dl.dropbox/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?

本文发布于:2023-10-28 20:10:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1537650.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   如何使用   Studio   Express   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!