开发者

Things like Gender and Status in my Domain is ValueObjects?

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?


I'm doing something wrong?

Nope. This is fine, completely standard.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜