Skip to content
Katabench
Try free

Evict the ORM From the Domain

Hard About 35 min Katabench Pro

The domain entity inherits the ORM's base class and carries its own mapping, welding the most stable layer to a persistence framework. Moving the mapping alone won't free it; you must sever the base-type coupling and invert the persistence concern out.

The full brief is part of Katabench Pro

Pro opens this kata's brief, its starter code and its grader. To see how the track works first, try Config Is Infrastructure, which is free.

How it is graded

You work across multiple files, and architecture rules turn the design boundaries into executable feedback.

C# architecture exercises →

What it practices

Infrastructure as adapters
Keep the ORM, clocks, caches, configuration and startup work out of the core as replaceable adapters.

Related katas