Havit.Data.EntityFrameworkCore.Patterns 2.9.32

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Havit.Data.EntityFrameworkCore.Patterns --version 2.9.32
                    
NuGet\Install-Package Havit.Data.EntityFrameworkCore.Patterns -Version 2.9.32
                    
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.32" />
                    
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.32" />
                    
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.32
                    
#r "nuget: Havit.Data.EntityFrameworkCore.Patterns, 2.9.32"
                    
#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.32
                    
Install Havit.Data.EntityFrameworkCore.Patterns as a Cake Addin
#tool nuget:?package=Havit.Data.EntityFrameworkCore.Patterns&version=2.9.32
                    
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.10.1-pre01 126 6/4/2025
2.9.32 278 5/13/2025
2.9.32-pre02 168 4/22/2025
2.9.32-pre01 177 4/17/2025
2.9.31 211 4/2/2025
2.9.30 232 2/25/2025
2.9.6-pre03 112 2/6/2025
2.9.6-pre02 98 1/30/2025
2.9.5 646 12/19/2024
2.9.4 204 12/9/2024
2.9.3 144 12/4/2024
2.9.2 250 11/20/2024
2.9.1 125 11/19/2024
2.9.0 114 11/13/2024
2.9.0-pre08 85 11/13/2024
2.9.0-pre07 98 11/11/2024
2.9.0-pre06 81 11/8/2024
2.9.0-pre05 83 11/6/2024
2.9.0-pre04 94 11/5/2024
2.9.0-pre03 83 10/16/2024
2.9.0-pre02 81 10/14/2024
2.9.0-pre01 86 10/8/2024
2.8.7 112 11/19/2024
2.8.6 155 11/7/2024
2.8.5 1,055 4/15/2024
2.8.3 248 3/1/2024
2.8.2 173 2/14/2024
2.8.1 173 2/1/2024
2.8.0 543 11/29/2023
2.8.0-pre01 143 11/27/2023
2.7.14 291 10/12/2023
2.7.13 1,342 10/10/2023
2.7.12 170 10/9/2023
2.7.12-pre01 121 10/9/2023
2.7.11 270 8/25/2023
2.7.10 193 8/23/2023
2.7.10-pre03 168 8/2/2023
2.7.10-pre02 135 8/1/2023
2.7.9 329 7/13/2023
2.7.8 178 7/10/2023
2.7.7 197 6/26/2023
2.7.6 209 6/13/2023
2.7.6-pre05 123 6/13/2023
2.7.5 219 6/7/2023
2.7.4 306 6/1/2023
2.7.3 815 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 185 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,228 7/26/2022
2.6.4 925 4/25/2022
2.6.3 1,020 3/14/2022
2.6.3-preview01 222 3/3/2022
2.6.2 620 3/1/2022
2.6.2-preview01 200 3/1/2022
2.6.1 520 2/24/2022
2.6.0 524 2/21/2022
2.3.11 661 2/24/2022
2.3.10 792 1/24/2022
2.3.9 586 12/6/2021
2.3.8 816 10/19/2021
2.3.7 680 10/4/2021
2.3.6 779 9/29/2021
2.3.5 771 6/25/2021
2.3.4 468 6/25/2021
2.3.3 409 6/24/2021
2.3.2 584 5/21/2021
2.3.1 1,068 3/13/2021
2.3.0 762 3/4/2021
2.1.15 677 12/16/2020
2.1.14 891 12/15/2020
2.1.13 879 7/24/2020
2.1.12 624 6/17/2020
2.1.11 2,220 6/11/2020
2.1.10 2,636 6/4/2020
2.1.9 571 6/1/2020
2.1.8 626 5/22/2020
2.1.7 569 5/6/2020
2.1.6 564 5/4/2020
2.1.5 912 4/17/2020
2.1.4 587 4/12/2020
2.1.3 845 2/25/2020
2.1.2 585 2/20/2020
2.1.1 972 1/21/2020
2.1.0 928 1/9/2020
2.1.0-preview01 523 11/11/2019
2.0.11 624 11/21/2019
2.0.10 602 11/6/2019
2.0.9 589 11/1/2019
2.0.8 632 9/3/2019
2.0.7 1,498 5/7/2019
2.0.6 686 4/29/2019
2.0.5 1,036 4/16/2019
2.0.4 1,010 4/10/2019
2.0.2 1,064 3/29/2019
2.0.1 980 3/21/2019

v2.9.32 (13.5.2025)
• SoftDeleteManager může být (opět) registrován s lifetime Scoped.
• Opravy pádů při použití navigace Many-To-Many.
v2.9.30 (25.2.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