linq2sql背后的场景是否等同于Entity Framework

时间:2021-12-15 02:10:49

i know its a new thing , more powerful and a lot more options added to it, but is linq2sql is part of the new EF ?

我知道它是一个新东西,更强大,并添加了更多的选项,但是linq2sql是新EF的一部分吗?

if not , what is the main different between the two frameworks?

如果没有,两个框架之间的主要区别是什么?

2 个解决方案

#1


4  

I've written a couple of opinion pieces about LINQ-to-Entities, and its relation to LINQ-to-SQL:

我写了几篇关于LINQ-to-Entities的观点,以及它与LINQ-to-SQL的关系:

http://www.hackification.com/2008/12/03/linq-to-entities-the-blackberry-storm-of-orms/ http://www.hackification.com/2008/12/04/linq-to-entities-follow-up/

Summary: LINQ-to-SQL isn't the same as LINQ-to-Entities. L2S has a small feature-set, but what it does, it does very well. L2E aims to cover a much wider feature-set, but the current version seems to have some glaring omissions (eg lazy-loading). v2 of L2E should be much better; the current version (IMHO) feels more like a beta.

简介:LINQ-to-SQL与LINQ-to-Entities不同。 L2S有一个小的功能集,但它的功能,它做得很好。 L2E旨在涵盖更广泛的功能集,但当前版本似乎有一些明显的遗漏(例如延迟加载)。 L2E的v2应该好多了;当前版本(恕我直言)感觉更像是一个测试版。

#2


0  

From what I have read and been told (repeatedly =) ), linq 2 sql is being retired in favor of Linq to EF.

从我读过和被告知(重复=)),linq 2 sql正在退役,有利于Linq到EF。

See here https://*.com/questions/253263/has-microsoft-really-killed-linq-to-sql and here Is LINQ to SQL Dead or Alive?

请参阅https://*.com/questions/253263/has-microsoft-really-killed-linq-to-sql,这里是LINQ to SQL死还是活?

EF will allow you to use a more generic backing store, and that is better for users of non MSSQL backing stores.

EF将允许您使用更通用的后备存储,这对非MSSQL后备存储的用户更好。

#1


4  

I've written a couple of opinion pieces about LINQ-to-Entities, and its relation to LINQ-to-SQL:

我写了几篇关于LINQ-to-Entities的观点,以及它与LINQ-to-SQL的关系:

http://www.hackification.com/2008/12/03/linq-to-entities-the-blackberry-storm-of-orms/ http://www.hackification.com/2008/12/04/linq-to-entities-follow-up/

Summary: LINQ-to-SQL isn't the same as LINQ-to-Entities. L2S has a small feature-set, but what it does, it does very well. L2E aims to cover a much wider feature-set, but the current version seems to have some glaring omissions (eg lazy-loading). v2 of L2E should be much better; the current version (IMHO) feels more like a beta.

简介:LINQ-to-SQL与LINQ-to-Entities不同。 L2S有一个小的功能集,但它的功能,它做得很好。 L2E旨在涵盖更广泛的功能集,但当前版本似乎有一些明显的遗漏(例如延迟加载)。 L2E的v2应该好多了;当前版本(恕我直言)感觉更像是一个测试版。

#2


0  

From what I have read and been told (repeatedly =) ), linq 2 sql is being retired in favor of Linq to EF.

从我读过和被告知(重复=)),linq 2 sql正在退役,有利于Linq到EF。

See here https://*.com/questions/253263/has-microsoft-really-killed-linq-to-sql and here Is LINQ to SQL Dead or Alive?

请参阅https://*.com/questions/253263/has-microsoft-really-killed-linq-to-sql,这里是LINQ to SQL死还是活?

EF will allow you to use a more generic backing store, and that is better for users of non MSSQL backing stores.

EF将允许您使用更通用的后备存储,这对非MSSQL后备存储的用户更好。