Do you think it#39;s advantageous to switch to Entity Framework?(您认为切换到实体框架是否有利?)
问题描述
使用 LINQ to SQL 很可能不会像实体框架那样获得积极的开发,您认为最好切换到实体框架吗?
With LINQ to SQL most likely going to not get as much active development as Entity Framework do you think it's best to switch to Entity Framework?
我个人发现 EF 非常笨重且难以使用,而 LINQ to SQL 感觉非常自然.
I've personally found EF to be very clunky and hard to use compared to LINQ to SQL which feels very natural.
我最近在我的博客上发表了一篇文章,讲述了我对这个潜在决定的感受......
I recently posted an article on my blog about my feelings towards this potential decision...
ADO.NET v LINQ to SQL
推荐答案
IMO,暂时没有.
很清楚(来自 最近的公告 特别是)EF 正在进行一些重大修订,如thunderdome" 场景在 LINQ-to-SQL 和 EF 之间上演.无论发生什么,EF(几年后)几乎肯定会与今天的 EF 完全不同.或者肯定是足够不同";-p
It is clear (from recent announcements especially) that EF is in for some heavy revisions as the "thunderdome" scenario plays out between LINQ-to-SQL and EF. Whatever happens, EF (in a few years) will almost certainly look quite different to EF today. Or certainly "different enough" ;-p
因此,我的观点是:坚持简单.LINQ-to-SQL 很简单.
As such, my view is: stick with simple. And simple is LINQ-to-SQL.
如果我知道它很快就会发生变化,那么学习一个众所周知的复杂系统并没有什么好处.
I don't see much benefit learning a notoriously complex system if I know it is going to change very soon.
在 LINQ-to-SQL 上,我 100% 支持你;-p
And I'm 100% with you on LINQ-to-SQL ;-p
如果我现在需要的不仅仅是 LINQ-to-SQL,我会查看 NHibernate或者可能是 LLBLGen Pro.
If I needed something more than LINQ-to-SQL right now, I'd look at NHibernate or maybe LLBLGen Pro.
(edit - 作为更新,我的立场有所软化,这里 和 这里 - 但我仍然使用 LINQ-to-SQL 作为我的主要工具;还有 - LINQ-to-SQL 还没有完全死去 ;-p).
(edit - as an update, my position has softened a little bit, here and here - but I'm still using LINQ-to-SQL as my primary tool; also - LINQ-to-SQL isn't quite dead yet ;-p).
这篇关于您认为切换到实体框架是否有利?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:您认为切换到实体框架是否有利?


- MoreLinq maxBy vs LINQ max + where 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 输入按键事件处理程序 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01