Entity Framework v5.0.1 Release Notes
Release Date: 2020-12-08 // almost 4 years ago-
๐ This is a patch release of EF Core 5.0 containing only important bug fixes.
EF Core 5.0.1
- Query
- Properly generate expression to read provider-specific types from BufferedDataReader
- Owned collection when owner has composite PK throws translation failure
- ArgumentOutOfRangeException for split query with owned types
- Incorrect SQL generated when applying group by over a group by
- KeyNotFoundException when adding a single projection
- Incorrect result when doing owner + Include collection + split query + owned type mapped to different table + single
- InvalidCastException on entities referencing Owned types containing NetTopologySuite Point properties
- Exception when using inheritance with owned properties in the in-memory database
- Ternary operator with DateTimes in select gives ArgumentException
- Object reference not set to an instance of an object exception when using NET Topology Suite in Select projection
- Provider specific plugin method translator never gets called for indexer property
- ๐ Model building
- Mapping exception with property called FooId on base type Foo in TPT
- Foreign keys are removed from owned tables when excludedFromMigrations set to true
- Exception in TPT models with default values
- Default schema has no effect on views in EF Core 5.0
- The entity type is part of a relationship cycle involving its primary key
- StackOverflowException when using same collection navigation twice
- StackOverflowException with EFCore 5 many-to-many mapping using many-to-one via self
- DbContext
- Scaffolding
- ๐พ SaveChanges
- Migrations
Microsoft.Data.Sqlite 5.0.1
- Query
Previous changes from v5.0.0
-
๐ฆ EF Core 5.0 is available on NuGet now!
- ๐ Issues fixed for EF Core 5.0.0
Among the new features for EF Core 5.0 are:
- ๐ Many-to-many relationships
- ๐ Map entity types to queries
- ๐ Event counters
- ๐ Property bags
- ๐ SaveChanges interception and events
- ๐ Exclude tables from migrations
- ๐ Required 1:1 dependents
- ๐ Options for migration generation
- ๐ Migrations scripts with transactions
- ๐ See pending migrations
- ๐ ModelBuilder API for value comparers
- ๐ EntityEntry TryGetValue methods
- 0๏ธโฃ Default max batch size for SQL Server
- 0๏ธโฃ Default environment to Development
- ๐ Better migrations column ordering
- ๐ Translation of is on Cosmos
- ๐ User-mapped functions can now be annotated to control null propagation
- ๐ Support for translation of GroupBy with conditional aggregates
- ๐ Translation of Distinct operator over group element before aggregate
- ๐ Model building for fields
- ๐ Table-per-type (TPT) mapping
- ๐ Migrations: Rebuild SQLite tables
- ๐ Table-valued functions
- โก๏ธ Flexible query/update mapping
- ๐ง Context-wide split-query configuration
- ๐ PhysicalAddress mapping
- Add FieldInfo overload for NavigationBuilder
- Query generation for GroupBy with OwnsOne
- ๐ Support join after GroupByAggregate
- โ Generate a warning for multiple collection Includes
- Convert multiple equality on same column joined by Or/Else into SQL IN expression
- 0๏ธโฃ Make discriminator properties read-only be default
- Add an IDbContextFactory that pools context instances
- Cosmos: Allow PK with just the partition key
- ๐ Register a factory for DbContext instances in D.I.
- ๐ Clear all tracked entities to reset DbContext state
- 0๏ธโฃ New pattern for store-generated defaults
- ๐ Better support for Cosmos partition keys
- ๐ง New Cosmos configuration options
- ๐ Scaffold-DbContext now singularizes
- ๐ Support for database savepoints
- ๐ Split queries for Include and projection of collections
- ๐ IndexAttribute
- ๐ Improved query translation exceptions
- ๐ Application-specified transaction IDs
- ๐ IPAddress mapping
- ๐ Option to exclude OnConfiguring when scaffolding
- ๐ Translations for FirstOrDefault, etc. on strings
- ๐ Simplification of case blocks in generated SQL
- ๐ Database collations
- ๐ Flow arguments into IDesignTimeDbContextFactory
- ๐ No-tracking queries with identity resolution
- ๐ Stored (persisted) computed columns
- ๐ SQLite computed columns
- ๐ง Configure database precision/scale in model
- ๐ Specify SQL Server index fill factor
- ๐ Filtered Include
- ๐ Command-line parameters for namespaces when scaffolding a DbContext or generating migrations
- โก๏ธ Command-line support for passing a connection string to [dotnet ef database update]/[Update-Database]
- ๐ EnableDetailedErrors provides more information in query mapping exceptions
- ๐ Improved support for using Cosmos partition keys in queries
- ๐ New ModelBuilder API for navigation properties
- ๐ Support for the SQL Server DATALENGTH function
- ๐ Use a C# attribute to specify a property backing field
- ๐ Complete discriminator mapping
- ๐ Performance improvements in Microsoft.Data.Sqlite
- ๐ฒ Simple Logging
- ๐ Simple way to get generated SQL
- ๐ Use a C# attribute to indicate that an entity has no key
- ๐ Connection or connection string can be changed on initialized DbContext
- ๐ Change-tracking proxies
- ๐ Enhanced debug views
- ๐ Improved handling of database null semantics
- ๐ Indexer properties
- ๐ Generation of check constraints for enum mappings
- ๐ IsRelational method for differential model building
- ๐ Cosmos optimistic concurrency with ETags
- ๐ Query translations for more DateTime constructs
- ๐ Query translations for more byte array constructs
- ๐ Query translation for Reverse
- ๐ Query translation for bitwise operators
- ๐ Query translation for strings on Cosmos
๐ The .NET Blog announcement has installation instructions and full details.