As I know, you should not mix entities and service objects. Entities should hold just values (plain data structures) and services classes operate on them.
@jon920 Do you mind sharing which books are you referring to here? Beside others, I read https://pragprog.com/titles/swdddf/domain-modeling-made-functional/ – found it excellent for FP oriented design.
The book’s code repo is here https://github.com/swlaschin/DomainModelingMadeFunctional (uses F#)
exactly; from a technical perspective it is cool and interesting, but from a business perspective it is not always what you're after - it is key to get your engineer to think towards the business focus
I think there were performance concerns with maps, while records were faster to manipulate ..
“Patterns, Principles, and Practices of Domain-Driven Design” and “Microsoft .NET - Architecting Applications for the Enterprise (Developer Reference)”