你是否认为这是有利的,切换到实体框架?这是、你是否、切换到、实体

2023-09-02 21:23:01 作者:一季微光

使用LINQ到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到SQL

推荐答案

IMO,不是现在。

很明显(从的最近宣布的特别)的EF是在一些重修订的 thunderdome 场景发挥出的LINQ到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到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.

和我100%跟你在LINQ到SQL ;-p

And I'm 100% with you on LINQ-to-SQL ;-p

如果我需要比LINQ到SQL,现在更多的东西,我想看看 NHibernate的或也许 LLBLGEN专业版。

If I needed something more than LINQ-to-SQL right now, I'd look at NHibernate or maybe LLBLGen Pro.

(修改 - 作为一个更新,我的立场已经软化了一点,的这里和的这里 - 但我仍然使用LINQ到SQL作为我的主要工具;还有 - LINQ到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).