Enum type naming conventions in DTO

I create an application facade in front of my domain model and use dto to exchange between the consumer and the facade.

To avoid having to fully qualify my namespaces, where I map between dto and the domain model, I suffix all of my dto with Dto. I.e. CustomerDto, AddressDto, etc.

I need to define an enumeration type as part of my dto, and I'm struggling with whether I should use the Dto suffix for my enumeration type.

I'm curious what others have done with the enumerated types that are in their dto's. Any feedback is welcome.

thank

+5
source share
2 answers

, enum, "", Dto, , . , CustomerTypeDto, DTO, . , enum, CustomerDto, CustomerDtoType .

+6

. , , .

+2

All Articles