Havit.Data.EntityFrameworkCore.Patterns 2.9.0-pre07

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.0-pre07
                    
NuGet\Install-Package Havit.Data.EntityFrameworkCore.Patterns -Version 2.9.0-pre07
                    
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.0-pre07" />
                    
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.0-pre07" />
                    
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.0-pre07
                    
#r "nuget: Havit.Data.EntityFrameworkCore.Patterns, 2.9.0-pre07"
                    
#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.
#:package Havit.Data.EntityFrameworkCore.Patterns@2.9.0-pre07
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Havit.Data.EntityFrameworkCore.Patterns&version=2.9.0-pre07&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Havit.Data.EntityFrameworkCore.Patterns&version=2.9.0-pre07&prerelease
                    
Install 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 (doplnění nové návratové hodnoty), jsou-li.
  • 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í data seedů, jsou-li použity.
  • 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-pre02 145 10/31/2025
2.10.1-pre01 184 6/4/2025
2.10.0 119 11/27/2025
2.9.34 204 10/16/2025
2.9.33 769 7/21/2025
2.9.32 677 5/13/2025
2.9.32-pre02 217 4/22/2025
2.9.32-pre01 223 4/17/2025
2.9.31 266 4/2/2025
2.9.30 300 2/25/2025
2.9.6-pre03 152 2/6/2025
2.9.6-pre02 137 1/30/2025
2.9.5 908 12/19/2024
2.9.4 267 12/9/2024
2.9.3 199 12/4/2024
2.9.2 299 11/20/2024
2.9.1 170 11/19/2024
2.9.0 162 11/13/2024
2.9.0-pre08 129 11/13/2024
2.9.0-pre07 130 11/11/2024
2.9.0-pre06 121 11/8/2024
2.9.0-pre05 125 11/6/2024
2.9.0-pre04 135 11/5/2024
2.9.0-pre03 127 10/16/2024
2.9.0-pre02 125 10/14/2024
2.9.0-pre01 128 10/8/2024
2.8.7 163 11/19/2024
2.8.6 205 11/7/2024
2.8.5 1,127 4/15/2024
2.8.3 296 3/1/2024
2.8.2 215 2/14/2024
2.8.1 223 2/1/2024
2.8.0 595 11/29/2023
2.8.0-pre01 178 11/27/2023
2.7.14 334 10/12/2023
2.7.13 1,387 10/10/2023
2.7.12 216 10/9/2023
2.7.12-pre01 165 10/9/2023
2.7.11 318 8/25/2023
2.7.10 249 8/23/2023
2.7.10-pre03 227 8/2/2023
2.7.10-pre02 202 8/1/2023
2.7.9 394 7/13/2023
2.7.8 247 7/10/2023
2.7.7 269 6/26/2023
2.7.6 278 6/13/2023
2.7.6-pre05 195 6/13/2023
2.7.5 292 6/7/2023
2.7.4 377 6/1/2023
2.7.3 892 3/21/2023
2.7.3-pre02 228 3/21/2023
2.7.3-pre01 238 3/21/2023
2.7.2 630 2/15/2023
2.7.1 441 1/31/2023
2.7.1-pre03 272 1/31/2023
2.7.1-pre02 244 1/19/2023
2.7.1-pre01 242 1/17/2023
2.6.6 780 1/9/2023
2.6.5 1,321 7/26/2022
2.6.4 1,015 4/25/2022
2.6.3 1,105 3/14/2022
2.6.3-preview01 309 3/3/2022
2.6.2 708 3/1/2022
2.6.2-preview01 290 3/1/2022
2.6.1 610 2/24/2022
2.6.0 617 2/21/2022
2.3.11 758 2/24/2022
2.3.10 891 1/24/2022
2.3.9 680 12/6/2021
2.3.8 912 10/19/2021
2.3.7 778 10/4/2021
2.3.6 889 9/29/2021
2.3.5 868 6/25/2021
2.3.4 560 6/25/2021
2.3.3 504 6/24/2021
2.3.2 674 5/21/2021
2.3.1 1,176 3/13/2021
2.3.0 872 3/4/2021
2.1.15 776 12/16/2020
2.1.14 1,006 12/15/2020
2.1.13 992 7/24/2020
2.1.12 724 6/17/2020
2.1.11 2,322 6/11/2020
2.1.10 2,746 6/4/2020
2.1.9 669 6/1/2020
2.1.8 723 5/22/2020
2.1.7 672 5/6/2020
2.1.6 671 5/4/2020
2.1.5 1,018 4/17/2020
2.1.4 694 4/12/2020
2.1.3 958 2/25/2020
2.1.2 686 2/20/2020
2.1.1 1,082 1/21/2020
2.1.0 1,035 1/9/2020
2.1.0-preview01 628 11/11/2019
2.0.11 735 11/21/2019
2.0.10 710 11/6/2019
2.0.9 692 11/1/2019
2.0.8 730 9/3/2019
2.0.7 1,653 5/7/2019
2.0.6 787 4/29/2019
2.0.5 1,148 4/16/2019
2.0.4 1,124 4/10/2019
2.0.2 1,184 3/29/2019
2.0.1 1,107 3/21/2019

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 - lepší identifikace zdroje dotazu pomocí WithTag
• Změna registrace do DI containeru (viz níže) [BREAKING CHANGE]
• Spousta optimalizací alokací paměti a výkonu
• Odstranění obsolete memberů [BREAKING CHANGE]
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