LINQ to SQL 是死是活? [英] Is LINQ to SQL Dead or Alive?

查看:20
本文介绍了LINQ to SQL 是死是活?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就在我与 LINQ to SQL 交朋友时,似乎 MS 正在从它下面拉出地毯.

Just when I make friends with LINQ to SQL, it appears as though MS is pulling the rug out from under it.

http://blogs.msdn.com/adonet/archive/2008/10/29/update-on-linq-to-sql-and-linq-to-entities-roadmap.aspx

根据我的一点点研究,EF 对于简单的工作来说太过分了.但是在这个公告之后,继续使用LINQ to SQL还有意义吗?

From my little bit of research, EF is way overkill for simple work. But after this announcement is there a point in continuing to use LINQ to SQL?

除了 LINQ to SQL 的未来之外,这不是通常会发出不好的信号吗?鉴于 MS 向墙上扔比特的速度,尽早使用任何新比特是否合理?(这是善意的,现在 LINQ to SQL 还为时过早!).

Beyond the future for LINQ to SQL, doesn't this just generally send a bad signal? Given the speed with which MS is throwing bits against the wall, is it rational to use any of the new bits early? (and that's being kind, it's hardly early for LINQ to SQL!).

对于我的 LINQ to SQL 工作,我想我要去 SubSonic!

For my LINQ to SQL work, I think I'm headed to SubSonic!

更新:一些新意见:

http://ayende.com/Blog/archive/2008/10/31/microsoft-kills-linq-to-sql.aspx

http://codebetter.com/blogs/david.hayden/archive/2008/10/31/linq-to-sql-is-dead-read-between-the-lines.aspx

推荐答案

1) 他们不能杀死"Linq-to-SQL,因为它已经是 .net 框架的一部分.他们能做的就是停止向其添加功能.这并不能阻止已经在使用 L2S 的成千上万的开发人员对其进行扩展和改进.一些核心领域很难触及,但它们已经很稳固,缺失的设计器功能很容易被补上.

1) They can't "kill" Linq-to-SQL as it is already part of the .net framework. What they can do is stop adding features to it. That doesn't prevent the thousands of developers out there that are already using L2S from extending it and improving it. Some core areas are tricky to touch but they're solid already and the missing designer features can easily be bolted on.

2) 其中一个 PDC EF 会议表明他们已经吸取了一些教训来自 EFv1 惨败,他们现在正在将 L2S 中的许多好东西复制并粘贴到 EF 中,并假装它是新的 EF 东西.换句话说,L2S 版本二刚刚被重新标记"为 EF.

2) One of the PDC EF sessions show that they have learnt a couple of lessons from the EFv1 fiasco and they are now copy-and-pasting a lot of the goodies from L2S into EF and pretending it is new EF stuff. In other words, L2S version two has just been "relabelled" EF.

3) 这样的 LINQ(语言集成查询)是自切片冰淇淋以来最好的东西,它可以与 L2S(Linq 到对象、Linq 到实体、Linq 到 XML、Linq-到任何东西).因此,DP 小组试图迫使 [大量] L2S 采用者转向 [较不受欢迎且目前存在缺陷的] 实体框架,这并不是不学习 Linq 的理由.

3) LINQ as such (Language Integrated Query) is the best thing since sliced ice-cream and it can be used with a lot of other things than L2S (Linq to objects, Linq to entities, Linq to XML, Linq-to-anything). So the DP group's attempt to force [the vast masses of] L2S adopters over to [the less popular and currently flawed] Entity Framework is no reason to not learn Linq.

另请参阅此线程(我认为这部分触发了 Tim 的博客文章):http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=4061922&SiteID=1

Also see this thread (which is what I believe partly triggered Tim's blog post): http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=4061922&SiteID=1

更新 1: Roger Jennings 于 2008 年 12 月发行的 Visual Studio 杂志封面故事很好地阅读了该主题,其中包含一些 L2S 与 EF 的比较:http://visualstudiomagazine.com/features/article.aspx?editorialsid=2583

Update 1: The Dec 2008 issue of Visual Studio Magazine cover story by Roger Jennings is a good read on the topic, with some L2S vs EF comparisons: http://visualstudiomagazine.com/features/article.aspx?editorialsid=2583

更新 2:Redmond Developer News 中引用了 Anders Hejlsberg 就像说LINQ to SQL 没有死.我可以向你保证,它没有死.没有什么会消失.我们从来没有这样做过,我们永远不会这样做."

http://reddevnews.com/blogs/weblog.aspx?blog=3016

这篇关于LINQ to SQL 是死是活?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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