Nullean.Entities.Extensions.DependencyInjection 0.1.0-preview.1

This is a prerelease version of Nullean.Entities.Extensions.DependencyInjection.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Nullean.Entities.Extensions.DependencyInjection --version 0.1.0-preview.1
                    
NuGet\Install-Package Nullean.Entities.Extensions.DependencyInjection -Version 0.1.0-preview.1
                    
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="Nullean.Entities.Extensions.DependencyInjection" Version="0.1.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nullean.Entities.Extensions.DependencyInjection" Version="0.1.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Nullean.Entities.Extensions.DependencyInjection" />
                    
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 Nullean.Entities.Extensions.DependencyInjection --version 0.1.0-preview.1
                    
#r "nuget: Nullean.Entities.Extensions.DependencyInjection, 0.1.0-preview.1"
                    
#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 Nullean.Entities.Extensions.DependencyInjection@0.1.0-preview.1
                    
#: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=Nullean.Entities.Extensions.DependencyInjection&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Nullean.Entities.Extensions.DependencyInjection&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Tool

Nullean.Entities.Extensions.DependencyInjection

Register constraint sets once and let framework integrations find them, with no reflection (AOT-safe).

services.AddConstraints<SignUp>();                       // T : IHaveConstraints<T>, uses SignUp.Constraints
services.AddConstraints(OrderRules.All);                 // a companion's set
services.AddOptions<ServerOptions>().ValidateConstraints(ServerRules).ValidateOnStart();

IConstraintRegistry.TryValidate(object, out violations) validates any registered instance by its exact type, which is what Nullean.Entities.AspNetCore and Nullean.Entities.Argh use to validate arguments they only hold as object. ViolationErrors.ToDictionary groups errors by member for ProblemDetails.

Product 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.  net11.0 is compatible. 
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 Nullean.Entities.Extensions.DependencyInjection:

Package Downloads
Nullean.Entities.AspNetCore

ASP.NET Core integration for Nullean.Entities: endpoint filters, a global exception handler, result mapping and an MVC action filter that answer constraint violations with a ValidationProblem.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 49 10/20/2026
0.1.0 129 10/20/2026
0.1.0-preview.2 52 10/20/2026
0.1.0-preview.1 48 10/20/2026