何时将linq to sql淘汰?实体框架(替换)是否已发布? [英] When will linq to sql be phased out? Is entity frameworks (replacement) released yet?

查看:147
本文介绍了何时将linq to sql淘汰?实体框架(替换)是否已发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

何时将淘汰linq to sql?实体框架(替换)是否已发布?

When will linq to sql be phased out? Is entity frameworks (replacement) released yet?

推荐答案

是的,ADO.NET实体框架已与.NET 3.5 Service Pack 1一起发布.

Yes, the ADO.NET Entity Framework has been released with .NET 3.5 Service Pack 1.

不,Entity Framework本身将不会取代LINQ-2-SQL-两者的目标受众截然不同,并且拥有各自的目标市场.

And no, Entity Framework will not replace LINQ-2-SQL per se - the two have quite different target audiences and have their own, respective target markets.

LINQ-2-SQL非常适合简单的场景,在这些场景中,业务对象几乎是数据库表的1:1映射.通常是这种情况,在这种情况下,EF是一个过大的杀伤力.

LINQ-2-SQL is great for simpler scenarios where your business objects are pretty much a 1:1 mapping of your database tables. This is often the case, and in such a scenario, EF is an overkill.

EF在企业级应用程序中非常有用,在该应用程序中,您的业务域对象不必将1:1映射到表上,或者您需要支持MS SQL Server以外的多个数据库后端.

EF on the other hand is great in an enterprise level app where your business domain objects will not necessarily map 1:1 onto tables, or where you need to support multiple database backends beyond MS SQL Server.

即使使用.NET 4.0,Microsoft仍在LINQ-2-SQL上进行投资-请参见Damien Guard的

Even with .NET 4.0, Microsoft is still making investments in LINQ-2-SQL - see Damien Guard's blog post to that effect.

马克

这篇关于何时将linq to sql淘汰?实体框架(替换)是否已发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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