問題描述
我正在開始設計一個新的應用程序,我想知道人們對 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 實體的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!