不推荐使用 LINQ to SQL 吗? [英] Is LINQ to SQL deprecated?

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

问题描述

早在 2008 年末,就有很多关于 LINQ to SQL 的未来的争论.许多人认为,微软在 .NET 4.0 中对实体框架的投资表明 LINQ to SQL 没有未来.我想我会在做出自己的决定之前等待,因为人们不同意.

Back in late 2008 there was a lot of debate about the future of LINQ to SQL. Many suggested that Microsoft's investments in the Entity Framework in .NET 4.0 were a sign that LINQ to SQL had no future. I figured I'd wait before making my own decision since folks were not in agreement.

快进 18 个月,我有供应商提供依赖于 LINQ to SQL 的解决方案,我亲自尝试过,并且非常喜欢使用它.我想它会留在这里.

Fast-forward 18 months and I've got vendors providing solutions that rely on LINQ to SQL and I have personally given it a try and really enjoyed working with it. I figured it was here to stay.

但我正在阅读一本新书(Ben Watson 的 C# 4.0 How-To),在第 21 章(LINQ)中,他建议它或多或少已被 Microsoft 弃用",并建议使用 LINQ to Entity Framework.

But I'm reading a new book (C# 4.0 How-To by Ben Watson) and in chapter 21 (LINQ), he suggests that it "has been more or less deprecated by Microsoft" and suggests using LINQ to Entity Framework.

我的问题是 LINQ to SQL 是否已正式弃用和/或权威实体(Microsoft、Scott Gu 等)是否正式建议使用 LINQ to Entities 而不是 LINQ to SQL.

My question to you is whether or not LINQ to SQL is officially deprecated and/or if authoritative entities (Microsoft, Scott Gu, etc.) officially suggest using LINQ to Entities instead of LINQ to SQL.

推荐答案

对于所有 Linq-to-SQL 已死" 的人:Scott Guthrie 本人在 TechEd Europe 上明确提到 Linq-to-SQL 在 .NET 4 中完全支持,Damien Guard 发布了 博文 介绍了 .NET 4 中 Linq-to-SQL 的哪些变化和改进.

For all the "Linq-to-SQL is dead" folks: Scott Guthrie himself clearly mentioned at TechEd Europe that Linq-to-SQL is FULLY SUPPORTED in .NET 4, and Damien Guard posted a blog post on what changes and improvements have been made for Linq-to-SQL in .NET 4.

引用马克吐温的话:关于我死亡的报道被大大夸大了"......

To quote Mark Twain: "Reports of my death have been greatly exaggerated"......

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

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