← All changes

Blogged: Implementing strongly-typed IDs in .NET for safer domain models

https://blog.elmah.io/pimplementing-strongly-typed-ids-in-net-for-safer-domain-models/

Implementing strongly-typed IDs in .NET for safer domain models

Stop using primitive types for IDs. Learn how to implement strongly-typed IDs in .NET and EF Core to catch logic errors at compile time.