v7.0.0-preview.3.22175.1
版本发布时间: 2022-04-14 01:34:16
dotnet/efcore最新发布版本:v9.0.0-preview.7.24405.3(2024-08-14 02:08:32)
EF Core 7.0 (EF7) preview 3 is available from NuGet
Previews 1, 2, and 3 do not contain any big new features. However, these previews do contain 38 bug fixes and 46 smaller enhancements, including:
- 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, and preview 3.