Sencilla.Web
10.0.69
dotnet add package Sencilla.Web --version 10.0.69
NuGet\Install-Package Sencilla.Web -Version 10.0.69
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.69" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sencilla.Web" Version="10.0.69" />
<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.69
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sencilla.Web, 10.0.69"
#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.69
#: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.69
#tool nuget:?package=Sencilla.Web&version=10.0.69
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.69)
- System.Data.SqlClient (>= 4.9.0)
NuGet packages (9)
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.Security
Package Description |
|
|
Sencilla.Component.I18n
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.69 | 238 | 10/15/2026 |
| 10.0.68 | 234 | 10/14/2026 |
| 10.0.67 | 249 | 10/9/2026 |
| 10.0.66 | 277 | 9/25/2026 |
| 10.0.64 | 266 | 9/20/2026 |
| 10.0.63 | 268 | 9/17/2026 |
| 10.0.62 | 303 | 9/9/2026 |
| 10.0.61 | 278 | 9/9/2026 |
| 10.0.59 | 391 | 8/21/2026 |
| 10.0.58 | 330 | 8/21/2026 |
| 10.0.57 | 326 | 8/21/2026 |
| 10.0.56 | 346 | 8/21/2026 |
| 10.0.55 | 298 | 8/18/2026 |
| 10.0.54 | 260 | 8/14/2026 |
| 10.0.53 | 293 | 8/10/2026 |
| 10.0.52 | 265 | 8/7/2026 |
| 10.0.51 | 273 | 8/5/2026 |
| 10.0.50 | 268 | 8/5/2026 |
| 10.0.49 | 306 | 7/31/2026 |
| 10.0.48 | 307 | 7/23/2026 |
Loading failed