Skip to content

Releases: PawelGerr/Thinktecture.EntityFrameworkCore

4.0.0

23 Jan 22:52

Choose a tag to compare

Features:

  • Added "collection parameters" as a light-weight alternative to temp tables. This feature allows to use a collection of scalar values or complex objects as a SQL parameter (SQL Server only)
  • The "update" part is skipped in BulkInsertOrUpdateAsync if PropertiesToUpdate returns explicitly 0 properties. (allows update-if-not-exists)
  • Schema changing components support temporal tables
  • Added an extension method that changes the default ValueComparer so the comparison is done via reference equality. Useful for byte[].
  • Split the base classes for integration testing in 2 so the DbContexts are accessible without inheriting from a base class.

Changes:

  • BulkInsertValuesIntoTempTableAsync with 1 column is returning just the values instead of entities.
  • Temp tables are not supported in queries with QuerySplittingBehavior SplitQuery
  • Temp tables are now "named entities" to prevent clashes with real entities and the "collection parameters". Changed the configuration-methods.
  • Temp tables for primitive types (Guid, Int32, etc) are pre-configured automatically now.
  • Removed obsolete NewGuidTempTableNameProvider
  • Moved factory methods from EntityPropertiesProviders to IEntityPropertiesProvider for better IntelliSense support. EntityPropertiesProviders is now obsolete.
  • Caching of ILoggerFactory during testing is not required anymore.

Bugfixes and performance optimizations.