vkhorikov/CSharpFunctionalExtensions

Entity vs. EnumValueObject

p-bojkowski opened this issue · 2 comments

Hi :)

I just saw this class: Industry.cs

What is the advantage of implementing "Industry" as Entity instead of EnumValueObject?

I wrote that code when there was no EnumValueObject class. Currently, you can just use EnumValueObject.

Technically, Industry is an entity, but there's no point in introducing EnumEntity, because the 2 enums will behave almost exactly the same.

Thanks @vkhorikov ! :)