Entity Framework vs LINQ to SQL

后端 未结 17 1972
离开以前
离开以前 2020-11-22 09:25

Now that .NET v3.5 SP1 has been released (along with VS2008 SP1), we now have access to the .NET entity framework.

My question is this. When trying to decide betwee

17条回答
  •  一生所求
    2020-11-22 10:03

    The answers here have covered many of the differences between Linq2Sql and EF, but there's a key point which has not been given much attention: Linq2Sql only supports SQL Server whereas EF has providers for the following RDBMS's:

    Provided by Microsoft:

    • ADO.NET drivers for SQL Server, OBDC and OLE DB

    Via third party providers:

    • MySQL
    • Oracle
    • DB2
    • VistaDB
    • SQLite
    • PostgreSQL
    • Informix
    • U2
    • Sybase
    • Synergex
    • Firebird
    • Npgsql

    to name a few.

    This makes EF a powerful programming abstraction over your relational data store, meaning developers have a consistent programming model to work with regardless of the underlying data store. This could be very useful in situations where you are developing a product that you want to ensure will interoperate with a wide range of common RDBMS's.

    Another situation where that abstraction is useful is where you are part of a development team that works with a number of different customers, or different business units within an organisation, and you want to improve developer productivity by reducing the number of RDBMS's they have to become familiar with in order to support a range of different applications on top of different RDBMS's.

提交回复
热议问题