1

I have a Person Entity in my domain, this person have Gender and Status property, this properties are ValueObjects?

Gender = { Male, Female }

Status = { Active, Inactive }

I'm using EF, I'm thinking of creating enums for them. I'm doing something wrong?

Acaz Souza
  • 8,311
  • 11
  • 54
  • 97

1 Answers1

4

I'm doing something wrong?

Nope. This is fine, completely standard.

jason
  • 236,483
  • 35
  • 423
  • 525
  • 1
    Yes. They are like "6" or "red". Their value is their identity, and therefore they should be value types. – jason Aug 19 '11 at 20:39