finds.dev

jbogard/ContosoUniversityDotNetCore

View on GitHub

★ 448JavaScriptMITupdated Mar 2018

// the take

Jimmy Bogard's take on the canonical Microsoft Contoso University tutorial app, rewritten to show how he'd actually structure it: vertical feature slices instead of horizontal layers, MediatR for request handling, and AutoMapper for projections. It's a reference implementation, not a library — you're here to read the code and steal ideas, not install a package.

The feature-folder structure is genuinely well-executed — each slice (Create, Edit, Delete, Index) lives entirely within its feature directory, so you can read one feature top-to-bottom without jumping across layers. The integration test suite covers all CRUD operations against a real database, not mocked repositories, which means the tests actually catch query bugs. The DbContextTransactionFilter wrapping each request in a transaction is a clean pattern that eliminates a class of partial-write bugs without any per-handler boilerplate.

Last touched in early 2018 and targeting .NET Core 1.x or 2.x — AutoMapper, MediatR, and EF Core have all had breaking API changes since then, so cloning this and running it today will require non-trivial migration work. The README setup instructions are sparse to the point of being wrong (it references both RoundhousE migrations and a manual SQL script with no clarity on which to actually use). HtmlTags is an unusual dependency that most teams won't carry forward — there's no explanation of why it was chosen over standard Razor tag helpers, which exist and work fine for this use case.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
448
Forks
130
Language
JavaScript
License
MIT
Last commit
6 Mar 2018

// nearby

If ContosoUniversityDotNetCore isn't quite it.

All repos →