Havit.Data.EntityFrameworkCore.Patterns 2.9.6-pre03

Prefix Reserved
This is a prerelease version of Havit.Data.EntityFrameworkCore.Patterns.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Havit.Data.EntityFrameworkCore.Patterns --version 2.9.6-pre03
                    
NuGet\Install-Package Havit.Data.EntityFrameworkCore.Patterns -Version 2.9.6-pre03
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Havit.Data.EntityFrameworkCore.Patterns" Version="2.9.6-pre03" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Havit.Data.EntityFrameworkCore.Patterns" Version="2.9.6-pre03" />
                    
Directory.Packages.props
<PackageReference Include="Havit.Data.EntityFrameworkCore.Patterns" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Havit.Data.EntityFrameworkCore.Patterns --version 2.9.6-pre03
                    
#r "nuget: Havit.Data.EntityFrameworkCore.Patterns, 2.9.6-pre03"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Havit.Data.EntityFrameworkCore.Patterns&version=2.9.6-pre03&prerelease
                    
Install Havit.Data.EntityFrameworkCore.Patterns as a Cake Addin
#tool nuget:?package=Havit.Data.EntityFrameworkCore.Patterns&version=2.9.6-pre03&prerelease
                    
Install Havit.Data.EntityFrameworkCore.Patterns as a Cake Tool

HAVIT .NET Framework Extensions - Entity Framework Core Extensions

EF Core 8 to EF Core 9 Migration Guide

  • Aktualizovat nuget HFW balíčky a Microsoft balíčky na EF Core 9.
  • Aktualizovat dotnet tool Havit.Data.EntityFrameworkCore.CodeGenerator.Tool (dotnet tool update Havit.Data.EntityFrameworkCore.CodeGenerator.Tool).
  • Zkompilovat projekt Entity (build celé solution selže).
  • Spustit generátor kódu.
  • Upravit Before Commit Processory:
    • V implementacích nahradit IBeforeCommitProcessor<TEntity> za bázovou třídu BeforeCommitProcessor<TEntity>.
    • Použít nové návratové hodnoty dle chování before commit processoru.
    • Neměnit registraci do DI.
  • Upravit přetížení metod PerformAddForInsert/Update/Delete pro vlastní Unit Of Work, pokud je potřeba.
  • Upravit registraci služeb do dependency injection:
    • odstranit volání WithEntityPatterns,
    • odstranit volání AddEntityPatterns,
    • k volání AddDbContext přidat generický parametr IDbContext,
    • k volání AddDbContext přidat do optionsBuilderu volání UseDefaultHavitConvetions(),
    • nahradit volání AddDataLayer metodou AddDataLayerServices (odstranit argument s assembly),
    • doplnit volání AddDataSeeds, jsou-li použity data seedy.
  • Metody AddLocalizationServices, AddLookupServices zůstávají beze změny.
services
	.AddDbContext<IDbContext, MyShopDbContext>(optionsBuilder =>
	{
		string databaseConnectionString = configuration.Configuration.GetConnectionString("Database");
		optionsBuilder.UseSqlServer(databaseConnectionString, c => c.MaxBatchSize(30));
		optionsBuilder.UseDefaultHavitConventions();
	})
	.AddDataLayerServices()
	.AddDataSeeds(typeof(CoreProfile).Assembly)
	.AddLocalizationServices<Language>();
`

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Havit.Data.EntityFrameworkCore.Patterns:

Package Downloads
Havit.Data.EntityFrameworkCore.Patterns.Windsor

HAVIT .NET Framework Extensions - Entity Framework Core Extensions - Installers for Castle Windsor

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.9.32 245 5/13/2025
2.9.32-pre02 167 4/22/2025
2.9.32-pre01 176 4/17/2025
2.9.31 203 4/2/2025
2.9.30 226 2/25/2025
2.9.6-pre03 111 2/6/2025
2.9.6-pre02 97 1/30/2025
2.9.5 571 12/19/2024
2.9.4 202 12/9/2024
2.9.3 142 12/4/2024
2.9.2 248 11/20/2024
2.9.1 123 11/19/2024
2.9.0 112 11/13/2024
2.9.0-pre08 84 11/13/2024
2.9.0-pre07 96 11/11/2024
2.9.0-pre06 80 11/8/2024
2.9.0-pre05 82 11/6/2024
2.9.0-pre04 93 11/5/2024
2.9.0-pre03 82 10/16/2024
2.9.0-pre02 80 10/14/2024
2.9.0-pre01 85 10/8/2024
2.8.7 108 11/19/2024
2.8.6 152 11/7/2024
2.8.5 1,050 4/15/2024
2.8.3 247 3/1/2024
2.8.2 172 2/14/2024
2.8.1 172 2/1/2024
2.8.0 542 11/29/2023
2.8.0-pre01 142 11/27/2023
2.7.14 290 10/12/2023
2.7.13 1,341 10/10/2023
2.7.12 169 10/9/2023
2.7.12-pre01 120 10/9/2023
2.7.11 269 8/25/2023
2.7.10 192 8/23/2023
2.7.10-pre03 167 8/2/2023
2.7.10-pre02 134 8/1/2023
2.7.9 328 7/13/2023
2.7.8 177 7/10/2023
2.7.7 196 6/26/2023
2.7.6 208 6/13/2023
2.7.6-pre05 122 6/13/2023
2.7.5 217 6/7/2023
2.7.4 306 6/1/2023
2.7.3 814 3/21/2023
2.7.3-pre02 145 3/21/2023
2.7.3-pre01 165 3/21/2023
2.7.2 554 2/15/2023
2.7.1 359 1/31/2023
2.7.1-pre03 184 1/31/2023
2.7.1-pre02 164 1/19/2023
2.7.1-pre01 162 1/17/2023
2.6.6 701 1/9/2023
2.6.5 1,226 7/26/2022
2.6.4 921 4/25/2022
2.6.3 1,016 3/14/2022
2.6.3-preview01 218 3/3/2022
2.6.2 616 3/1/2022
2.6.2-preview01 195 3/1/2022
2.6.1 516 2/24/2022
2.6.0 520 2/21/2022
2.3.11 657 2/24/2022
2.3.10 788 1/24/2022
2.3.9 582 12/6/2021
2.3.8 618 10/19/2021
2.3.7 675 10/4/2021
2.3.6 774 9/29/2021
2.3.5 767 6/25/2021
2.3.4 463 6/25/2021
2.3.3 405 6/24/2021
2.3.2 579 5/21/2021
2.3.1 1,064 3/13/2021
2.3.0 758 3/4/2021
2.1.15 673 12/16/2020
2.1.14 887 12/15/2020
2.1.13 874 7/24/2020
2.1.12 619 6/17/2020
2.1.11 2,214 6/11/2020
2.1.10 2,631 6/4/2020
2.1.9 564 6/1/2020
2.1.8 617 5/22/2020
2.1.7 560 5/6/2020
2.1.6 555 5/4/2020
2.1.5 903 4/17/2020
2.1.4 577 4/12/2020
2.1.3 836 2/25/2020
2.1.2 576 2/20/2020
2.1.1 963 1/21/2020
2.1.0 919 1/9/2020
2.1.0-preview01 513 11/11/2019
2.0.11 615 11/21/2019
2.0.10 592 11/6/2019
2.0.9 579 11/1/2019
2.0.8 622 9/3/2019
2.0.7 1,488 5/7/2019
2.0.6 676 4/29/2019
2.0.5 1,026 4/16/2019
2.0.4 1,000 4/10/2019
2.0.2 1,053 3/29/2019
2.0.1 970 3/21/2019

v2.9.6 (??.2025)
• Podpora non-int primárních klíčů (podporovány jsou SByte, Int16, Int32, Int64 a unsigned varianty, Guid, string)
• Náhrada IRepository<TEntity> ve prospěch IRepository<TEntity, TKey> a související úpravy
v2.9.5 (19.12.2024)
• Vypnutí cachování nyní funguje
v2.9.4 (9.12.2024)
• DbUnitOfWork - Podpora registrace asynchronních after commit akcí (použitelné jen v CommmitAsync)
• ComponentRegistrationOptions - oprava (ne)možnosti vytvoření instance
v2.9.3 (4.12.2024)
• Odstranění výchozí implementace v IBeforeCommitProcessor<>, doplnění bázové třídy BeforeCommitProcessor.
v2.9.2 (20.11.2024)
• Uvolnění příliš omezující podmínky v QueryBase
v2.9.0 (12.11.2024)
• Aktualizace na EF Core 9
Novinky, úpravy:
• IUnitOfWork.Clear() pro vyčištění change trackeru (a samotného unit of worku)
• DbUnitOfWork.Commit[Async] - omezeno snížení volání detekce změn ze 3 na 1 (občas na 2)
• DbUnitOfWork PerformAddForInsert/Update/Delete - přibylo přetížení pro 1 entitu a stávající pole změněno na IEnumeable<>, breaking changes pro ty, kteří mají vlastní DbUnitOfWork s přetíženými metodami [BREAKING CHANGE]
• BeforeCommitProcessory nyní vrací informaci o tom, zda provedl úpravu s dopadem na change tracker [BREAKING CHANGE]
• BeforeCommitProcessory - podpora pro async variantu (lze použít jen v asynchronním commitu!)
• Seedování dat nyní používá UnitOfWork, neobchází tak (čištění) cache, používá before commit processory, atp.
• Seedování dat nyní izoluje jednotlivé seedy pomocí IUnitOfWork.Clear()
• Seedování má možnost nově použít SeedAsync (nutné pro fungování asynchronních before commit procesorů)
• DbDataLoader, DbDataSeedPersister - lepší identifikace zdroje SQL dotazu pomocí TagWith
• Změna registrace do DI containeru (viz níže) [BREAKING CHANGE]
• Odstranění obsolete memberů [BREAKING CHANGE]
• Spousta optimalizací alokací paměti a výkonu
Dependency Injection [BREAKING CHANGE]
• Odstranění IEntityPatternInstaller, WithEntityPatternsInstaller, použito jen IServiceCollection
• Registrace DbContextu pomocí prostředků samotného EF Core
• AddEntityPatterns - zrušen
• AddDataLayer - metoda nahrazena generovanou metodou AddDayaLayerServices
• AddDataLayer/AddDayaLayerServices nově neregistruje data seedy a potřebuje explicitní registraci
• ComponentRegistrationOptions již nemá DbUnitOfWorkType (vlastní unit of work lze zaregistrovat samostatně)
Optimalizace:
• DbUnitOfWork.Commit[Async] - optimalizace alokací paměti a využití reflexe v BeforeCommitProcessorech+EntityValidators
• Dictionary nahrazen FrozenDictionary, sestavení při startu aplikace, atp.
• DbDataLoader - optimalizace iterací polí, alokací paměti, předávání dat do následujícího ThenLoad