Sylin.Koan.Data.SoftDelete
1.0.45
dotnet add package Sylin.Koan.Data.SoftDelete --version 1.0.45
NuGet\Install-Package Sylin.Koan.Data.SoftDelete -Version 1.0.45
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="Sylin.Koan.Data.SoftDelete" Version="1.0.45" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylin.Koan.Data.SoftDelete" Version="1.0.45" />
<PackageReference Include="Sylin.Koan.Data.SoftDelete" />
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 Sylin.Koan.Data.SoftDelete --version 1.0.45
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sylin.Koan.Data.SoftDelete, 1.0.45"
#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 Sylin.Koan.Data.SoftDelete@1.0.45
#: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=Sylin.Koan.Data.SoftDelete&version=1.0.45
#tool nuget:?package=Sylin.Koan.Data.SoftDelete&version=1.0.45
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sylin.Koan.Data.SoftDelete
Make ordinary Entity deletion recoverable without changing the ordinary Entity grammar.
Install
dotnet add package Sylin.Koan.Data.SoftDelete
Usage
Mark only the models whose durable deletion meaning is soft removal:
using Koan.Data.Core.Model; // Entity<T>, Get
using Koan.Data.Core; // Remove
using Koan.Data.SoftDelete; // SoftDelete, WithDeleted, Restore
[SoftDelete]
public sealed class Order : Entity<Order>;
await order.Remove();
using (Order.WithDeleted())
{
var deleted = await Order.Get(order.Id);
await deleted!.Restore();
}
Referencing the package activates its Data axis through the application's existing AddKoan() call. No service,
controller, option, or manual registration is required.
Guarantees and boundaries
- Ordinary
Remove, batch deletion, andRemoveAllset Koan's managed__deletedfield instead of physically removing visible[SoftDelete]rows. Ordinary Entity reads hide those rows automatically. T.WithDeleted()opens the recycle bin only forT; it cannot reveal deleted rows from another Entity type. Nested scopes compose and unwind with the async flow.- Load a deleted row inside
WithDeleted(), then call.Restore()to make it visible. Call.HardDelete()to purge a visible or already deleted row physically. - Read scopes, including tenancy and request-contributed filters, still apply. A recycle-bin scope is not an authorization bypass.
- Soft deletion is a persistence semantic, not an audit log, retention policy, legal hold, or automatic recycle-bin HTTP API. Build explicit authorized controllers when the product earns that workflow.
See TECHNICAL.md for the Data-axis contract.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Configuration (>= 10.0.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.10)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.10)
- Microsoft.Extensions.Configuration.Json (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Hosting (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Logging (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Logging.Console (>= 10.0.10)
- Microsoft.Extensions.Options (>= 10.0.10)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.10)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.10)
- Newtonsoft.Json (>= 13.0.4)
- Sylin.Koan.Core (>= 1.0.39 && < 2.0.0)
- Sylin.Koan.Data.Abstractions (>= 1.0.41 && < 2.0.0)
- Sylin.Koan.Data.Core (>= 1.0.73 && < 2.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 |
|---|---|---|
| 1.0.45 | 114 | 9/13/2026 |
| 1.0.43 | 95 | 9/12/2026 |
| 1.0.41 | 110 | 9/12/2026 |
| 1.0.40 | 103 | 9/10/2026 |
| 1.0.37 | 107 | 9/10/2026 |
| 1.0.34 | 102 | 9/9/2026 |
| 1.0.31 | 95 | 9/9/2026 |
| 1.0.29 | 104 | 9/9/2026 |
| 1.0.25 | 104 | 9/9/2026 |
| 1.0.24 | 116 | 9/9/2026 |
| 1.0.20 | 95 | 9/5/2026 |
| 1.0.19 | 118 | 8/30/2026 |
| 1.0.18 | 104 | 8/30/2026 |
| 1.0.17 | 109 | 8/28/2026 |
| 1.0.16 | 98 | 8/28/2026 |
| 1.0.15 | 113 | 8/28/2026 |
| 1.0.14 | 100 | 8/28/2026 |
| 1.0.13 | 101 | 8/28/2026 |
| 1.0.12 | 113 | 8/27/2026 |
| 1.0.8 | 110 | 8/27/2026 |
Loading failed