EF Core 7.0 (EF7) Preview 5
Pre-release
Pre-release
dcwhittaker
released this
15 Jun 00:57
·
3215 commits
to main
since this release
EF Core 7.0 (EF7) preview 5 is available from NuGet
Preview 5 contains the following new features:
- TPC inheritance mapping pattern
- DeleteBehaviorAttribute
- Translate GetType() for entity types with inheritance
- Delay DbCommandInterceptor.CommandCreated until DbCommand properties are initialized
- Remove unnecessary extra batches in SaveChanges
- Don't check for a connection string until after ConnectionOpening has been called
- Add ConnectionCreating/ConnectionCreated to DbConnectionInterceptor
- Migration name filter
- Add support for AT TIME ZONE
- GroupBy aggregate lifting
- Pascal-case the DbContext name when scaffolding
Preview 5 also includes the following new features from previews 1 through 4:
- Support value generation with converters
- Improve batching performance when using TPH mappings
- Attribute (Data Annotations) mapping for composite primary keys
- SQL Server UTF8 collations
- Stop wrapping single changes in transactions where possible
- Use RETURNING/OUTPUT clause for UPDATE/DELETE
- SQLite SaveChanges: Use RETURNING clause
- SQL Server: Optimize SQL Server OUTPUT clause usage when retrieving database-generated values
- Stop automatically deleting orphans for optional relationships with cascade delete configured
- Empty default interface implementations for all interceptor interface methods
- Temporal tables support for owned entities and other table splitting scenarios
- Support for index ordering (ASC/DESC)
- Support "non-rooted" query expressions in compiled queries
- Property/Reference/etc overloads that take IProperty/INavigation
- Distinguish cancellation from failure to allow different logging strategies
- Lift table from subquery when joining if no additional operations
- DiagnosticSuppressor for CS8618 for DbSet properties
- Stop generating a default DbContext constructor when using dotnet ef dbcontext scaffold --no-onconfiguring
- Robust and extensible SQL precedence/parentheses mechanism
- Translation for string.IndexOf(string, int)
- Support SqlNullabilityProcessor and COALESCE with more than two arguments
- Support Contains when using a IReadOnlySet
- Overload of EnableRetryOnFailure that allows specifying errorCodesToAdd without count / delay
See GitHub for all issues resolved in preview 1, preview 2, preview 3, preview 4, and preview 5.