EF Core 6 is the next version of Entity Framework - aka Entity Framework Core 6. Don’t confuse this with the old ‘Entity Framework 6’ (the one you might have used with legacy .NET Framework applications)!
In January 2021, the major themes planned for Entity Framework Core 6 were outlined:
- Highly requested features
- Migrations and deployment
- Improve existing features and fix bugs
- .NET integration
- Experiments and investigations
The blog post went into a bit more detail under each of these headings as to what each might entail.
In addition, the plan for Entity Framework Core 6.0 is also published on Microsoft Docs.
- Support for SQL Server sparse columns
- In-memory database: validate required properties are not null
- Improved SQL Server translation for
- Database comments are scaffolded to code comments
- Savepoints API
- Command timeout in the connection string
- Preserve synchronization context in
- Translate String.Concat with multiple arguments
- Smoother integration with
- More flexible free-text search
No blog post for this release. See GitHub issue list for actual changes included.
- The runtime perf push
- Pooling and recycling,
- Logging suppression
- Opting out of thread-safety checks
- Compiled models dramatically reduce startup time for your application
- The models are generated (similar to how migrations are) so they should be refreshed whenever your model changes.
- Some features are not currently supported by compiled models, so be aware of the limitations when you try them out.
- Support for 64-bit identity seed values
- Support for new BCL
TimeOnlystructs for SQLite
- Uniquify and validate check constraint names
- Pre-convention model configuration
- The items on this list
- Migration bundles - The migration bundle is a self-contained executable with everything needed to run a migration
There was also an additional post highlighting improvements to the Azure Cosmos DB Provider.
- EF Core 6.0 supports creating and modifying temporal tables mapped to entity types