Using strongly-typed entity IDs to avoid primitive obsession (Part 1)

added by DotNetKicks
4/9/2019 10:39:22 AM

2 Kicks, 186 Views

Have you ever requested an entity from a service (web API / database / generic service) and got a 404 / not found response when you're sure it exists? I've seen it quite a few times, and it sometimes comes down to requesting the entity using the wrong ID.