Are both LINQ and Entity Framework considered ORM?
What is the difference between LINQ and Entity Framework
Are both LINQ and Entity Framework both considered ORM?
What is the advantages of both.
LINQ is a base technology - as others have already pointed out.
You're probably talking about Linq-to-SQL - which is a fairly simple, straightforward ORM for use with SQL Server.
Entity Framework also is an ORM - and then some! It's quite a different beast, really.
Linq-to-SQL is great
Entity Framework on the other hand
In brief: Linq-to-SQL is a great, simple and lean'n'mean ORM for SQL Server - use it, if it does all you need. Entity Framework is quite a different beast, much more capable, but also much more complex, much bigger - perfect for your next enterprise-critical app, but probably overkill for your personal blog app :-)
LINQ is a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations.
Entity Framework is an object-relational mapping (ORM) framework for the .NET Framework.
LINQ allows you to query many different data sets using the same syntax. For example, with LINQ you can query a collection of strings or your own collection of objects or an array or XML for example all using the same syntax that looks similar to SQL syntax.
Entity Framework is an ORM, as well as LINQ to SQL. Both use LINQ to abstract the actual SQL being called to query records from the DB.
What's great about LINQ is it abstracts away the details needed to query each different data set. Before LINQ we were forced to know how to query each and every kind of data set which in many cases was very different.
Different data sets can participate with LINQ by creating a provider for it. For example, you can now use LINQ to access twitter with the LINQ to Twitter Provider.
链接地址: http://www.djcxy.com/p/33498.html上一篇: 实体框架VS LINQ to SQL VS ADO.NET与存储过程?
下一篇: LINQ和实体框架都考虑了ORM吗?