Modeller
Coding StandardsEF Core and Data

EF Core and Data

Persisting rich domain types with EF Core, and querying/serializing data correctly at scale.

These standards cover keeping EF Core entities from degrading into primitive-obsessed data bags, mapping discriminated unions and value objects onto relational storage, and avoiding the query and serialization mistakes (cartesian explosion, exposing entities over the wire) that only show up under real data volumes. Apply them whenever an EF Core entity or query is being designed.