Fusonic.Extensions.EntityFrameworkCore
10.0.0
Prefix Reserved
dotnet add package Fusonic.Extensions.EntityFrameworkCore --version 10.0.0
NuGet\Install-Package Fusonic.Extensions.EntityFrameworkCore -Version 10.0.0
<PackageReference Include="Fusonic.Extensions.EntityFrameworkCore" Version="10.0.0" />
<PackageVersion Include="Fusonic.Extensions.EntityFrameworkCore" Version="10.0.0" />
<PackageReference Include="Fusonic.Extensions.EntityFrameworkCore" />
paket add Fusonic.Extensions.EntityFrameworkCore --version 10.0.0
#r "nuget: Fusonic.Extensions.EntityFrameworkCore, 10.0.0"
#:package Fusonic.Extensions.EntityFrameworkCore@10.0.0
#addin nuget:?package=Fusonic.Extensions.EntityFrameworkCore&version=10.0.0
#tool nuget:?package=Fusonic.Extensions.EntityFrameworkCore&version=10.0.0
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Fusonic.Extensions.Common (>= 10.0.0)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
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 |
|---|---|---|
| 10.0.0 | 235 | 11/25/2025 |
| 10.0.0-rc.2 | 141 | 11/24/2025 |
| 10.0.0-rc.1 | 116 | 9/12/2025 |
| 9.5.4 | 213 | 8/20/2025 |
| 9.5.3 | 276 | 3/28/2025 |
| 9.5.2 | 253 | 1/16/2025 |
| 9.5.0 | 306 | 10/4/2024 |
| 9.4.0 | 215 | 9/23/2024 |
| 9.3.1 | 278 | 9/11/2024 |
| 9.3.0 | 210 | 9/11/2024 |
| 9.2.0 | 227 | 8/8/2024 |
| 9.2.0-rc.3 | 104 | 8/7/2024 |
| 9.2.0-rc.2 | 72 | 8/5/2024 |
| 9.2.0-rc.1 | 87 | 8/1/2024 |
| 9.1.0 | 165 | 7/29/2024 |
| 9.0.0 | 818 | 7/17/2024 |
| 9.0.0-preview.2 | 96 | 6/13/2024 |
| 9.0.0-preview.1 | 135 | 4/5/2024 |
| 8.1.3 | 287 | 3/27/2024 |
| 8.1.2 | 210 | 3/27/2024 |
| 8.1.1 | 255 | 3/1/2024 |
| 8.1.0 | 1,321 | 1/26/2024 |
| 8.0.1 | 275 | 12/18/2023 |
| 8.0.1-rc.2 | 120 | 12/7/2023 |
| 8.0.1-rc.1 | 95 | 12/6/2023 |
| 8.0.0 | 318 | 11/21/2023 |
| 8.0.0-preview1 | 150 | 10/4/2023 |
| 7.4.0 | 183 | 1/25/2024 |
| 7.3.0 | 174 | 10/11/2023 |
| 7.2.1-rc.1 | 134 | 8/28/2023 |
| 7.2.0 | 244 | 6/28/2023 |
| 7.2.0-alpha.1 | 144 | 6/27/2023 |
| 7.1.2 | 660 | 5/25/2023 |
| 7.1.1 | 332 | 4/3/2023 |
| 7.1.1-rc.2 | 168 | 3/30/2023 |
| 7.1.1-rc.1 | 163 | 3/30/2023 |
| 7.1.0 | 1,507 | 2/28/2023 |
| 7.1.0-rc.1 | 178 | 2/20/2023 |
| 7.0.4-rc.5 | 179 | 2/23/2023 |
| 7.0.4-rc.4 | 183 | 2/23/2023 |
| 7.0.4-rc.3 | 179 | 2/23/2023 |
| 7.0.4-rc.2 | 178 | 2/22/2023 |
| 7.0.4-rc.1 | 175 | 2/16/2023 |
| 7.0.3 | 633 | 2/16/2023 |
| 7.0.2 | 408 | 2/9/2023 |
| 7.0.2-rc.1 | 192 | 2/2/2023 |
| 7.0.1 | 410 | 1/26/2023 |
| 7.0.0 | 872 | 1/24/2023 |
| 7.0.0-preview1 | 221 | 7/18/2022 |
| 7.0.0-beta.9 | 226 | 1/24/2023 |
| 7.0.0-beta.8 | 196 | 1/23/2023 |
| 7.0.0-beta.7 | 190 | 1/23/2023 |
| 7.0.0-beta.6 | 186 | 1/23/2023 |
| 7.0.0-beta.5 | 199 | 1/23/2023 |
| 7.0.0-beta.4 | 197 | 1/19/2023 |
| 7.0.0-beta.3 | 200 | 1/17/2023 |
| 7.0.0-beta.2 | 192 | 1/11/2023 |
| 7.0.0-beta.1 | 178 | 11/24/2022 |
| 6.2.2 | 1,446 | 9/20/2022 |
| 6.2.2-rc.1 | 217 | 9/19/2022 |
| 6.2.1 | 2,116 | 5/4/2022 |
| 6.2.0 | 622 | 4/21/2022 |
| 6.2.0-rc.2 | 235 | 4/21/2022 |
| 6.2.0-rc.1 | 249 | 4/20/2022 |
| 6.1.1 | 1,107 | 3/1/2022 |
| 6.1.0 | 675 | 2/10/2022 |
| 6.1.0-rc.3 | 231 | 2/10/2022 |
| 6.1.0-rc.2 | 230 | 2/10/2022 |
| 6.1.0-rc.1 | 232 | 2/9/2022 |
| 6.0.3 | 595 | 1/18/2022 |
| 6.0.2 | 432 | 1/10/2022 |
| 6.0.1 | 457 | 12/16/2021 |
| 6.0.0 | 450 | 12/13/2021 |
| 6.0.0-rc.6 | 255 | 12/6/2021 |
| 6.0.0-rc.5 | 446 | 12/6/2021 |
| 6.0.0-rc.4 | 604 | 12/6/2021 |
| 6.0.0-rc.3 | 486 | 12/6/2021 |
| 6.0.0-rc.2 | 458 | 12/6/2021 |
| 6.0.0-rc.1 | 298 | 11/15/2021 |
| 5.4.0 | 503 | 10/13/2021 |
| 5.3.0 | 462 | 9/23/2021 |
| 5.3.0-rc.1 | 282 | 9/17/2021 |
| 5.2.0 | 459 | 5/20/2021 |
| 5.2.0-rcjh.6 | 299 | 5/19/2021 |
| 5.2.0-rcjh.5 | 259 | 5/19/2021 |
| 5.2.0-rcjh.4 | 284 | 5/19/2021 |
| 5.2.0-rcjh.3 | 265 | 5/19/2021 |
| 5.2.0-rcjh.2 | 256 | 4/12/2021 |
| 5.2.0-rcjh.1 | 262 | 4/12/2021 |
| 5.1.3 | 507 | 5/19/2021 |
| 5.1.2 | 528 | 3/26/2021 |
| 5.1.1 | 542 | 1/13/2021 |
| 5.1.0 | 575 | 12/16/2020 |
| 5.0.0 | 556 | 11/17/2020 |
| 5.0.0-rc.1 | 375 | 10/15/2020 |
| 1.0.2 | 652 | 10/8/2020 |
| 1.0.1 | 656 | 8/19/2020 |
| 1.0.0 | 689 | 6/15/2020 |