A tried and tested object-relational mapper for .NET
open sourceMITfree
Entity Framework 6 (EF6) is Microsoft's object-relational mapper for .NET, which maps plain classes to database tables and removes most data-access code: it tracks changes, loads related data eagerly, lazily or explicitly, translates LINQ queries, and builds models with a visual designer or Code First, against SQL Server, Oracle, MySQL, SQLite, PostgreSQL and other databases. Microsoft still supports its latest version with security fixes, but it is no longer actively developed; new work goes to Entity Framework Core, its rewritten successor for modern .NET.
Problems it solves
- keep an existing .NET Framework app on its Entity Framework data layer
- map C# classes to SQL Server tables in a legacy .NET Framework project
- move data between C# objects and a relational database without hand-written SQL
Features
- LINQ queries translated to SQL
- change tracking with eager, lazy and explicit loading
- visual model designer and Code First models
- providers for SQL Server, Oracle, MySQL, SQLite, PostgreSQL and more
Limitations
- No longer actively developed: only security fixes and some high-impact bugs; new features and community pull requests aren't accepted, and Microsoft points new work to Entity Framework Core1
Alternatives
The same job
These do what Entity Framework 6 does.
- Entity Framework Core A lightweight, extensible, open source and cross-platform version of Entity Framework
- NHibernate The object-relational mapper for .NET
- Dapper A simple, fast object mapper for .NET
- SQLite-net A small SQLite client and ORM for .NET
- SqlSugar .NET ORM for many databases, including China's domestic ones such as Dameng and KingbaseES
- Npgsql Entity Framework Core provider The open source Entity Framework Core provider for PostgreSQL
