Substantive.AspNetCore.Mvc 9.17.27-build20260306r1
Substantive.AspNetCore.Mvc
Internal ASP.NET Core MVC building blocks for Substantive applications. This library targets net10.0 and is intended for use in MVC and Razor Pages apps.
Features
- Claims-based model binding via
FromClaimAttributeandClaimsValueProvider. - Property-based model binding via
FromPropertyAttributeandPropertyValueProvider(intended for customization in downstream apps). ModelStateFeatureFilterto captureModelStateinHttpContext.Featuresfor later middleware access.
Usage
Register the value providers and filter during MVC/Razor Pages configuration:
using Substantive.AspNetCore.Mvc;
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddRazorPages()
.AddMvcOptions(options =>
{
options.AddClaimsValueProvider();
options.AddPropertyValueProvider();
options.Filters.Add<ModelStateFeatureFilter>();
});
var app = builder.Build();
app.MapRazorPages();
app.Run();
Bind values from claims or custom property sources:
public IActionResult OnGet([FromClaim("sub")] string subject)
{
// subject is resolved from HttpContext.User claims
return Page();
}
Notes
- Ensure authentication populates
HttpContext.Userclaims before usingFromClaimAttribute. PropertyValueProvideris a customization point for model binding from non-request sources.
Showing the top 20 packages that depend on Substantive.AspNetCore.Mvc.
| Packages | Downloads |
|---|---|
|
Substantive.AspNetCore
Substantive ASP.NET Core package.
|
5 |
|
Substantive.AspNetCore
Substantive ASP.NET Core package.
|
19 |
|
Substantive.Metapackage.AspNetCoreServer
A metapackage contains all Substantive ASP.NET Core server-side packages.
|
1 |
|
Substantive.Metapackage.Backends
A metapackage contains all Substantive backend building blocks.
|
1 |
.NET 10.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 9.17.28-build20260331R1 | 3 | 03/31/2026 |
| 9.17.27-build20260306R1 | 19 | 03/06/2026 |