你认为切换到实体框架是有利的吗? [英] Do you think it's advantageous to switch to Entity Framework?

查看:97
本文介绍了你认为切换到实体框架是有利的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

LINQ to SQL最有可能不会像Entity Framework那样积极发展,你认为最好切换到Entity Framework?



我个人发现EF非常笨重,难以使用,与LINQ to SQL相比,感觉非常自然。



编辑:我最近在我的博客上发布了一篇关于我对这个感觉的文章潜在的决定...



ADO.NET v LINQ to SQL

解决方案

IMO,不在目前。



很明显(从最近的公告,特别是)EF是一些重要的修订作为 thunderdome 场景在LINQ-to-SQL和EF之间播放。无论发生什么情况,EF(几年)几乎肯定会与EF今天看起来截然不同。或者肯定不够足够; -p



因此,我的观点是:坚持简单。而简单的是LINQ-to-SQL。



如果我知道它很快就会改变,我看不出有趣的学习一个臭名昭着的复杂系统。 >

我和你在LINQ-to-SQL上有100%; -p



如果我需要更多的东西LINQ to SQL现在,我会看看 NHibernate 或者可能 LLBLGen Pro



编辑 - 作为更新,我的位置已经软化了一点,这里这里 - 但我仍在使用LINQ-to-SQL作为我的主要工具;还有LINQ-to-SQL 还没有死 ;-p)。


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?

I've personally found EF to be very clunky and hard to use compared to LINQ to SQL which feels very natural.

EDIT: I recently posted an article on my blog about my feelings towards this potential decision...

ADO.NET v LINQ to SQL

解决方案

IMO, not at the moment.

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

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.

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

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

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

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

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