开发者

Things like Gender and Status in my Domain is ValueObjects?

开发者 https://www.devze.com 2023-03-29 14:38 出处:网络
I have a Person Entity in my domain, this person have Gender and Status property, this properties are 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

精彩评论

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