Linq 2 SQL 或 Linq 实体 [英] Linq 2 SQL or Linq Entities

查看:28
本文介绍了Linq 2 SQL 或 Linq 实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始设计一个新的应用程序,我想知道人们对 Linq2SQL 或 Linq2Entities 的看法,以及他们认为更适合快速开发的技术.

I am starting to design a new application and what I am wondering is peoples opinions on Linq2SQL or Linq2Entities and what they feel is the better technology for rapid development.

我也在研究 ADO.net 数据服务.

I am also doing some research into ADO.net data services.

推荐答案

如果您满足以下设计要求,我是 LINQ to SQL 的忠实粉丝:

I'm a big fan of LINQ to SQL if you meet the following design requirements:

  • MS SQL Server 作为数据库引擎
  • RAD 开发
  • 只需要 1 - 1 个类映射

我没有用 Entity Framework 做过很多工作,但据我所知,我所做的是,当从与 LINQ to SQL 使用的相同数据库生成时,它没有那么好的性能.

I've not done a whole lot of work with Entity Framework but from what I know and what I have done is that it doesn't have as-good performance when generated from the same database as LINQ to SQL uses.

性能较低的原因是实体框架的性质,它使用 ADO 而不是您正在使用的数据库服务器的特定提供程序.

The lower performance is due to the nature of Entity Framework, it uses ADO rather than specific providers for the database server you're using.

这篇关于Linq 2 SQL 或 Linq 实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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