VS 2010和实体框架:访问SQL Server 2000数据库 [英] VS 2010 and Entity Framework: accessing SQL Server 2000 databases

查看:196
本文介绍了VS 2010和实体框架:访问SQL Server 2000数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑一个Visual Studio 2010项目,其要求是使用实体框架对数据进行建模。数据源是一个SQL Server 2000数据库。



第一步是创建一个新的ADO.NET实体数据模型项。



实体数据模型向导提示输入数据连接。





创建新连接时,您将需要使用 SqlClient 。通常它是 SQLOLEDB



数据提供者列表只有 SqlClient 或.NET Framework Data Provider for SQL Server。






  • 是否有一个解决方案Visual Studio 2010创建或使用数据连接到SQL Server 2000使用实体框架?


解决方案

不幸的是,不支持SQL Server 2000。

实体框架v2


Consider a Visual Studio 2010 project whose requirement is to model the data using Entity Framework. The datasource is a SQL Server 2000 database.

The first step is creating a new ADO.NET Entity Data Model item.

The Entity Data Model Wizard prompts for a Data Connection.

When creating a new Connection, you will need to use a provider other than SqlClient. Usually it's SQLOLEDB.

The list of data providers only has SqlClient or ".NET Framework Data Provider for SQL Server".

  • Is there a work-around for Visual Studio 2010 to create or use data connections to SQL Server 2000 using the Entity Framework?

解决方案

Unfortunately, SQL Server 2000 isn't supported.

Entity Framework v2

这篇关于VS 2010和实体框架:访问SQL Server 2000数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆