Fusonic.Extensions.EntityFrameworkCore 9.5.3

Prefix Reserved
dotnet add package Fusonic.Extensions.EntityFrameworkCore --version 9.5.3
                    
NuGet\Install-Package Fusonic.Extensions.EntityFrameworkCore -Version 9.5.3
                    
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="Fusonic.Extensions.EntityFrameworkCore" Version="9.5.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fusonic.Extensions.EntityFrameworkCore" Version="9.5.3" />
                    
Directory.Packages.props
<PackageReference Include="Fusonic.Extensions.EntityFrameworkCore" />
                    
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 Fusonic.Extensions.EntityFrameworkCore --version 9.5.3
                    
#r "nuget: Fusonic.Extensions.EntityFrameworkCore, 9.5.3"
                    
#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=Fusonic.Extensions.EntityFrameworkCore&version=9.5.3
                    
Install Fusonic.Extensions.EntityFrameworkCore as a Cake Addin
#tool nuget:?package=Fusonic.Extensions.EntityFrameworkCore&version=9.5.3
                    
Install Fusonic.Extensions.EntityFrameworkCore as a Cake Tool

EntityFrameworkCore

Extensions

Provides a set of extension methods to make common querying tasks easier. See QueryableExtensions.cs

Conventions

Provides a more sensible delete convention than EF Core's CascadeDeleteConvention. NoActionDeleteConvention sets NO ACTION on your foreign key per default instead of CASCADE, which forces all dependent foreign keys to also be deleted by the user.

With the default EF Core behavior, it is easy to create bugs that wouldn't be caught automatically by your testing. For example when referencing a User in a History and deleting the User, the History would be deleted as well. This is most likely not the desired behavior. Therefore, if such a behavior is intended it should either be implemented

  • by manually deleting all references in code
  • by explicitly overriding the delete behavior on your foreign key
  • by setting the foreign key as nullable

See https://github.com/dotnet/efcore/issues/27479, https://learn.microsoft.com/en-us/ef/core/saving/cascade-delete and https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK for more information.

To use this, add this to your DbContext:

protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder)
{
     configurationBuilder.Conventions.Remove<CascadeDeleteConvention>();
     configurationBuilder.Conventions.Add(static _ => new NoActionDeleteConvention());
}
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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.5.3 159 3/28/2025
9.5.2 173 1/16/2025
9.5.0 235 10/4/2024
9.4.0 144 9/23/2024
9.3.1 209 9/11/2024
9.3.0 139 9/11/2024
9.2.0 160 8/8/2024
9.2.0-rc.3 84 8/7/2024
9.2.0-rc.2 53 8/5/2024
9.2.0-rc.1 65 8/1/2024
9.1.0 101 7/29/2024
9.0.0 661 7/17/2024
9.0.0-preview.2 76 6/13/2024
9.0.0-preview.1 119 4/5/2024
8.1.3 217 3/27/2024
8.1.2 141 3/27/2024
8.1.1 163 3/1/2024
8.1.0 1,253 1/26/2024
8.0.1 220 12/18/2023
8.0.1-rc.2 103 12/7/2023
8.0.1-rc.1 79 12/6/2023
8.0.0 277 11/21/2023
8.0.0-preview1 125 10/4/2023
7.4.0 118 1/25/2024
7.3.0 131 10/11/2023
7.2.1-rc.1 101 8/28/2023
7.2.0 148 6/28/2023
7.2.0-alpha.1 97 6/27/2023
7.1.2 572 5/25/2023
7.1.1 250 4/3/2023
7.1.1-rc.2 107 3/30/2023
7.1.1-rc.1 102 3/30/2023
7.1.0 1,422 2/28/2023
7.1.0-rc.1 117 2/20/2023
7.0.4-rc.5 120 2/23/2023
7.0.4-rc.4 119 2/23/2023
7.0.4-rc.3 114 2/23/2023
7.0.4-rc.2 118 2/22/2023
7.0.4-rc.1 115 2/16/2023
7.0.3 554 2/16/2023
7.0.2 300 2/9/2023
7.0.2-rc.1 133 2/2/2023
7.0.1 328 1/26/2023
7.0.0 799 1/24/2023
7.0.0-preview1 152 7/18/2022
7.0.0-beta.9 137 1/24/2023
7.0.0-beta.8 130 1/23/2023
7.0.0-beta.7 128 1/23/2023
7.0.0-beta.6 124 1/23/2023
7.0.0-beta.5 134 1/23/2023
7.0.0-beta.4 132 1/19/2023
7.0.0-beta.3 132 1/17/2023
7.0.0-beta.2 128 1/11/2023
7.0.0-beta.1 115 11/24/2022
6.2.2 1,331 9/20/2022
6.2.2-rc.1 151 9/19/2022
6.2.1 2,023 5/4/2022
6.2.0 528 4/21/2022
6.2.0-rc.2 164 4/21/2022
6.2.0-rc.1 160 4/20/2022
6.1.1 1,010 3/1/2022
6.1.0 571 2/10/2022
6.1.0-rc.3 154 2/10/2022
6.1.0-rc.2 154 2/10/2022
6.1.0-rc.1 159 2/9/2022
6.0.3 497 1/18/2022
6.0.2 334 1/10/2022
6.0.1 353 12/16/2021
6.0.0 350 12/13/2021
6.0.0-rc.6 180 12/6/2021
6.0.0-rc.5 369 12/6/2021
6.0.0-rc.4 522 12/6/2021
6.0.0-rc.3 406 12/6/2021
6.0.0-rc.2 383 12/6/2021
6.0.0-rc.1 219 11/15/2021
5.4.0 405 10/13/2021
5.3.0 362 9/23/2021
5.3.0-rc.1 199 9/17/2021
5.2.0 361 5/20/2021
5.2.0-rcjh.6 224 5/19/2021
5.2.0-rcjh.5 182 5/19/2021
5.2.0-rcjh.4 208 5/19/2021
5.2.0-rcjh.3 187 5/19/2021
5.2.0-rcjh.2 178 4/12/2021
5.2.0-rcjh.1 185 4/12/2021
5.1.3 408 5/19/2021
5.1.2 400 3/26/2021
5.1.1 437 1/13/2021
5.1.0 467 12/16/2020
5.0.0 460 11/17/2020
5.0.0-rc.1 288 10/15/2020
1.0.2 539 10/8/2020
1.0.1 551 8/19/2020
1.0.0 583 6/15/2020