Skip to content

CrudFoundation is a lightweight, extensible base architecture for ASP.NET Core, providing reusable generic controllers, services, repositories, and essential interfaces like IEntity and IValidatable.

Notifications You must be signed in to change notification settings

joachimurbain/CrudCore

Repository files navigation

CrudCore 🧱

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

Why this exists

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.


⚙️ How to Use

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"
  }

About

CrudFoundation is a lightweight, extensible base architecture for ASP.NET Core, providing reusable generic controllers, services, repositories, and essential interfaces like IEntity and IValidatable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages