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

标签 entity-framework sql-server-express visual-studio-express

我正在尝试使用 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/

相关文章:

entity-framework - 在 EF Power Tools 代码逆向工程中指定架构名称

entity-framework - 避免贫血域模型如何与 ORM、依赖注入(inject)和可靠方法一起使用

sql - 如何下载 Microsoft SQL Server Management Studio Express 2008

SQL Server 2008 运行大型查询 - 内存不足

c# - 如何以最简单的方式在 V 2010Express C# 中创建 MRU?

c# - Bin/Debug 和 Bin/Release 的区别

c# - Entity Framework 将几何图形转换为地理图形

c# - 当 IDENTITY_INSERT 设置为 OFF 时,无法为标识列插入显式值

sql-server - 如何让 ASP.NET MVC 3.0 站点使用默认 SQLEXPRESS 以外的数据库

c++ - 如何使智能指针在 exit() 时超出范围