A minimal, reusable base layer for building CRUD APIs in ASP.NET Core.
This project contains foundational building blocks like:
- BaseRepository and IRepository — for clean, reusable data access logic
- BaseService and IBaseService — for organizing business rules and service-layer behavior
- BaseDtoController<TDto, TEntity, ...> and BaseEntityController — generic RESTful endpoints, with or without DTOs
- Interfaces like IEntity, IValidatable, and IPatchable — to support ID-based access, validation, and partial updates
I had a project with a very short deadline, and I couldn’t afford to waste time rewriting CRUD logic for every entity. CrudCore was born out of necessity, to help me move fast, keep things clean.
See USAGE.md for a full example with code snippets.
Appsettings.json
"Jwt": {
"Key": "une-super-cle-tres-longue-f387e774-be91-4cef-9561-655ca8844f55",
"Issuer": "Wattsup",
"Audience": "Wattsup"
}