net – How does Entity Framework differ from LINQ to SQL?

Question:

How does Entity Framework differ from LINQ to SQL?

Answer:

Linq2Sql allows you to use arbitrary types in properties that are mapped to database columns, for example, enumerations.

Linq2Sql allows you to add generated code.

Linq2Sql allows converting the result of executing an arbitrary query written in the form of sql text into a list of objects.

EntityFramework allows data for one class of business logic to be placed in multiple database tables.

EntityFramework has an extensible data access interface that allows it to be used with different DBMS.

Scroll to Top