Havit.Data.EntityFrameworkCore.Patterns 2.9.0-pre08

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-pre08
                    
NuGet\Install-Package Havit.Data.EntityFrameworkCore.Patterns -Version 2.9.0-pre08
                    
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-pre08" />
                    
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-pre08" />
                    
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-pre08
                    
#r "nuget: Havit.Data.EntityFrameworkCore.Patterns, 2.9.0-pre08"
                    
#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-pre08
                    
#: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-pre08&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Havit.Data.EntityFrameworkCore.Patterns&version=2.9.0-pre08&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í 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 145 6/4/2025
2.9.33 372 7/21/2025
2.9.32 411 5/13/2025
2.9.32-pre02 187 4/22/2025
2.9.32-pre01 195 4/17/2025
2.9.31 227 4/2/2025
2.9.30 254 2/25/2025
2.9.6-pre03 126 2/6/2025
2.9.6-pre02 111 1/30/2025
2.9.5 816 12/19/2024
2.9.4 223 12/9/2024
2.9.3 165 12/4/2024
2.9.2 263 11/20/2024
2.9.1 137 11/19/2024
2.9.0 130 11/13/2024
2.9.0-pre08 101 11/13/2024
2.9.0-pre07 114 11/11/2024
2.9.0-pre06 96 11/8/2024
2.9.0-pre05 98 11/6/2024
2.9.0-pre04 108 11/5/2024
2.9.0-pre03 100 10/16/2024
2.9.0-pre02 96 10/14/2024
2.9.0-pre01 102 10/8/2024
2.8.7 127 11/19/2024
2.8.6 173 11/7/2024
2.8.5 1,077 4/15/2024
2.8.3 261 3/1/2024
2.8.2 185 2/14/2024
2.8.1 188 2/1/2024
2.8.0 558 11/29/2023
2.8.0-pre01 152 11/27/2023
2.7.14 310 10/12/2023
2.7.13 1,362 10/10/2023
2.7.12 190 10/9/2023
2.7.12-pre01 139 10/9/2023
2.7.11 296 8/25/2023
2.7.10 219 8/23/2023
2.7.10-pre03 195 8/2/2023
2.7.10-pre02 166 8/1/2023
2.7.9 359 7/13/2023
2.7.8 210 7/10/2023
2.7.7 232 6/26/2023
2.7.6 239 6/13/2023
2.7.6-pre05 154 6/13/2023
2.7.5 251 6/7/2023
2.7.4 337 6/1/2023
2.7.3 846 3/21/2023
2.7.3-pre02 180 3/21/2023
2.7.3-pre01 195 3/21/2023
2.7.2 584 2/15/2023
2.7.1 392 1/31/2023
2.7.1-pre03 222 1/31/2023
2.7.1-pre02 199 1/19/2023
2.7.1-pre01 193 1/17/2023
2.6.6 730 1/9/2023
2.6.5 1,266 7/26/2022
2.6.4 958 4/25/2022
2.6.3 1,054 3/14/2022
2.6.3-preview01 256 3/3/2022
2.6.2 653 3/1/2022
2.6.2-preview01 236 3/1/2022
2.6.1 555 2/24/2022
2.6.0 561 2/21/2022
2.3.11 693 2/24/2022
2.3.10 827 1/24/2022
2.3.9 622 12/6/2021
2.3.8 852 10/19/2021
2.3.7 714 10/4/2021
2.3.6 814 9/29/2021
2.3.5 806 6/25/2021
2.3.4 503 6/25/2021
2.3.3 447 6/24/2021
2.3.2 615 5/21/2021
2.3.1 1,104 3/13/2021
2.3.0 797 3/4/2021
2.1.15 716 12/16/2020
2.1.14 928 12/15/2020
2.1.13 919 7/24/2020
2.1.12 660 6/17/2020
2.1.11 2,260 6/11/2020
2.1.10 2,671 6/4/2020
2.1.9 610 6/1/2020
2.1.8 661 5/22/2020
2.1.7 609 5/6/2020
2.1.6 604 5/4/2020
2.1.5 951 4/17/2020
2.1.4 625 4/12/2020
2.1.3 885 2/25/2020
2.1.2 624 2/20/2020
2.1.1 1,011 1/21/2020
2.1.0 966 1/9/2020
2.1.0-preview01 560 11/11/2019
2.0.11 664 11/21/2019
2.0.10 641 11/6/2019
2.0.9 631 11/1/2019
2.0.8 670 9/3/2019
2.0.7 1,535 5/7/2019
2.0.6 724 4/29/2019
2.0.5 1,077 4/16/2019
2.0.4 1,052 4/10/2019
2.0.2 1,106 3/29/2019
2.0.1 1,017 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, 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