EfCore.SoftDeleteServices
2.0.1
.NET 6.0
.NET Standard 2.1
Install-Package EfCore.SoftDeleteServices -Version 2.0.1
dotnet add package EfCore.SoftDeleteServices --version 2.0.1
<PackageReference Include="EfCore.SoftDeleteServices" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EfCore.SoftDeleteServices --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EfCore.SoftDeleteServices, 2.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EfCore.SoftDeleteServices as a Cake Addin
#addin nuget:?package=EfCore.SoftDeleteServices&version=2.0.1
// Install EfCore.SoftDeleteServices as a Cake Tool
#tool nuget:?package=EfCore.SoftDeleteServices&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EfCore.SoftDeleteServices
This library to provide simple soft delete and cascade soft delete in EF Core. It provides:
- Useful methods: The features in this library are:
- Set the SoftDeleted flag on an entity class, with checks.
- Provides a secure query to find all the Soft Deleted entities for a specific entity class.
- Reset the SoftDeleted flag on an entity class, which checks.
- Hard delete (i.e. call EF Core
Remove
method) a entity class, but only if it is already Soft Deleted.
- Cascade Soft Delete: This library has a service that can mimic the database cascade delete, but Soft Deleting the entities. For instance, Cascade Soft Deleting a Company could also soft delete dependent relationships (see image below).
- Keeps your data secure: This library can handle Query Filters that contain multiple parts to the filter, e.g. Soft Delete with a multi-tenant filter. It builds queries that will replace the other filters so that your data stays secure.
MIT License. Documentation can be found in the Repo's Wiki.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.1 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- GenericServices.StatusGeneric (>= 1.1.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.EntityFrameworkCore (>= 5.0.10)
- Microsoft.EntityFrameworkCore.Relational (>= 5.0.10)
- Microsoft.Extensions.DependencyInjection (>= 5.0.2)
-
net6.0
- GenericServices.StatusGeneric (>= 1.1.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.EntityFrameworkCore (>= 6.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection (>= 6.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 |
---|---|---|
2.0.1 | 1,371 | 3/4/2022 |
2.0.0 | 2,455 | 11/10/2021 |
2.0.0-preview001 | 102 | 11/2/2021 |
1.1.3 | 1,249 | 3/13/2021 |
1.1.2 | 415 | 1/25/2021 |
1.1.1 | 241 | 1/22/2021 |
1.1.0 | 244 | 1/12/2021 |
1.0.0 | 746 | 1/9/2021 |
1.0.0-preview004 | 156 | 1/8/2021 |
1.0.0-preview003 | 159 | 1/8/2021 |
1.0.0-preview002 | 166 | 1/8/2021 |
1.0.0-preview001 | 191 | 1/8/2021 |
Bug fix: Cascade delete would fail to soft delete a relationship in certain circumstances - see issue #11