Sencilla.Web
10.0.37
dotnet add package Sencilla.Web --version 10.0.37
NuGet\Install-Package Sencilla.Web -Version 10.0.37
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="Sencilla.Web" Version="10.0.37" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sencilla.Web" Version="10.0.37" />
<PackageReference Include="Sencilla.Web" />
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 Sencilla.Web --version 10.0.37
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sencilla.Web, 10.0.37"
#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 Sencilla.Web@10.0.37
#: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=Sencilla.Web&version=10.0.37
#tool nuget:?package=Sencilla.Web&version=10.0.37
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sencilla.Web
ASP.NET Core web infrastructure for the Sencilla Framework — a modular .NET 10 application framework.
What's Included
- Zero-code CRUD controllers — generate full REST APIs from a single
[CrudApi]attribute on your entity - Base API controller —
ApiControllerwith service resolution, exception mapping, and HTTP status helpers - Smart model binding — automatic
Filter<TEntity>binding from query strings and request bodies - Convention-based routing — routes and authorization propagated from entity attributes
- Response caching —
[UseCaching]attribute for in-memory caching with configurable TTL - DTO contracts —
IDtoEntity<TEntity>interface for entity-to-DTO mapping - File streaming —
FileCallbackResultfor memory-efficient file downloads
Installation
dotnet add package Sencilla.Web
Quick Start
1. Define an entity with [CrudApi]
using Sencilla.Core;
using Sencilla.Web;
[CrudApi(route: "api/products")]
public class Product :
IEntity<int>,
IEntityCreateable, // → enables PUT endpoints
IEntityUpdateable, // → enables POST endpoints
IEntityDeleteable // → enables DELETE endpoints
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public decimal Price { get; set; }
}
This single attribute generates a full REST API — GET, PUT, POST, DELETE — with filtering, pagination, aggregation, upsert, merge, soft-delete, and batch operations. No controller class needed.
2. Register Sencilla.Web
// Program.cs
var mvcBuilder = builder.Services.AddControllers();
builder.Services.AddSencilla(builder.Configuration);
builder.Services.AddSencillaWeb(mvcBuilder);
3. Use a custom controller (optional)
For custom endpoints, inherit from ApiController:
public class ReportsController(IServiceProvider provider) : ApiController(provider)
{
[HttpGet("reports/top-products")]
public async Task<IActionResult> GetTopProducts()
=> await AjaxAction((IReadRepository<Product> repo)
=> repo.GetAll(new Filter<Product> { Take = 10, OrderBy = "Price", Descending = true }));
}
Documentation
License
MIT
| 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.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.0)
- Newtonsoft.Json (>= 13.0.4)
- Sencilla.Core (>= 10.0.37)
- System.Data.SqlClient (>= 4.9.0)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Sencilla.Web:
| Package | Downloads |
|---|---|
|
Sencilla.Component.Files
Package Description |
|
|
Sencilla.Component.Users
Package Description |
|
|
Sencilla.Component.I18n
Package Description |
|
|
Sencilla.Component.Security
Package Description |
|
|
Sencilla.Component.Geography
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.37 | 133 | 6/6/2026 |
| 10.0.36 | 130 | 6/6/2026 |
| 10.0.35 | 160 | 6/5/2026 |
| 10.0.34 | 142 | 6/5/2026 |
| 10.0.32 | 148 | 6/4/2026 |
| 10.0.31 | 143 | 6/4/2026 |
| 10.0.30 | 150 | 6/4/2026 |
| 10.0.29 | 147 | 6/4/2026 |
| 10.0.28 | 154 | 6/3/2026 |
| 10.0.27 | 150 | 6/3/2026 |
| 10.0.26 | 189 | 6/2/2026 |
| 10.0.19 | 209 | 6/1/2026 |
| 10.0.18 | 208 | 6/1/2026 |
| 10.0.17 | 265 | 5/13/2026 |
| 10.0.16 | 208 | 5/12/2026 |
| 10.0.15 | 202 | 5/12/2026 |
| 10.0.14 | 200 | 5/1/2026 |
| 10.0.13 | 233 | 3/29/2026 |
| 10.0.12 | 296 | 3/2/2026 |
| 10.0.11 | 199 | 2/27/2026 |
Loading failed