您认为切换到实体框架是否有利?

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).

这篇关于您认为切换到实体框架是否有利?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
quot;Overflowquot; compiler error with -9223372036854775808L(编译器错误-9223372036854775808L(Q;溢出Q))
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
Weird behaviour when I open a reportviewer in WPF(在WPF中打开报表查看器时出现奇怪的行为)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)