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-pre01 135 6/4/2025
2.9.32 339 5/13/2025
2.9.32-pre02 179 4/22/2025
2.9.32-pre01 188 4/17/2025
2.9.31 222 4/2/2025
2.9.30 244 2/25/2025
2.9.6-pre03 121 2/6/2025
2.9.6-pre02 105 1/30/2025
2.9.5 771 12/19/2024
2.9.4 217 12/9/2024
2.9.3 156 12/4/2024
2.9.2 257 11/20/2024
2.9.1 131 11/19/2024
2.9.0 123 11/13/2024
2.9.0-pre08 95 11/13/2024
2.9.0-pre07 108 11/11/2024
2.9.0-pre06 88 11/8/2024
2.9.0-pre05 91 11/6/2024
2.9.0-pre04 101 11/5/2024
2.9.0-pre03 94 10/16/2024
2.9.0-pre02 89 10/14/2024
2.9.0-pre01 94 10/8/2024
2.8.7 120 11/19/2024
2.8.6 166 11/7/2024
2.8.5 1,065 4/15/2024
2.8.3 256 3/1/2024
2.8.2 179 2/14/2024
2.8.1 182 2/1/2024
2.8.0 553 11/29/2023
2.8.0-pre01 148 11/27/2023
2.7.14 301 10/12/2023
2.7.13 1,355 10/10/2023
2.7.12 183 10/9/2023
2.7.12-pre01 131 10/9/2023
2.7.11 282 8/25/2023
2.7.10 205 8/23/2023
2.7.10-pre03 182 8/2/2023
2.7.10-pre02 151 8/1/2023
2.7.9 344 7/13/2023
2.7.8 193 7/10/2023
2.7.7 211 6/26/2023
2.7.6 224 6/13/2023
2.7.6-pre05 137 6/13/2023
2.7.5 233 6/7/2023
2.7.4 321 6/1/2023
2.7.3 830 3/21/2023
2.7.3-pre02 163 3/21/2023
2.7.3-pre01 178 3/21/2023
2.7.2 568 2/15/2023
2.7.1 376 1/31/2023
2.7.1-pre03 205 1/31/2023
2.7.1-pre02 181 1/19/2023
2.7.1-pre01 176 1/17/2023
2.6.6 713 1/9/2023
2.6.5 1,243 7/26/2022
2.6.4 938 4/25/2022
2.6.3 1,036 3/14/2022
2.6.3-preview01 236 3/3/2022
2.6.2 633 3/1/2022
2.6.2-preview01 214 3/1/2022
2.6.1 536 2/24/2022
2.6.0 541 2/21/2022
2.3.11 675 2/24/2022
2.3.10 810 1/24/2022
2.3.9 602 12/6/2021
2.3.8 833 10/19/2021
2.3.7 695 10/4/2021
2.3.6 795 9/29/2021
2.3.5 787 6/25/2021
2.3.4 485 6/25/2021
2.3.3 429 6/24/2021
2.3.2 598 5/21/2021
2.3.1 1,085 3/13/2021
2.3.0 777 3/4/2021
2.1.15 693 12/16/2020
2.1.14 909 12/15/2020
2.1.13 898 7/24/2020
2.1.12 641 6/17/2020
2.1.11 2,240 6/11/2020
2.1.10 2,652 6/4/2020
2.1.9 591 6/1/2020
2.1.8 643 5/22/2020
2.1.7 590 5/6/2020
2.1.6 583 5/4/2020
2.1.5 930 4/17/2020
2.1.4 606 4/12/2020
2.1.3 864 2/25/2020
2.1.2 602 2/20/2020
2.1.1 990 1/21/2020
2.1.0 946 1/9/2020
2.1.0-preview01 540 11/11/2019
2.0.11 643 11/21/2019
2.0.10 621 11/6/2019
2.0.9 611 11/1/2019
2.0.8 650 9/3/2019
2.0.7 1,515 5/7/2019
2.0.6 704 4/29/2019
2.0.5 1,056 4/16/2019
2.0.4 1,032 4/10/2019
2.0.2 1,086 3/29/2019
2.0.1 997 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