Entity Framework 6 maps .NET domain objects to relational databases and reduces hand-written data access code. Microsoft still supports security fixes but active feature development has moved to EF Core.
Overview
Entity Framework 6 is an object-relational mapper for .NET with years of stabilization on .NET Framework applications. It lets applications query and persist data using strongly typed entities instead of extensive ADO.NET plumbing.
EF6 supports POCO entities, change tracking, identity resolution, unit of work, eager lazy and explicit loading, and LINQ queries. Mapping covers one-to-one, one-to-many, and many-to-many relationships, inheritance strategies, complex types, and stored procedures. Developers can model with a visual designer or Code First, generating databases from models or scaffolding from existing schemas.
Integration targets ASP.NET, WPF, and WinForms via data binding. Providers connect to SQL Server, Oracle, MySQL, SQLite, PostgreSQL, DB2, and other databases through ADO.NET.
Microsoft continues security and selective high-impact bug fixes for supported EF6 releases but does not add new features or accept community pull requests on this codebase. New .NET projects are steered toward Entity Framework Core, which does not run on .NET Framework and uses a different architecture without EDMX or the classic designer.
Key features
- POCO entity mapping
- LINQ query translation
- Change tracking and unit of work
- Code First and designer workflows
- Multiple inheritance mapping styles
- Lazy eager and explicit loading
- Visual designer and EDMX models
- Broad ADO.NET database providers
Use cases
- Legacy .NET Framework data layers
- ASP.NET apps with relational stores
- WinForms and WPF data binding
- Database-first enterprise models
- Stored procedure mapped entities